Author: dennisl
Date: Thu Jul 17 19:20:25 2014
New Revision: 1611443
URL: http://svn.apache.org/r1611443
Log:
Create a profile called "java-6" for plugins that require at least Java 6 to
build. It is triggered automatically based on the JDK that is being used.
Move maven-pmd-plugin to the "java-6" profile.
Modified:
maven/plugins/trunk/pom.xml
Modified: maven/plugins/trunk/pom.xml
URL:
http://svn.apache.org/viewvc/maven/plugins/trunk/pom.xml?rev=1611443&r1=1611442&r2=1611443&view=diff
==============================================================================
--- maven/plugins/trunk/pom.xml (original)
+++ maven/plugins/trunk/pom.xml Thu Jul 17 19:20:25 2014
@@ -74,7 +74,7 @@ under the License.
<module>maven-linkcheck-plugin</module>
<module>maven-patch-plugin</module>
<module>maven-pdf-plugin</module>
- <!-- Disabled because it requires Java 6. We need to discuss how to handle
such plugins in Jenkins jobs. -->
+ <!-- Moved to java-6 profile because it requires Java 6 -->
<!-- <module>maven-pmd-plugin</module> -->
<!--Moved to maven-3 profile as a workaround for MNG-3814
<module>maven-project-info-reports-plugin</module>-->
@@ -93,6 +93,17 @@ under the License.
<profiles>
<profile>
+ <!-- For plugins that require at least Java 6 to build -->
+ <id>java-6</id>
+ <modules>
+ <module>maven-pmd-plugin</module>
+ </modules>
+ <activation>
+ <jdk>[1.6,)</jdk>
+ </activation>
+ </profile>
+
+ <profile>
<id>maven-3</id>
<activation>
<file>