HI Rohit/ Wido, After adding below dependency to f5/pom.xml the build is successful. Below is the log for both FAILURE and successful BUILD.
Sudhansus-MAC:f5 sudhansu$ java -version java version "1.8.0_65" Java(TM) SE Runtime Environment (build 1.8.0_65-b17) Java HotSpot(TM) 64-Bit Server VM (build 25.65-b01, mixed mode) Sudhansus-MAC:f5 sudhansu$ mvn -Pnoredist -DskipTests clean install Java HotSpot(TM) 64-Bit Server VM warning: ignoring option MaxPermSize=500m; support was removed in 8.0 Listening for transport dt_socket at address: 8787 [INFO] Scanning for projects... [INFO] [INFO] ------------------------------------------------------------------------ [INFO] Building Apache CloudStack Plugin - F5 4.9.2.0-SNAPSHOT [INFO] ------------------------------------------------------------------------ Downloading: http://juniper.github.io/contrail-maven/snapshots/org/apache/cloudstack/cloud-server/4.9.2.0-SNAPSHOT/maven-metadata.xml Downloading: http://repository.apache.org/snapshots/org/apache/cloudstack/cloud-server/4.9.2.0-SNAPSHOT/maven-metadata.xml Downloading: http://juniper.github.io/contrail-maven/snapshots/org/apache/cloudstack/cloudstack/4.9.2.0-SNAPSHOT/maven-metadata.xml Downloading: http://repository.apache.org/snapshots/org/apache/cloudstack/cloudstack/4.9.2.0-SNAPSHOT/maven-metadata.xml Downloading: http://juniper.github.io/contrail-maven/snapshots/org/apache/cloudstack/cloud-core/4.9.2.0-SNAPSHOT/maven-metadata.xml Downloading: http://repository.apache.org/snapshots/org/apache/cloudstack/cloud-core/4.9.2.0-SNAPSHOT/maven-metadata.xml Downloading: http://juniper.github.io/contrail-maven/snapshots/org/apache/cloudstack/cloud-api/4.9.2.0-SNAPSHOT/maven-metadata.xml Downloading: http://repository.apache.org/snapshots/org/apache/cloudstack/cloud-api/4.9.2.0-SNAPSHOT/maven-metadata.xml Downloading: http://juniper.github.io/contrail-maven/snapshots/org/apache/cloudstack/cloud-utils/4.9.2.0-SNAPSHOT/maven-metadata.xml Downloading: http://repository.apache.org/snapshots/org/apache/cloudstack/cloud-utils/4.9.2.0-SNAPSHOT/maven-metadata.xml Downloading: http://juniper.github.io/contrail-maven/snapshots/org/apache/cloudstack/cloud-framework-managed-context/4.9.2.0-SNAPSHOT/maven-metadata.xml Downloading: http://repository.apache.org/snapshots/org/apache/cloudstack/cloud-framework-managed-context/4.9.2.0-SNAPSHOT/maven-metadata.xml Downloading: http://repository.apache.org/snapshots/org/apache/cloudstack/cloud-maven-standard/4.9.2.0-SNAPSHOT/maven-metadata.xml Downloading: http://juniper.github.io/contrail-maven/snapshots/org/apache/cloudstack/cloud-maven-standard/4.9.2.0-SNAPSHOT/maven-metadata.xml Downloading: http://repository.apache.org/snapshots/org/apache/cloudstack/cloud-framework-config/4.9.2.0-SNAPSHOT/maven-metadata.xml Downloading: http://juniper.github.io/contrail-maven/snapshots/org/apache/cloudstack/cloud-framework-config/4.9.2.0-SNAPSHOT/maven-metadata.xml Downloading: http://repository.apache.org/snapshots/org/apache/cloudstack/cloudstack-framework/4.9.2.0-SNAPSHOT/maven-metadata.xml Downloading: http://juniper.github.io/contrail-maven/snapshots/org/apache/cloudstack/cloudstack-framework/4.9.2.0-SNAPSHOT/maven-metadata.xml Downloading: http://juniper.github.io/contrail-maven/snapshots/org/apache/cloudstack/cloud-framework-db/4.9.2.0-SNAPSHOT/maven-metadata.xml Downloading: http://repository.apache.org/snapshots/org/apache/cloudstack/cloud-framework-db/4.9.2.0-SNAPSHOT/maven-metadata.xml Downloading: http://juniper.github.io/contrail-maven/snapshots/org/apache/cloudstack/cloud-engine-api/4.9.2.0-SNAPSHOT/maven-metadata.xml Downloading: http://repository.apache.org/snapshots/org/apache/cloudstack/cloud-engine-api/4.9.2.0-SNAPSHOT/maven-metadata.xml Downloading: http://juniper.github.io/contrail-maven/snapshots/org/apache/cloudstack/cloud-engine/4.9.2.0-SNAPSHOT/maven-metadata.xml Downloading: http://repository.apache.org/snapshots/org/apache/cloudstack/cloud-engine/4.9.2.0-SNAPSHOT/maven-metadata.xml Downloading: http://juniper.github.io/contrail-maven/snapshots/org/apache/cloudstack/cloud-framework-rest/4.9.2.0-SNAPSHOT/maven-metadata.xml Downloading: http://repository.apache.org/snapshots/org/apache/cloudstack/cloud-framework-rest/4.9.2.0-SNAPSHOT/maven-metadata.xml Downloading: http://juniper.github.io/contrail-maven/snapshots/org/apache/cloudstack/cloud-framework-ipc/4.9.2.0-SNAPSHOT/maven-metadata.xml Downloading: http://repository.apache.org/snapshots/org/apache/cloudstack/cloud-framework-ipc/4.9.2.0-SNAPSHOT/maven-metadata.xml Downloading: http://repository.apache.org/snapshots/org/apache/cloudstack/cloud-framework-security/4.9.2.0-SNAPSHOT/maven-metadata.xml Downloading: http://juniper.github.io/contrail-maven/snapshots/org/apache/cloudstack/cloud-framework-security/4.9.2.0-SNAPSHOT/maven-metadata.xml Downloading: http://juniper.github.io/contrail-maven/snapshots/org/apache/cloudstack/cloud-framework-cluster/4.9.2.0-SNAPSHOT/maven-metadata.xml Downloading: http://repository.apache.org/snapshots/org/apache/cloudstack/cloud-framework-cluster/4.9.2.0-SNAPSHOT/maven-metadata.xml Downloading: http://repository.apache.org/snapshots/org/apache/cloudstack/cloud-framework-jobs/4.9.2.0-SNAPSHOT/maven-metadata.xml Downloading: http://juniper.github.io/contrail-maven/snapshots/org/apache/cloudstack/cloud-framework-jobs/4.9.2.0-SNAPSHOT/maven-metadata.xml Downloading: http://repository.apache.org/snapshots/org/apache/cloudstack/cloud-framework-events/4.9.2.0-SNAPSHOT/maven-metadata.xml Downloading: http://juniper.github.io/contrail-maven/snapshots/org/apache/cloudstack/cloud-framework-events/4.9.2.0-SNAPSHOT/maven-metadata.xml Downloading: http://juniper.github.io/contrail-maven/snapshots/org/apache/cloudstack/cloud-engine-schema/4.9.2.0-SNAPSHOT/maven-metadata.xml Downloading: http://repository.apache.org/snapshots/org/apache/cloudstack/cloud-engine-schema/4.9.2.0-SNAPSHOT/maven-metadata.xml Downloading: http://repository.apache.org/snapshots/org/apache/cloudstack/cloud-engine-components-api/4.9.2.0-SNAPSHOT/maven-metadata.xml Downloading: http://juniper.github.io/contrail-maven/snapshots/org/apache/cloudstack/cloud-engine-components-api/4.9.2.0-SNAPSHOT/maven-metadata.xml [INFO] [INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ cloud-plugin-network-f5 --- [INFO] Deleting /Users/sudhansu/devel/CodeHome/cloudstack/plugins/network-elements/f5/target (includes = [**/*], excludes = []) [INFO] Deleting /Users/sudhansu/devel/CodeHome/cloudstack/plugins/network-elements/f5 (includes = [target, dist], excludes = []) [INFO] [INFO] --- maven-checkstyle-plugin:2.17:check (cloudstack-checkstyle) @ cloud-plugin-network-f5 --- Downloading: http://repository.apache.org/snapshots/org/apache/cloudstack/checkstyle/4.9.2.0-SNAPSHOT/maven-metadata.xml [INFO] Starting audit... Audit done. [INFO] [INFO] --- maven-remote-resources-plugin:1.3:process (default) @ cloud-plugin-network-f5 --- [INFO] [INFO] --- maven-resources-plugin:2.5:resources (default-resources) @ cloud-plugin-network-f5 --- [debug] execute contextualize [INFO] Using 'UTF-8' encoding to copy filtered resources. [INFO] Copying 2 resources [INFO] Copying 3 resources [INFO] [INFO] --- maven-compiler-plugin:3.2:compile (default-compile) @ cloud-plugin-network-f5 --- [INFO] Changes detected - recompiling the module! [INFO] Compiling 12 source files to /Users/sudhansu/devel/CodeHome/cloudstack/plugins/network-elements/f5/target/classes [INFO] ------------------------------------------------------------- [ERROR] COMPILATION ERROR : [INFO] ------------------------------------------------------------- [ERROR] /Users/sudhansu/devel/CodeHome/cloudstack/plugins/network-elements/f5/src/com/cloud/network/resource/F5BigIpResource.java:[411,26] error: cannot access Stub [INFO] 1 error [INFO] ------------------------------------------------------------- [INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 28.137s [INFO] Finished at: Tue Dec 27 19:15:49 IST 2016 [INFO] Final Memory: 27M/338M [INFO] ------------------------------------------------------------------------ [WARNING] The requested profile "noredist" could not be activated because it does not exist. [ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.2:compile (default-compile) on project cloud-plugin-network-f5: Compilation failure [ERROR] /Users/sudhansu/devel/CodeHome/cloudstack/plugins/network-elements/f5/src/com/cloud/network/resource/F5BigIpResource.java:[411,26] error: cannot access Stub [ERROR] -> [Help 1] [ERROR] [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch. [ERROR] Re-run Maven using the -X switch to enable full debug logging. [ERROR] [ERROR] For more information about the errors and possible solutions, please read the following articles: [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException Sudhansus-MAC:f5 sudhansu$ vi pom Sudhansus-MAC:f5 sudhansu$ vi pom.xml Sudhansus-MAC:f5 sudhansu$ vi pom.xml Sudhansus-MAC:f5 sudhansu$ mvn -Pnoredist -DskipTests clean install Java HotSpot(TM) 64-Bit Server VM warning: ignoring option MaxPermSize=500m; support was removed in 8.0 Listening for transport dt_socket at address: 8787 [INFO] Scanning for projects... [INFO] [INFO] ------------------------------------------------------------------------ [INFO] Building Apache CloudStack Plugin - F5 4.9.2.0-SNAPSHOT [INFO] ------------------------------------------------------------------------ [INFO] [INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ cloud-plugin-network-f5 --- [INFO] Deleting /Users/sudhansu/devel/CodeHome/cloudstack/plugins/network-elements/f5/target (includes = [**/*], excludes = []) [INFO] Deleting /Users/sudhansu/devel/CodeHome/cloudstack/plugins/network-elements/f5 (includes = [target, dist], excludes = []) [INFO] [INFO] --- maven-checkstyle-plugin:2.17:check (cloudstack-checkstyle) @ cloud-plugin-network-f5 --- [INFO] Starting audit... Audit done. [INFO] [INFO] --- maven-remote-resources-plugin:1.3:process (default) @ cloud-plugin-network-f5 --- [INFO] [INFO] --- maven-resources-plugin:2.5:resources (default-resources) @ cloud-plugin-network-f5 --- [debug] execute contextualize [INFO] Using 'UTF-8' encoding to copy filtered resources. [INFO] Copying 2 resources [INFO] Copying 3 resources [INFO] [INFO] --- maven-compiler-plugin:3.2:compile (default-compile) @ cloud-plugin-network-f5 --- [INFO] Changes detected - recompiling the module! [INFO] Compiling 12 source files to /Users/sudhansu/devel/CodeHome/cloudstack/plugins/network-elements/f5/target/classes [INFO] [INFO] --- maven-resources-plugin:2.5:testResources (default-testResources) @ cloud-plugin-network-f5 --- [debug] execute contextualize [INFO] Using 'UTF-8' encoding to copy filtered resources. [INFO] skip non existing resourceDirectory /Users/sudhansu/devel/CodeHome/cloudstack/plugins/network-elements/f5/test/resources [INFO] Copying 3 resources [INFO] [INFO] --- maven-compiler-plugin:3.2:testCompile (default-testCompile) @ cloud-plugin-network-f5 --- [INFO] No sources to compile [INFO] [INFO] --- maven-surefire-plugin:2.18.1:test (default-test) @ cloud-plugin-network-f5 --- [INFO] Tests are skipped. [INFO] [INFO] --- maven-jar-plugin:2.5:jar (default-jar) @ cloud-plugin-network-f5 --- [INFO] Building jar: /Users/sudhansu/devel/CodeHome/cloudstack/plugins/network-elements/f5/target/cloud-plugin-network-f5-4.9.2.0-SNAPSHOT.jar [INFO] [INFO] --- maven-site-plugin:3.1:attach-descriptor (attach-descriptor) @ cloud-plugin-network-f5 --- [INFO] [INFO] --- maven-install-plugin:2.3.1:install (default-install) @ cloud-plugin-network-f5 --- [INFO] Installing /Users/sudhansu/devel/CodeHome/cloudstack/plugins/network-elements/f5/target/cloud-plugin-network-f5-4.9.2.0-SNAPSHOT.jar to /Users/sudhansu/.m2/repository/org/apache/cloudstack/cloud-plugin-network-f5/4.9.2.0-SNAPSHOT/cloud-plugin-network-f5-4.9.2.0-SNAPSHOT.jar [INFO] Installing /Users/sudhansu/devel/CodeHome/cloudstack/plugins/network-elements/f5/pom.xml to /Users/sudhansu/.m2/repository/org/apache/cloudstack/cloud-plugin-network-f5/4.9.2.0-SNAPSHOT/cloud-plugin-network-f5-4.9.2.0-SNAPSHOT.pom [INFO] ------------------------------------------------------------------------ [INFO] BUILD SUCCESS [INFO] ------------------------------------------------------------------------ [INFO] Total time: 13.429s [INFO] Finished at: Tue Dec 27 19:17:11 IST 2016 [INFO] Final Memory: 28M/390M [INFO] ------------------------------------------------------------------------ [WARNING] The requested profile "noredist" could not be activated because it does not exist. Sudhansus-MAC:f5 sudhansu$ git diff diff --git a/plugins/network-elements/f5/pom.xml b/plugins/network-elements/f5/pom.xml index 137c607..37e218b 100644 --- a/plugins/network-elements/f5/pom.xml +++ b/plugins/network-elements/f5/pom.xml @@ -27,6 +27,10 @@ <relativePath>../../pom.xml</relativePath> </parent> <dependencies> +<dependency> +<groupId>org.apache.axis</groupId> +<artifactId>axis-jaxrpc</artifactId> +</dependency> <dependency> <groupId>com.cloud.com.f5</groupId> <artifactId>icontrol</artifactId> Sudhansus-MAC:f5 sudhansu$ Thanks Sudhansu On Tue, Dec 27, 2016 at 5:55 PM, Wido den Hollander <w...@widodh.nl> wrote: > > > Op 27 december 2016 om 8:23 schreef Rohit Yadav < > rohit.ya...@shapeblue.com>: > > > > > > All, > > > > > > Java7 has eol-ed, it's about time to move to Java8 for both codebase and > runtime [1]. > > > > > > An experimental PR [2] shows that moving to Java8 is fairly straight > forward. The only component that is failing is F5 network plugin, which > lacks authors/maintainers as this issue has been previously raised on dev@ > [3]. > > > > > > In order to move to JDK8, we'll need to take hard decisions to > comment/exclude plugins such as F5 from the default build profiles that may > not get fixes and improvements from their authors/maintainers. Thoughts, > comments? > > > > I think that we should drop the F5 plugin then and move to Java 8. We > can't stick on 7 for ever imho. > > Wido > > > > > [1] https://issues.apache.org/jira/browse/CLOUDSTACK-9710 > > > > <https://issues.apache.org/jira/browse/CLOUDSTACK-9710> > > > > [2] https://github.com/apache/cloudstack/pull/1864 > > > > [3] http://markmail.org/message/ggx5ycoezyr2ywel > > > > > > Regards. > > > > rohit.ya...@shapeblue.com > > www.shapeblue.com > > 53 Chandos Place, Covent Garden, London WC2N 4HSUK > > @shapeblue > > > > > > >