Build with Java 7 and -source 1.6 leads to warnings
b.eckenfels Apr 8, 2013 6:06 PMHello,
the 7.2.0.Final is using the enforcer plugin to require Java 7 as a build environemnt. At the same time it specifies -source 1.6.0 in some modules. This leads to some warning messages about having a wrong (7) bootclasspath. Is this mix intentional? I know that there have been some problems with Java 7 in 7.1 (and hibernate), but I guess they are fixed when JDK 7 is enforced.
Example:
... [INFO] ------------------------------------------------------------------------ [INFO] Building JBoss Application Server: JAXR Client 7.2.0.Final [INFO] ------------------------------------------------------------------------ ... [INFO] --- maven-enforcer-plugin:1.2:enforce (enforce-java-version) @ jboss-as-jaxr --- [INFO] --- maven-compiler-plugin:3.0:compile (default-compile) @ jboss-as-jaxr --- [INFO] Compiling 19 source files to C:\ws\oss\jboss-as\jaxr\target\classes [WARNING] bootstrap class path not set in conjunction with -source 1.6 ...
All the following jboss-parent POMs seem to be used by the .Final build :-/ and all contain the 1.6 definition:
$ grep 'compiler.source>1.6' /c/Users/eckenfel/.m2/repository/org/jboss/jboss-parent/*/jboss-parent-*.pom /c/Users/eckenfel/.m2/repository/org/jboss/jboss-parent/10/jboss-parent-10.pom: <maven.compiler.source>1.6</maven.compiler.source> /c/Users/eckenfel/.m2/repository/org/jboss/jboss-parent/6-beta-1/jboss-parent-6-beta-1.pom: <maven.compiler.source>1.6</maven.compiler.source> /c/Users/eckenfel/.m2/repository/org/jboss/jboss-parent/6-beta-2/jboss-parent-6-beta-2.pom: <maven.compiler.source>1.6</maven.compiler.source> /c/Users/eckenfel/.m2/repository/org/jboss/jboss-parent/6/jboss-parent-6.pom: <maven.compiler.source>1.6</maven.compiler.source> /c/Users/eckenfel/.m2/repository/org/jboss/jboss-parent/7/jboss-parent-7.pom: <maven.compiler.source>1.6</maven.compiler.source> /c/Users/eckenfel/.m2/repository/org/jboss/jboss-parent/8/jboss-parent-8.pom: <maven.compiler.source>1.6</maven.compiler.source> /c/Users/eckenfel/.m2/repository/org/jboss/jboss-parent/9/jboss-parent-9.pom: <maven.compiler.source>1.6</maven.compiler.source>
Greetings
Bernd