Author: olamy
Date: Thu Dec 23 22:19:52 2010
New Revision: 1052397
URL: http://svn.apache.org/viewvc?rev=1052397&view=rev
Log:
add a profile for maven 3 and site plugin.
Modified:
maven/shared/trunk/maven-shared-components/pom.xml
Modified: maven/shared/trunk/maven-shared-components/pom.xml
URL:
http://svn.apache.org/viewvc/maven/shared/trunk/maven-shared-components/pom.xml?rev=1052397&r1=1052396&r2=1052397&view=diff
==============================================================================
--- maven/shared/trunk/maven-shared-components/pom.xml (original)
+++ maven/shared/trunk/maven-shared-components/pom.xml Thu Dec 23 22:19:52 2010
@@ -196,5 +196,47 @@ under the License.
</plugins>
</build>
</profile>
+ <!-- FIXME add this in the maven parent -->
+ <profile>
+ <id>maven-3</id>
+ <activation>
+ <file>
+ <!-- This employs that the basedir expression is only recognized by
Maven 3.x (see MNG-2363) -->
+ <exists>${basedir}</exists>
+ </file>
+ </activation>
+ <properties>
+ <sitePluginVersion>3.0-beta-3</sitePluginVersion>
+ </properties>
+ <build>
+ <pluginManagement>
+ <plugins>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-site-plugin</artifactId>
+ <version>${sitePluginVersion}</version>
+ </plugin>
+ </plugins>
+ </pluginManagement>
+ <plugins>
+ <!-- if releasing current pom with maven 3 site descriptor must be
attached -->
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-site-plugin</artifactId>
+ <version>${sitePluginVersion}</version>
+ <inherited>false</inherited>
+ <executions>
+ <execution>
+ <id>attach-descriptor</id>
+ <goals>
+ <goal>attach-descriptor</goal>
+ </goals>
+ </execution>
+ </executions>
+ </plugin>
+ </plugins>
+ </build>
+
+ </profile>
</profiles>
</project>