diff --git a/docs/src/site/apt/index.apt.vm b/docs/src/site/apt/index.apt.vm index 331383fa..51054aeb 100644 --- a/docs/src/site/apt/index.apt.vm +++ b/docs/src/site/apt/index.apt.vm @@ -63,6 +63,29 @@ Apache Software Foundation Parent POM ** <>: The POM sets up generic Apache announcement lists. You should override this. + ** <>: Java version used for compilation, default value is <<$context.get("javaVersion")>>. + + You can override this property in your project POM to set different Java version for compilation. + + The <<>> property is used to set the <<>> properties, so they should not be set directly in your project POM. + + They will be set automatically according to the JDK used for the project build: + + *** for JDK 8 and older + ++------+ + \${javaVersion} + \${javaVersion} ++------+ + + *** for JDK 9 and newer + ++------+ + \${javaVersion} ++------+ + + [] + * <>: The plugin management section specifies versions of a list of plugins. See the {{{./plugin-management.html}Plugin Management report}} for the complete list with versions. @@ -77,11 +100,6 @@ Apache Software Foundation Parent POM [] - ** The compiler plugin is set target <> (<<>> property) - and assume $context.get("project.build.sourceEncoding") source encoding (<<>> property). When being executed - with JDK 9 or newer also <<>> is set to the value of property <<>>. - Therefore its value must not start with <<<1.>>> (use for example <<<8>>> instead of <<<1.8>>>). - ** The jar plugin is set to add default specification and implementation entries. ** The resources plugin is set for $context.get("project.build.sourceEncoding"). @@ -108,7 +126,7 @@ Apache Software Foundation Parent POM *** <<>> property: default value is <> - *** <<>> property: default value is <> + *** <<>> property: default is <<>> property value. [] @@ -191,6 +209,9 @@ Settings Configuration Notices + * Since version <<36>>, the <<>> property has been introduced + to define the Java version used for the <<>> properties. + * Since version <<32>> <<>> was removed from <<>> section. Publishing a site descriptor is only needed in project parent poms, child projects not need publish it. diff --git a/pom.xml b/pom.xml index 436092d7..bb46f714 100644 --- a/pom.xml +++ b/pom.xml @@ -96,11 +96,10 @@ under the License. source-release apache-jar-resource-bundle true + + 8 3.6.3 - ${maven.compiler.target} - ${maven.compiler.target} - - 8 + ${javaVersion} 3.5.4 posix @@ -520,9 +519,8 @@ under the License. [,9) - ${maven.compiler.target} - 8 - ${maven.compiler.target} + ${javaVersion} + ${javaVersion} @@ -533,8 +531,7 @@ under the License. - 8 - ${maven.compiler.release} + ${javaVersion}