geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jb...@apache.org
Subject svn commit: r650583 - /geronimo/server/branches/2.1.1/pom.xml
Date Tue, 22 Apr 2008 17:23:37 GMT
Author: jbohn
Date: Tue Apr 22 10:23:32 2008
New Revision: 650583

URL: http://svn.apache.org/viewvc?rev=650583&view=rev
Log:
updates to support staging a release

Modified:
    geronimo/server/branches/2.1.1/pom.xml

Modified: geronimo/server/branches/2.1.1/pom.xml
URL: http://svn.apache.org/viewvc/geronimo/server/branches/2.1.1/pom.xml?rev=650583&r1=650582&r2=650583&view=diff
==============================================================================
--- geronimo/server/branches/2.1.1/pom.xml (original)
+++ geronimo/server/branches/2.1.1/pom.xml Tue Apr 22 10:23:32 2008
@@ -51,6 +51,7 @@
     </scm>
 
     <properties>
+        <siteId>${artifactId}</siteId>
         <!--
         NOTE: Project version, to be used instead of ${pom.version} since that
               value magically changes when using SNAPSHOT versions.
@@ -2331,14 +2332,14 @@
 
     </repositories>
 
+    <url>http://geronimo.apache.org/maven/${siteId}/${version}</url>
     <distributionManagement>
         <!--
         NOTE: The repository and snapshotRepository are picked up from Genesis.
         -->
-
         <site>
             <id>geronimo-website</id>
-            <url>scp://people.apache.org/www/geronimo.apache.org/maven/server</url>
+            <url>${staging.siteURL}/${siteId}/${version}</url>
         </site>
     </distributionManagement>
 
@@ -2547,6 +2548,75 @@
                 </plugins>
             </build>
         </profile>
+
+        <profile>
+            <id>release</id>
+
+            <build>
+                <plugins>
+                    
+                    <!-- We want a source jar -->
+                    <plugin>
+                        <groupId>org.apache.maven.plugins</groupId>
+                        <artifactId>maven-source-plugin</artifactId>
+                        <executions>
+                            <execution>
+                                <goals>
+                                    <goal>jar</goal>
+                                </goals>
+                            </execution>
+                        </executions>
+                    </plugin>
+
+                    <!-- We want to sign the artifact, the POM, and all attached artifacts
-->
+                    <plugin>
+                        <groupId>org.apache.maven.plugins</groupId>
+                        <artifactId>maven-gpg-plugin</artifactId>
+                        <inherited>true</inherited>
+                        <configuration>
+                            <passphrase>${gpg.passphrase}</passphrase>
+                        </configuration>
+                        <executions>
+                            <execution>
+                                <goals>
+                                    <goal>sign</goal>
+                                </goals>
+                            </execution>
+                        </executions>
+                    </plugin>
+
+                    <!-- We want to deploy the artifact to a staging location for perusal
-->
+                    <plugin>
+                        <groupId>org.apache.maven.plugins</groupId>
+                        <artifactId>maven-deploy-plugin</artifactId>
+                        <inherited>true</inherited>
+                        <configuration>
+                            <altDeploymentRepository>${deploy.altRepository}</altDeploymentRepository>
+                            <updateReleaseInfo>true</updateReleaseInfo>
+                        </configuration>
+                    </plugin>
+
+                    <!-- We want the JavaDoc JAR published with the release -->
+                    <plugin>
+                        <groupId>org.apache.maven.plugins</groupId>
+                        <artifactId>maven-javadoc-plugin</artifactId>
+                        <inherited>true</inherited>
+                        <configuration>
+                            <source>1.5</source>
+                        </configuration>
+                        <executions>
+                            <execution>
+                                <id>attach-javadocs</id>
+                                <goals>
+                                    <goal>jar</goal>
+                                </goals>
+                            </execution>
+                        </executions>
+                    </plugin>
+                </plugins>
+            </build>
+        </profile>
+
     </profiles>
 
 </project>



Mime
View raw message