You are viewing a plain text version of this content. The canonical link for it is here.
Posted to sanselan-commits@incubator.apache.org by cz...@apache.org on 2007/12/10 16:11:20 UTC

svn commit: r602959 - /incubator/sanselan/trunk/pom.xml

Author: cziegeler
Date: Mon Dec 10 08:11:19 2007
New Revision: 602959

URL: http://svn.apache.org/viewvc?rev=602959&view=rev
Log:
Add some maven configuration for releasing.

Modified:
    incubator/sanselan/trunk/pom.xml

Modified: incubator/sanselan/trunk/pom.xml
URL: http://svn.apache.org/viewvc/incubator/sanselan/trunk/pom.xml?rev=602959&r1=602958&r2=602959&view=diff
==============================================================================
--- incubator/sanselan/trunk/pom.xml (original)
+++ incubator/sanselan/trunk/pom.xml Mon Dec 10 08:11:19 2007
@@ -88,9 +88,83 @@
           </instructions>
         </configuration>
       </plugin>
+      <plugin>
+        <groupId>org.apache.maven.plugins</groupId>
+        <artifactId>maven-release-plugin</artifactId>
+        <configuration>
+          <tagBase>https://svn.apache.org/repos/asf/incubator/sanselan/tags</tagBase>
+          <useReleaseProfile>false</useReleaseProfile>
+          <goals>deploy</goals>
+        </configuration>
+      </plugin>
     </plugins>      
-  </build>
-
+      <!-- Let's be sure that we use the latest releases of the plugins -->
+      <pluginManagement>
+        <plugins>
+          <plugin>
+            <groupId>org.apache.maven.plugins</groupId>
+            <artifactId>maven-release-plugin</artifactId>
+            <version>2.0-beta-7</version>
+          </plugin>
+          <plugin>
+            <groupId>org.apache.maven.plugins</groupId>
+            <artifactId>maven-gpg-plugin</artifactId>
+            <version>1.0-alpha-4</version>
+          </plugin>
+          <plugin>
+            <groupId>org.apache.maven.plugins</groupId>
+            <artifactId>maven-assembly-plugin</artifactId>
+            <version>2.2-beta-1</version>
+          </plugin>
+        </plugins>
+      </pluginManagement>
+    </build>
+    
+    <profiles>
+      <profile>
+        <!-- The release profile contains specifal configuration of releases. -->
+        <id>release</id>
+        <build>
+          <plugins>
+            <!-- Sign the release -->
+            <plugin>
+              <groupId>org.apache.maven.plugins</groupId>
+              <artifactId>maven-gpg-plugin</artifactId>
+              <executions>
+                <execution>
+                  <id>sign-artifacts</id>
+                  <phase>verify</phase>
+                  <goals>
+                    <goal>sign</goal>
+                  </goals>
+                </execution>
+              </executions>
+            </plugin>
+            <!-- The release artifacts -->
+            <plugin>
+              <groupId>org.apache.maven.plugins</groupId>
+              <artifactId>maven-assembly-plugin</artifactId>
+              <configuration>
+                <descriptorRefs>
+                  <descriptorRef>bin</descriptorRef>
+                  <descriptorRef>project</descriptorRef>
+                </descriptorRefs>
+              </configuration>
+              <executions>
+                <execution>
+                  <id>make-assembly</id>
+                  <phase>package</phase>
+                  <goals>
+                    <goal>attached</goal>
+                  </goals>
+                </execution>
+              </executions>
+            </plugin>
+          </plugins>
+        </build>
+      </profile>
+    </profiles>
+  
   <dependencies>
     <dependency>
       <groupId>junit</groupId>