Author: ggregory
Date: Wed Jan 19 21:29:07 2011
New Revision: 1060999
URL: http://svn.apache.org/viewvc?rev=1060999&view=rev
Log:
Use maven-site-plugin 2.x with Maven 2.x and maven-site-plugin 3.x with Maven
3.x. See
http://maven.apache.org/plugins/maven-site-plugin-3.0-beta-3/maven-3.html
Modified:
commons/proper/commons-parent/trunk/pom.xml
Modified: commons/proper/commons-parent/trunk/pom.xml
URL:
http://svn.apache.org/viewvc/commons/proper/commons-parent/trunk/pom.xml?rev=1060999&r1=1060998&r2=1060999&view=diff
==============================================================================
--- commons/proper/commons-parent/trunk/pom.xml (original)
+++ commons/proper/commons-parent/trunk/pom.xml Wed Jan 19 21:29:07 2011
@@ -759,6 +759,45 @@
<module>../vfs</module>
</modules>
</profile>
+
+ <!--
+ Use maven-site-plugin 2.x with Maven 2.x and maven-site-plugin 3.x
with Maven 3.x
+ See
http://maven.apache.org/plugins/maven-site-plugin-3.0-beta-3/maven-3.html
+ -->
+ <profile>
+ <id>maven-3</id>
+ <activation>
+ <file>
+ <!-- The basedir expression is only recognized by Maven 3.x (see
MNG-2363) -->
+ <exists>${basedir}</exists>
+ </file>
+ </activation>
+ <build>
+ <pluginManagement>
+ <plugins>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-site-plugin</artifactId>
+ <version>3.0-beta-3</version>
+ </plugin>
+ </plugins>
+ </pluginManagement>
+ <plugins>
+ <plugin>
+ <artifactId>maven-site-plugin</artifactId>
+ <executions>
+ <execution>
+ <id>attach-descriptor</id>
+ <goals>
+ <goal>attach-descriptor</goal>
+ </goals>
+ </execution>
+ </executions>
+ </plugin>
+ </plugins>
+ </build>
+ </profile>
+
</profiles>
<properties>