I've build jclouds and labs with this change then tried to build jcloud-karaf, 
but I get the following error:

```bash
[WARNING] Feature resolution failed for [jclouds-all-blobstore/2.2.0.SNAPSHOT]
Message: Unable to resolve root: missing requirement [root] osgi.identity; 
osgi.identity=jclouds-all-blobstore; type=karaf.feature; 
version=2.2.0.SNAPSHOT; 
filter:="(&(osgi.identity=jclouds-all-blobstore)(type=karaf.feature)(version>=2.2.0.SNAPSHOT))"
   [caused by: Unable to resolve jclouds-all-blobstore/2.2.0.SNAPSHOT: missing 
requirement [jclouds-all-blobstore/2.2.0.SNAPSHOT] osgi.identity; 
osgi.identity=jclouds-api-openstack-swift; type=karaf.feature; 
version="[2.2.0.SNAPSHOT,2.2.0.SNAPSHOT]"
   [caused by: Unable to resolve jclouds-api-openstack-swift/2.2.0.SNAPSHOT: 
missing requirement [jclouds-api-openstack-swift/2.2.0.SNAPSHOT] osgi.identity; 
osgi.identity=jclouds-blobstore; type=karaf.feature; 
version="[2.2.0.SNAPSHOT,2.2.0.SNAPSHOT]"
   [caused by: Unable to resolve jclouds-blobstore/2.2.0.SNAPSHOT: missing 
requirement [jclouds-blobstore/2.2.0.SNAPSHOT] osgi.identity; 
osgi.identity=jclouds-blobstore; type=osgi.bundle; 
version="[2.2.0.SNAPSHOT,2.2.0.SNAPSHOT]"; resolution:=mandatory
   [caused by: Unable to resolve jclouds-blobstore/2.2.0.SNAPSHOT: missing 
requirement [jclouds-blobstore/2.2.0.SNAPSHOT] osgi.wiring.package; 
filter:="(&(osgi.wiring.package=com.google.common.base)(version>=21.0.0)(!(version>=25.0.0)))"
   [caused by: Unable to resolve com.google.guava/21.0.0: missing requirement 
[com.google.guava/21.0.0] osgi.ee; 
filter:="(&(osgi.ee=JavaSE)(version=1.8))"]]]]]
```

This is the change I've applied in jclouds-karaf to require Java 8 and Guva 
21.0 too:

```diff
diff --git a/pom.xml b/pom.xml
index 768cd0a..89203c2 100644
--- a/pom.xml
+++ b/pom.xml
@@ -102,6 +102,7 @@ limitations under the License.
             <exclude>**/.checkstyle</exclude>
             <exclude>**/target/**</exclude>
             <exclude>.repository/**</exclude>
+            <exclude>.java-version</exclude>
 
             <!-- Excluded because these text files are spat out directly as 
help -->
             <exclude>**/src/main/resources/**/*.txt</exclude>
@@ -149,8 +150,8 @@ limitations under the License.
         <artifactId>maven-compiler-plugin</artifactId>
         <version>${maven-compiler-plugin.version}</version>
         <configuration>
-          <source>1.6</source>
-          <target>1.6</target>
+          <source>${jdk.version}</source>
+          <target>${jdk.version}</target>
         </configuration>
       </plugin>
       <plugin>
@@ -183,14 +184,14 @@ limitations under the License.
   </modules>
 
   <properties>
-    <jdk.version>1.7</jdk.version>
+    <jdk.version>1.8</jdk.version>
     <aopalliance.bundle.version>1.0_5</aopalliance.bundle.version>
     <bcprov.version>1.51</bcprov.version>
     <easymock.version>3.0</easymock.version>
     <felix.configadmin.version>1.8.0</felix.configadmin.version>
     <groovy.version>2.4.4</groovy.version>
     <gson.version>2.5</gson.version>
-    <guava.version>18.0</guava.version>
+    <guava.version>21.0</guava.version>
     <guava.test.version>10.0</guava.test.version>
     <guice.version>3.0</guice.version>
     <httpclient.version>4.3.4</httpclient.version>
```

it looks like ti cannot resolve the Guava 21 bundle but I can't see what is 
missing in the configuration.
@demobox @neykov could you have a look?

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds/pull/1197#issuecomment-382319204

Reply via email to