Author: hboutemy
Date: Sun Aug 23 09:56:47 2015
New Revision: 1697159
URL: http://svn.apache.org/r1697159
Log:
[MPOM-83] added jdk-toolchain profile to enable build with jdk as toolchain
Modified:
maven/pom/trunk/maven/pom.xml
maven/pom/trunk/maven/src/site-docs/apt/index.apt.vm
Modified: maven/pom/trunk/maven/pom.xml
URL:
http://svn.apache.org/viewvc/maven/pom/trunk/maven/pom.xml?rev=1697159&r1=1697158&r2=1697159&view=diff
==============================================================================
--- maven/pom/trunk/maven/pom.xml (original)
+++ maven/pom/trunk/maven/pom.xml Sun Aug 23 09:56:47 2015
@@ -944,6 +944,11 @@ under the License.
</configuration>
</plugin>
<plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-toolchains-plugin</artifactId>
+ <version>1.1</version>
+ </plugin>
+ <plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>findbugs-maven-plugin</artifactId>
<version>2.5.5</version>
@@ -1070,6 +1075,31 @@ under the License.
<profiles>
<profile>
+ <id>jdk-toolchain</id>
+ <build>
+ <plugins>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-toolchains-plugin</artifactId>
+ <configuration>
+ <toolchains>
+ <jdk>
+ <version>${maven.compiler.target}</version>
+ </jdk>
+ </toolchains>
+ </configuration>
+ <executions>
+ <execution>
+ <goals>
+ <goal>toolchain</goal>
+ </goals>
+ </execution>
+ </executions>
+ </plugin>
+ </plugins>
+ </build>
+ </profile>
+ <profile>
<id>quality-checks</id>
<activation>
<property>
Modified: maven/pom/trunk/maven/src/site-docs/apt/index.apt.vm
URL:
http://svn.apache.org/viewvc/maven/pom/trunk/maven/src/site-docs/apt/index.apt.vm?rev=1697159&r1=1697158&r2=1697159&view=diff
==============================================================================
--- maven/pom/trunk/maven/src/site-docs/apt/index.apt.vm (original)
+++ maven/pom/trunk/maven/src/site-docs/apt/index.apt.vm Sun Aug 23 09:56:47
2015
@@ -51,6 +51,11 @@ mvn -Preporting site
See {{{./plugins.html}Plugins report}} for a list of configured report
plugins.
+The <<<jdk-toolchain>>> Profile
+
+ This POM provides <<<jdk-toolchain>>> profile to activate JDK selection as
a toolchain with version
+ requirement configured as minimum java version for the project.
+
Site Publication
This POM prepares site publication to svnpubsub. Every inheriting POM
needs to define <<<maven.site.path>>> property