Apology, I thought problem is in JDK1.7. Please ignore my previous mail. Corrected response should be;
Check your maven script. May be $JAVA_HOME is hardcoded to use JDK1.7. According to [1] Please check pom.xml for following; <source>1.7</source> <target>1.7</target> [1] http://stackoverflow.com/questions/14043042/compiling-java-7-code-via-maven On Mon, Mar 9, 2015 at 2:12 PM, Aruna Karunarathna <[email protected]> wrote: > Maven Compiler plugin is set to JDK 1.7 in pom.xml > > <plugin> > <groupId>org.apache.maven.plugins</groupId> > <artifactId>maven-compiler-plugin</artifactId> > <configuration> > <encoding>UTF-8</encoding> > <source>1.7</source> > <target>1.7</target> > </configuration> > </plugin> > > On Mon, Mar 9, 2015 at 2:09 PM, Rasika Perera <[email protected]> wrote: > >> Hi Iqbal, >> >> Check your maven script. May be it is hardcoded to use JDK1.6. >> >> According to [1] Please check pom.xml for following; >> >> <source>1.6</source> >> <target>1.6</target> >> >> [1] >> http://stackoverflow.com/questions/14043042/compiling-java-7-code-via-maven >> >> On Mon, Mar 9, 2015 at 1:47 PM, Irham Iqbal <[email protected]> wrote: >> >>> Hi, >>> >>> When tried to build bam[1] using JDK 1.6 i am getting build failure[2] >>> but with JDK 1.7 it getting success. Any idea ? >>> >>> [1] https://github.com/wso2/product-bam >>> >>> [2] [INFO] WSO2 Business Activity Monitor .................... SUCCESS >>> [0.632s] >>> [INFO] WSO2 Business Activity Monitor - Multi-tenant Dashboard SUCCESS >>> [3.637s] >>> [INFO] WSO2 Business Activity Monitor - Styles Parent .... SUCCESS >>> [0.023s] >>> [INFO] WSO2 Business Activity Monitor - Product UI Styles FAILURE >>> [0.655s] >>> [INFO] WSO2 Business Activity Monitor - Multi-tenant UI Styles SKIPPED >>> [INFO] WSO2 Business Activity Monitor - Features Parent .. SKIPPED >>> [INFO] WSO2 Business Activity Monitor - Features ......... SKIPPED >>> [INFO] WSO2 Business Activity Monitor - Product Style Feature SKIPPED >>> [INFO] WSO2 Business Activity Monitor - Multi-tenant-Features SKIPPED >>> [INFO] WSO2 Business Activity Monitor - Multi-tenant Style Feature >>> SKIPPED >>> [INFO] WSO2 Business Activity Monitor - Multi-tenant Dashboard Feature >>> SKIPPED >>> [INFO] WSO2 Business Activity Monitor - Profile Generation SKIPPED >>> [INFO] WSO2 Business Activity Monitor - Samples .......... SKIPPED >>> [INFO] WSO2 Business Activity Monitor - Distribution ..... SKIPPED >>> [INFO] WSO2 Business Activity Monitor - Integration Tests SKIPPED >>> [INFO] WSO2 Business Activity Monitor - Integration Test Common Module >>> SKIPPED >>> [INFO] WSO2 Business Activity Monitor - Integration Test UI Pages >>> SKIPPED >>> [INFO] WSO2 Business Activity Monitor - Integration Test Common Utils >>> Module SKIPPED >>> [INFO] WSO2 Business Activity Monitor - Integration Test Module SKIPPED >>> [INFO] WSO2 Business Activity Monitor - Integration Test UI SKIPPED >>> [INFO] WSO2 Business Activity Monitor - Intetration UI ... SKIPPED >>> [INFO] >>> ------------------------------------------------------------------------ >>> [INFO] BUILD FAILURE >>> [INFO] >>> ------------------------------------------------------------------------ >>> [INFO] Total time: 5.934s >>> [INFO] Finished at: Mon Mar 09 13:33:13 IST 2015 >>> [INFO] Final Memory: 19M/1132M >>> [INFO] >>> ------------------------------------------------------------------------ >>> [ERROR] Failed to execute goal >>> org.apache.maven.plugins:maven-compiler-plugin:3.2:compile >>> (default-compile) on project org.wso2.bam.styles: Fatal error compiling: >>> invalid target release: 1.7 -> [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/MojoExecutionException >>> [ERROR] >>> [ERROR] After correcting the problems, you can resume the build with the >>> command >>> [ERROR] mvn <goals> -rf :org.wso2.bam.styles >>> >>> Thanks, >>> Iqbal >>> -- >>> Irham Iqbal >>> Software Engineer - Test Automation >>> WSO2, Inc.: http://wso2.com >>> lean. enterprise. middleware >>> phone: +94 777888452 >>> >>> _______________________________________________ >>> Dev mailing list >>> [email protected] >>> http://wso2.org/cgi-bin/mailman/listinfo/dev >>> >>> >> >> >> -- >> With Regards, >> >> *Rasika Perera* >> Software Engineer >> M: +94 71 680 9060 E: [email protected] >> LinkedIn: http://lk.linkedin.com/in/rasika90 >> >> WSO2 Inc. www.wso2.com >> lean.enterprise.middleware >> >> _______________________________________________ >> Dev mailing list >> [email protected] >> http://wso2.org/cgi-bin/mailman/listinfo/dev >> >> > > > -- > > *Aruna Sujith Karunarathna* | Software Engineer > WSO2, Inc | lean. enterprise. middleware. > #20, Palm Grove, Colombo 03, Sri Lanka > Mobile: +94 71 9040362 | Work: +94 112145345 > Email: [email protected] | Web: www.wso2.com > > > _______________________________________________ > Dev mailing list > [email protected] > http://wso2.org/cgi-bin/mailman/listinfo/dev > > -- With Regards, *Rasika Perera* Software Engineer M: +94 71 680 9060 E: [email protected] LinkedIn: http://lk.linkedin.com/in/rasika90 WSO2 Inc. www.wso2.com lean.enterprise.middleware
_______________________________________________ Dev mailing list [email protected] http://wso2.org/cgi-bin/mailman/listinfo/dev
