diff --git a/java/plugin.jelly b/java/plugin.jelly index 9743f0de..9e5661b7 100644 --- a/java/plugin.jelly +++ b/java/plugin.jelly @@ -48,6 +48,7 @@ excludes="**/package.html" debug="${maven.compile.debug}" deprecation="${maven.compile.deprecation}" + source="${maven.compile.source}" target="${maven.compile.target}" optimize="${maven.compile.optimize}"> diff --git a/java/plugin.properties b/java/plugin.properties index 775ca9cd..cee571e4 100644 --- a/java/plugin.properties +++ b/java/plugin.properties @@ -21,4 +21,5 @@ # FIXME: Need to move these to the jar plugin maven.jar.manifest = ${maven.conf.dir}/Manifest.mf maven.jar.mainclass = -maven.compile.target = 1.1 \ No newline at end of file +maven.compile.target = 1.1 +maven.compile.source = 1.3 diff --git a/java/xdocs/changes.xml b/java/xdocs/changes.xml index 83f8132c..cb996c26 100644 --- a/java/xdocs/changes.xml +++ b/java/xdocs/changes.xml @@ -26,6 +26,10 @@ + + Add source property, default to 1.3. This is required to use JDK 1.5. + + Remove clean goals and jar goals. Clean goals and jar goals move to diff --git a/java/xdocs/properties.xml b/java/xdocs/properties.xml index 8d3f35f3..d0f56bee 100644 --- a/java/xdocs/properties.xml +++ b/java/xdocs/properties.xml @@ -146,6 +146,22 @@ The source directories maven uses to compile java code. + + maven.compile.source + Yes + +

+ Specifies the source version for the Java compiler. +

+

+ Corresponds to the source attribute for the ant + javac + task. + This value defaults to 1.3 so that builds on JDK 1.4 or later stil work on + earlier JVMs. Valid values are 1.3, 1.4, 1.5. +

+ + maven.compile.target Yes