You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by rf...@apache.org on 2017/01/13 10:17:16 UTC
svn commit: r1778530 -
/maven/plugins/trunk/maven-compiler-plugin/src/site/apt/examples/module-info.apt.vm
Author: rfscholte
Date: Fri Jan 13 10:17:16 2017
New Revision: 1778530
URL: http://svn.apache.org/viewvc?rev=1778530&view=rev
Log:
[MCOMPILER-287] Adjust documentation module-info
Ensure test-compile uses correct source/target or release
Modified:
maven/plugins/trunk/maven-compiler-plugin/src/site/apt/examples/module-info.apt.vm
Modified: maven/plugins/trunk/maven-compiler-plugin/src/site/apt/examples/module-info.apt.vm
URL: http://svn.apache.org/viewvc/maven/plugins/trunk/maven-compiler-plugin/src/site/apt/examples/module-info.apt.vm?rev=1778530&r1=1778529&r2=1778530&view=diff
==============================================================================
--- maven/plugins/trunk/maven-compiler-plugin/src/site/apt/examples/module-info.apt.vm (original)
+++ maven/plugins/trunk/maven-compiler-plugin/src/site/apt/examples/module-info.apt.vm Fri Jan 13 10:17:16 2017
@@ -66,21 +66,22 @@ Older projects with module-info
<goals>
<goal>compile</goal>
</goals>
+ <!-- recompile everything for target VM except the module-info.java
<configuration>
<excludes>
<exclude>module-info.java</exclude>
</excludes>
- <source>1.5</source>
- <target>1.5</target>
</configuration>
</execution>
</executions>
+ <!-- defaults for compile and testCompile -->
<configuration>
- <!-- default for compile and testCompile, required when JAVA_HOME is JDK 9 or above -->
+ <!-- jdkToolchain required when JAVA_HOME is JDK 9 or above -->
<jdkToolchain>
<version>[1.5,9)</version>
</jdkToolchain>
- <release>9</release>
+ <source>1.5</source>
+ <target>1.5</target>
</configuration>
</plugin>
</plugins>
@@ -118,19 +119,21 @@ Older projects with module-info
<goals>
<goal>compile</goal>
</goals>
+ <!-- recompile everything for target VM except the module-info.java
<configuration>
<excludes>
<exclude>module-info.java</exclude>
</excludes>
- <release>6</release>
</configuration>
</execution>
</executions>
+ <!-- defaults for compile and testCompile -->
<configuration>
<!-- Only required when JAVA_HOME isn't at least Java 9 and when haven't configured the maven-toolchains-plugin -->
<jdkToolchain>
<version>9</version>
</jdkToolchain>
+ <release>6</release>
</configuration>
</plugin>
</plugins>