What is the output of java -version . Try after installing Java c 1.7 .It might resolve this issue.
Regards Sadhu -----Original Message----- From: CK [mailto:cloudw...@gmail.com] Sent: 07 February 2014 17:11 To: dev@cloudstack.apache.org Subject: Source build failing in DevCloud Hi, This is my first attempt at building CloudStack from the source code and decided on using DevCloud. I followed the wiki for using DevCloud https://cwiki.apache.org/confluence/display/CLOUDSTACK/DevCloud. I want to build the 4.3 release and used the updated DevCloud 2.0 appliance and as per the instructions. I git cloned the latest master code, but when I then run "mvn -P developer,systemvm clean install". I get a compilation/build failure (see output below). Q1) Have I missed something and why I am I getting this error? Q2) I see it is building 4.4.0-SNAPSHOT how do I get it to build 4.3? Thanks. [INFO] ------------------------------------------------------------------------ [INFO] Building Apache CloudStack Developer Tools - Checkstyle Configuration 4.4.0-SNAPSHOT [INFO] ------------------------------------------------------------------------ [INFO] [INFO] --- maven-clean-plugin:2.4.1:clean (default-clean) @ checkstyle --- [INFO] Deleting /opt/cloudstack/cloudstack/tools/checkstyle/target [INFO] [INFO] --- maven-resources-plugin:2.5:resources (default-resources) @ checkstyle --- [debug] execute contextualize [WARNING] Using platform encoding (UTF-8 actually) to copy filtered resources, i.e. build is platform dependent! [INFO] Copying 1 resource [INFO] [INFO] --- maven-compiler-plugin:2.3.2:compile (default-compile) @ checkstyle --- [INFO] No sources to compile [INFO] [INFO] --- maven-resources-plugin:2.5:testResources (default-testResources) @ checkstyle --- [debug] execute contextualize [WARNING] Using platform encoding (UTF-8 actually) to copy filtered resources, i.e. build is platform dependent! [INFO] skip non existing resourceDirectory /opt/cloudstack/cloudstack/tools/checkstyle/src/test/resources [INFO] [INFO] --- maven-compiler-plugin:2.3.2:testCompile (default-testCompile) @ checkstyle --- [INFO] No sources to compile [INFO] [INFO] --- maven-surefire-plugin:2.10:test (default-test) @ checkstyle --- [INFO] No tests to run. [INFO] Surefire report directory: /opt/cloudstack/cloudstack/tools/checkstyle/target/surefire-reports ------------------------------------------------------- T E S T S ------------------------------------------------------- Results : Tests run: 0, Failures: 0, Errors: 0, Skipped: 0 [INFO] [INFO] --- maven-jar-plugin:2.3.2:jar (default-jar) @ checkstyle --- [INFO] Building jar: /opt/cloudstack/cloudstack/tools/checkstyle/target/checkstyle-4.4.0-SNAPSHOT.jar [INFO] [INFO] --- maven-install-plugin:2.3.1:install (default-install) @ checkstyle --- [INFO] Installing /opt/cloudstack/cloudstack/tools/checkstyle/target/checkstyle-4.4.0-SNAPSHOT.jar to /root/.m2/repository/org/apache/cloudstack/checkstyle/4.4.0-SNAPSHOT/checkstyle-4.4.0-SNAPSHOT.jar [INFO] Installing /opt/cloudstack/cloudstack/tools/checkstyle/pom.xml to /root/.m2/repository/org/apache/cloudstack/checkstyle/4.4.0-SNAPSHOT/checkstyle-4.4.0-SNAPSHOT.pom [INFO] [INFO] ------------------------------------------------------------------------ [INFO] Building Apache CloudStack 4.4.0-SNAPSHOT [INFO] ------------------------------------------------------------------------ [INFO] [INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ cloudstack --- [INFO] Deleting /opt/cloudstack/cloudstack/target (includes = [**/*], excludes = []) [INFO] Deleting /opt/cloudstack/cloudstack (includes = [target, dist], excludes = []) [INFO] [INFO] --- maven-remote-resources-plugin:1.3:process (default) @ cloudstack --- [INFO] [INFO] --- maven-site-plugin:3.3:attach-descriptor (attach-descriptor) @ cloudstack --- [INFO] [INFO] --- maven-install-plugin:2.3.1:install (default-install) @ cloudstack --- [INFO] Installing /opt/cloudstack/cloudstack/pom.xml to /root/.m2/repository/org/apache/cloudstack/cloudstack/4.4.0-SNAPSHOT/cloudstack-4.4.0-SNAPSHOT.pom [INFO] [INFO] ------------------------------------------------------------------------ [INFO] Building Apache CloudStack Maven Conventions Parent 4.4.0-SNAPSHOT [INFO] ------------------------------------------------------------------------ [INFO] [INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ cloud-maven-standard --- [INFO] Deleting /opt/cloudstack/cloudstack/maven-standard/target (includes = [**/*], excludes = []) [INFO] Deleting /opt/cloudstack/cloudstack/maven-standard (includes = [target, dist], excludes = []) [INFO] [INFO] --- maven-checkstyle-plugin:2.11:check (cloudstack-checkstyle) @ cloud-maven-standard --- [INFO] Starting audit... Audit done. [INFO] [INFO] --- maven-remote-resources-plugin:1.3:process (default) @ cloud-maven-standard --- [INFO] [INFO] --- maven-site-plugin:3.3:attach-descriptor (attach-descriptor) @ cloud-maven-standard --- [INFO] [INFO] --- maven-install-plugin:2.3.1:install (default-install) @ cloud-maven-standard --- [INFO] Installing /opt/cloudstack/cloudstack/maven-standard/pom.xml to /root/.m2/repository/org/apache/cloudstack/cloud-maven-standard/4.4.0-SNAPSHOT/cloud-maven-standard-4.4.0-SNAPSHOT.pom [INFO] [INFO] ------------------------------------------------------------------------ [INFO] Building Apache CloudStack Framework - Managed Context 4.4.0-SNAPSHOT [INFO] ------------------------------------------------------------------------ [INFO] [INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ cloud-framework-managed-context --- [INFO] Deleting /opt/cloudstack/cloudstack/framework/managed-context/target (includes = [**/*], excludes = []) [INFO] Deleting /opt/cloudstack/cloudstack/framework/managed-context (includes = [target, dist], excludes = []) [INFO] [INFO] --- maven-checkstyle-plugin:2.11:check (cloudstack-checkstyle) @ cloud-framework-managed-context --- [INFO] Starting audit... Audit done. [INFO] [INFO] --- maven-remote-resources-plugin:1.3:process (default) @ cloud-framework-managed-context --- [INFO] [INFO] --- maven-resources-plugin:2.5:resources (default-resources) @ cloud-framework-managed-context --- [debug] execute contextualize [INFO] Using 'UTF-8' encoding to copy filtered resources. [INFO] skip non existing resourceDirectory /opt/cloudstack/cloudstack/framework/managed-context/src/main/resources [INFO] Copying 3 resources [INFO] [INFO] --- maven-compiler-plugin:2.5.1:compile (default-compile) @ cloud-framework-managed-context --- [INFO] Compiling 8 source files to /opt/cloudstack/cloudstack/framework/managed-context/target/classes [INFO] ------------------------------------------------------------- [ERROR] COMPILATION ERROR : [INFO] ------------------------------------------------------------- [ERROR] Failure executing javac, but could not parse the error: javac: invalid target release: 1.7 Usage: javac <options> <source files> use -help for a list of possible options [INFO] 1 error [INFO] ------------------------------------------------------------- [INFO] ------------------------------------------------------------------------ [INFO] Reactor Summary: [INFO] [INFO] Apache CloudStack Developer Tools - Checkstyle Configuration SUCCESS [2.085s] [INFO] Apache CloudStack ................................. SUCCESS [1.474s] [INFO] Apache CloudStack Maven Conventions Parent ........ SUCCESS [1.039s] [INFO] Apache CloudStack Framework - Managed Context ..... FAILURE [1.312s] [INFO] Apache CloudStack Utils ........................... SKIPPED [INFO] Apache CloudStack Framework ....................... SKIPPED [INFO] Apache CloudStack Framework - Event Notification .. SKIPPED [INFO] Apache CloudStack Framework - Configuration ....... SKIPPED [INFO] Apache CloudStack API ............................. SKIPPED [INFO] Apache CloudStack Framework - REST ................ SKIPPED [INFO] Apache CloudStack Framework - IPC ................. SKIPPED [INFO] Apache CloudStack Cloud Engine .................... SKIPPED [INFO] Apache CloudStack Cloud Engine API ................ SKIPPED [INFO] Apache CloudStack Framework - Security ............ SKIPPED [INFO] Apache CloudStack Core ............................ SKIPPED [INFO] Apache CloudStack Agents .......................... SKIPPED [INFO] Apache CloudStack Framework - Clustering .......... SKIPPED [INFO] Apache CloudStack Framework - Jobs ................ SKIPPED [INFO] Apache CloudStack Cloud Engine Schema Component ... SKIPPED [INFO] Apache CloudStack Framework - Event Notification .. SKIPPED [INFO] Apache CloudStack Cloud Engine Internal Components API SKIPPED [INFO] Apache CloudStack Server .......................... SKIPPED [INFO] Apache CloudStack Usage Server .................... SKIPPED [INFO] Apache XenSource XAPI ............................. SKIPPED [INFO] Apache CloudStack Cloud Engine Orchestration Component SKIPPED [INFO] Apache CloudStack Cloud Services .................. SKIPPED [INFO] Apache CloudStack Secondary Storage ............... SKIPPED [INFO] Apache CloudStack Secondary Storage Service ....... SKIPPED [INFO] Apache CloudStack Engine Storage Component ........ SKIPPED [INFO] Apache CloudStack Engine Storage Volume Component . SKIPPED [INFO] Apache CloudStack Engine Storage Image Component .. SKIPPED [INFO] Apache CloudStack Engine Storage Data Motion Component SKIPPED [INFO] Apache CloudStack Engine Storage Cache Component .. SKIPPED [INFO] Apache CloudStack Engine Storage Snapshot Component SKIPPED [INFO] Apache CloudStack Cloud Engine API ................ SKIPPED [INFO] Apache CloudStack Cloud Engine Service ............ SKIPPED [INFO] Apache CloudStack Plugin POM ...................... SKIPPED [INFO] Apache CloudStack Plugin - API Rate Limit ......... SKIPPED [INFO] Apache CloudStack Plugin - API Discovery .......... SKIPPED [INFO] Apache CloudStack Plugin - ACL Static Role Based .. SKIPPED [INFO] Apache CloudStack Plugin - Host Anti-Affinity Processor SKIPPED [INFO] Apache CloudStack Plugin - Explicit Dedication Processor SKIPPED [INFO] Apache CloudStack Plugin - User Concentrated Pod Deployment Planner SKIPPED [INFO] Apache CloudStack Plugin - User Dispersing Deployment Planner SKIPPED [INFO] Apache CloudStack Plugin - Implicit Dedication Planner SKIPPED [INFO] Apache CloudStack Plugin - Skip Heurestics Planner SKIPPED [INFO] Apache CloudStack Plugin - Host Allocator Random .. SKIPPED [INFO] Apache CloudStack Plugin - Dedicated Resources .... SKIPPED [INFO] Apache CloudStack Plugin - Hypervisor OracleVM .... SKIPPED [INFO] Apache CloudStack Plugin - Open vSwitch ........... SKIPPED [INFO] Apache CloudStack Plugin - Hypervisor Xen ......... SKIPPED [INFO] Apache CloudStack Plugin - Hypervisor KVM ......... SKIPPED [INFO] Apache CloudStack Plugin - RabbitMQ Event Bus ..... SKIPPED [INFO] Apache CloudStack Plugin - In Memory Event Bus .... SKIPPED [INFO] Apache CloudStack Plugin - Hypervisor Baremetal ... SKIPPED [INFO] Apache CloudStack Plugin - Hypervisor UCS ......... SKIPPED [INFO] Apache CloudStack Plugin - Hypervisor Hyper-V ..... SKIPPED [INFO] Apache CloudStack Plugin - Network Elastic Load Balancer SKIPPED [INFO] Apache CloudStack Plugin - Network Internal Load Balancer SKIPPED [INFO] Apache CloudStack Framework - Spring Life Cycle ... SKIPPED [INFO] Apache CloudStack Plugin - Network Juniper Contrail SKIPPED [INFO] Apache CloudStack Plugin - Palo Alto .............. SKIPPED [INFO] Apache CloudStack Plugin - Network Netscaler ...... SKIPPED [INFO] Apache CloudStack Plugin - Network Nicira NVP ..... SKIPPED [INFO] Apache CloudStack Plugin - BigSwitch Virtual Network Segment SKIPPED [INFO] Apache CloudStack Plugin - Midokura Midonet ....... SKIPPED [INFO] Apache CloudStack Plugin - Stratosphere SSP ....... SKIPPED [INFO] Apache CloudStack Plugin - Network Opendaylight ... SKIPPED [INFO] Apache CloudStack Plugin - Storage Allocator Random SKIPPED [INFO] Apache CloudStack Plugin - User Authenticator LDAP SKIPPED [INFO] Apache CloudStack Plugin - User Authenticator MD5 . SKIPPED [INFO] Apache CloudStack Plugin - User Authenticator Plain Text SKIPPED [INFO] Apache CloudStack Plugin - User Authenticator SHA256 Salted SKIPPED [INFO] Apache CloudStack Plugin - Dns Notifier Example ... SKIPPED [INFO] Apache CloudStack Plugin - Storage Image S3 ....... SKIPPED [INFO] Apache CloudStack Plugin - Storage Image Swift provider SKIPPED [INFO] Apache CloudStack Plugin - Storage Image default provider SKIPPED [INFO] Apache CloudStack Plugin - Storage Image sample provider SKIPPED [INFO] Apache CloudStack Plugin - Storage Volume Nexenta Provider SKIPPED [INFO] Apache CloudStack Plugin - Storage Volume SolidFire Provider SKIPPED [INFO] Apache CloudStack Plugin - Storage Volume default provider SKIPPED [INFO] Apache CloudStack Plugin - Storage Volume sample provider SKIPPED [INFO] Apache CloudStack Plugin - SNMP Alerts ............ SKIPPED [INFO] Apache CloudStack Plugin - Syslog Alerts .......... SKIPPED [INFO] Apache CloudStack Plugin - Network VXLAN .......... SKIPPED [INFO] Apache CloudStack Framework - Spring Module ....... SKIPPED [INFO] Apache CloudStack Secondary Storage Controller .... SKIPPED [INFO] Apache CloudStack Console Proxy - RDP Client ...... SKIPPED [INFO] Apache CloudStack Console Proxy ................... SKIPPED [INFO] Apache CloudStack Console Proxy - Server .......... SKIPPED [INFO] Apache CloudStack System VM ....................... SKIPPED [INFO] Apache CloudStack Client UI ....................... SKIPPED [INFO] Apache CloudStack Framework - QuickCloud .......... SKIPPED [INFO] Apache CloudStack Test ............................ SKIPPED [INFO] Apache CloudStack Developer Mode .................. SKIPPED [INFO] Apache CloudStack Developer Tools ................. SKIPPED [INFO] Apache CloudStack apidocs ......................... SKIPPED [INFO] Apache CloudStack marvin .......................... SKIPPED [INFO] Apache CloudStack DevCloud ........................ SKIPPED [INFO] Apache CloudStack DevCloud-KVM .................... SKIPPED [INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 8.530s [INFO] Finished at: Fri Feb 07 01:26:33 UTC 2014 [INFO] Final Memory: 32M/78M [INFO] ------------------------------------------------------------------------ [ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:2.5.1:compile (default-compile) on project cloud-framework-managed-context: Compilation failure [ERROR] Failure executing javac, but could not parse the error: [ERROR] javac: invalid target release: 1.7 [ERROR] Usage: javac <options> <source files> [ERROR] use -help for a list of possible options [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 [ERROR] [ERROR] After correcting the problems, you can resume the build with the command [ERROR] mvn <goals> -rf :cloud-framework-managed-context