]> source.dussan.org Git - archiva.git/commitdiff
add profile activated for maven-3 which attache site descriptor and upgrade site...
authorOlivier Lamy <olamy@apache.org>
Tue, 31 May 2011 20:04:16 +0000 (20:04 +0000)
committerOlivier Lamy <olamy@apache.org>
Tue, 31 May 2011 20:04:16 +0000 (20:04 +0000)
git-svn-id: https://svn.apache.org/repos/asf/archiva/parent@1129893 13f79535-47bb-0310-9956-ffa450edef68

pom.xml

diff --git a/pom.xml b/pom.xml
index 1375f6c035fe3e2f73c6f44004848caccfa3d5bb..a3858275baf533cc6f4cbaf52ca29f8c6bfd01d4 100644 (file)
--- a/pom.xml
+++ b/pom.xml
         </plugins>
       </build>
     </profile>
+    <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>
+      <build>
+       <!-- we need to attach the descriptor for this pom -->
+        <plugins>
+          <plugin>
+            <groupId>org.apache.maven.plugins</groupId>
+            <artifactId>maven-site-plugin</artifactId>
+            <inherited>false</inherited>
+            <executions>
+              <execution>
+                <id>attach-descriptor</id>
+                <goals>
+                  <goal>attach-descriptor</goal>
+                </goals>
+              </execution>
+            </executions>
+          </plugin>
+        </plugins>
+        <pluginManagement>
+          <plugins>
+            <plugin>
+              <groupId>org.apache.maven.plugins</groupId>
+              <artifactId>maven-site-plugin</artifactId>
+              <version>3.0-beta-3</version>
+            </plugin>
+          </plugins>
+        </pluginManagement>
+      </build>
+    </profile>
   </profiles>
 
 </project>