Author: rfscholte
Date: Sat Dec 20 14:06:04 2014
New Revision: 1646983
URL: http://svn.apache.org/r1646983
Log:
Add properties for source+target when used by maven-invoker-plugin.
Right now plugins are compiled with source/target 1.5, which is not supported
by JDK9. However, we can test if 1.5 compiled plugins still work with a JDK9
runtime environment. You'll execute it like this:
mvn verify -Prun-its -Dinvoker.javaHome=%JAVA9_HOME%
-Dinvoker.maven.compiler.source=1.6 -Dinvoker.maven.compiler.target=1.6
Modified:
maven/plugins/trunk/maven-plugins/pom.xml
Modified: maven/plugins/trunk/maven-plugins/pom.xml
URL:
http://svn.apache.org/viewvc/maven/plugins/trunk/maven-plugins/pom.xml?rev=1646983&r1=1646982&r2=1646983&view=diff
==============================================================================
--- maven/plugins/trunk/maven-plugins/pom.xml (original)
+++ maven/plugins/trunk/maven-plugins/pom.xml Sat Dec 20 14:06:04 2014
@@ -218,6 +218,11 @@ under the License.
</profile>
<profile>
<id>run-its</id>
+ <properties>
+ <!-- when testing with JDK9, change these values to 1.6 from cmdline
-->
+
<invoker.maven.compiler.source>${maven.compiler.source}</invoker.maven.compiler.source>
+
<invoker.maven.compiler.target>${maven.compiler.target}</invoker.maven.compiler.target>
+ </properties>
<build>
<plugins>
<plugin>
@@ -234,6 +239,10 @@ under the License.
<pomIncludes>
<pomInclude>*/pom.xml</pomInclude>
</pomIncludes>
+ <properties>
+
<maven.compiler.source>${invoker.maven.compiler.source}</maven.compiler.source>
+
<maven.compiler.target>${invoker.maven.compiler.target}</maven.compiler.target>
+ </properties>
</configuration>
<executions>
<execution>