You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hc.apache.org by se...@apache.org on 2011/09/10 02:36:02 UTC
svn commit: r1167419 - /httpcomponents/project/pom.xml
Author: sebb
Date: Sat Sep 10 00:36:02 2011
New Revision: 1167419
URL: http://svn.apache.org/viewvc?rev=1167419&view=rev
Log:
Allow site plugin to work with Maven 3
Modified:
httpcomponents/project/pom.xml
Modified: httpcomponents/project/pom.xml
URL: http://svn.apache.org/viewvc/httpcomponents/project/pom.xml?rev=1167419&r1=1167418&r2=1167419&view=diff
==============================================================================
--- httpcomponents/project/pom.xml (original)
+++ httpcomponents/project/pom.xml Sat Sep 10 00:36:02 2011
@@ -499,7 +499,38 @@
<altDeploymentRepository>id::default::file:target/deploy</altDeploymentRepository>
</properties>
</profile>
+
+ <!--
+ Configure site plugin to support both Maven2 and Maven3, see:
+ http://maven.apache.org/plugins/maven-site-plugin/maven-3.html#Using_the_same_version_of_maven-site-plugin_for_both_Maven_2_and_Maven_3
+ -->
+ <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>
+ <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>
<!-- Define the Clover version here - it's needed in pluginManagement here and the reporting sections in modules -->
<!-- N.B. It appears that the latest version for which the ASF has a licence is 2.6.3 -->