[MCOMPILER-287] Adjust documentation module-info
Ensure test-compile uses correct source/target or release

git-svn-id: https://svn.apache.org/repos/asf/maven/plugins/trunk@1778530 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/src/site/apt/examples/module-info.apt.vm b/src/site/apt/examples/module-info.apt.vm
index 0c57f48..5401aa4 100644
--- a/src/site/apt/examples/module-info.apt.vm
+++ b/src/site/apt/examples/module-info.apt.vm
@@ -66,21 +66,22 @@
             <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 @@
             <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>