You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@jackrabbit.apache.org by tr...@apache.org on 2017/10/24 05:24:17 UTC

svn commit: r1813127 - in /jackrabbit/commons/filevault-package-maven-plugin/trunk: pom.xml src/site/markdown/howto_release.md

Author: tripod
Date: Tue Oct 24 05:24:17 2017
New Revision: 1813127

URL: http://svn.apache.org/viewvc?rev=1813127&view=rev
Log:
update release stuff

Modified:
    jackrabbit/commons/filevault-package-maven-plugin/trunk/pom.xml
    jackrabbit/commons/filevault-package-maven-plugin/trunk/src/site/markdown/howto_release.md

Modified: jackrabbit/commons/filevault-package-maven-plugin/trunk/pom.xml
URL: http://svn.apache.org/viewvc/jackrabbit/commons/filevault-package-maven-plugin/trunk/pom.xml?rev=1813127&r1=1813126&r2=1813127&view=diff
==============================================================================
--- jackrabbit/commons/filevault-package-maven-plugin/trunk/pom.xml (original)
+++ jackrabbit/commons/filevault-package-maven-plugin/trunk/pom.xml Tue Oct 24 05:24:17 2017
@@ -438,6 +438,23 @@
             <build>
                 <plugins>
                     <plugin>
+                        <groupId>org.apache.maven.plugins</groupId>
+                        <artifactId>maven-gpg-plugin</artifactId>
+                        <executions>
+                            <execution>
+                                <id>sign-release-artifacts</id>
+                                <phase>verify</phase>
+                                <goals>
+                                    <goal>sign</goal>
+                                </goals>
+                                <configuration>
+                                    <keyname>${gpg.keyname}</keyname>
+                                    <passphraseServerId>${gpg.keyname}</passphraseServerId>
+                                </configuration>
+                            </execution>
+                        </executions>
+                    </plugin>
+                    <plugin>
                         <artifactId>maven-antrun-plugin</artifactId>
                         <executions>
                             <execution>
@@ -451,7 +468,7 @@
                                         <copy todir="${basedir}/target/${project.version}" flatten="true">
                                             <fileset dir="${basedir}">
                                                 <include name="RELEASE-NOTES.md"/>
-                                                <include name="target/*-src.zip*"/>
+                                                <include name="target/*-source-release.zip*"/>
                                             </fileset>
                                         </copy>
                                         <checksum algorithm="MD5" fileext=".md5">
@@ -465,7 +482,7 @@
                                             </fileset>
                                         </checksum>
                                         <checksum
-                                                file="${basedir}/target/${project.version}/jackrabbit-filevault-package-maven-plugin-${project.version}-src.zip"
+                                                file="${basedir}/target/${project.version}/filevault-package-maven-plugin-${project.version}-source-release.zip"
                                                 algorithm="SHA1" property="checksum"/>
                                         <echo file="${basedir}/target/vote.txt">
                                             From: ${username}@apache.org

Modified: jackrabbit/commons/filevault-package-maven-plugin/trunk/src/site/markdown/howto_release.md
URL: http://svn.apache.org/viewvc/jackrabbit/commons/filevault-package-maven-plugin/trunk/src/site/markdown/howto_release.md?rev=1813127&r1=1813126&r2=1813127&view=diff
==============================================================================
--- jackrabbit/commons/filevault-package-maven-plugin/trunk/src/site/markdown/howto_release.md (original)
+++ jackrabbit/commons/filevault-package-maven-plugin/trunk/src/site/markdown/howto_release.md Tue Oct 24 05:24:17 2017
@@ -49,6 +49,7 @@ Release management tasks
     does not work.
     
     0. (optional, prepare your environment. e.g.: `$ export version=1.0.0`)
+    1. Execute `mvn clean deploy -Papache-release -Dmaven.deploy.skip=true`. This tests if the release would work.
     1. Execute `mvn release:prepare`. This will update the POM files and tag the release in svn (btw: specifying the 
         release version on the commandline doesn't update the module poms anymore lately).
     2. Execute `mvn release:perform -Papache-release`. This will build the tagged release and deploy the artifacts to
@@ -165,20 +166,18 @@ Appendix B: Maven settings
         </server>
         ...
         <profiles>
-          <profile>
-            <id>apache-release</id>
-            <properties>
-              <gpg.keyname><!-- enough of the key id to id it --></gpg.keyname>
-    
-              <!-- pick one of the following -->
-    
-              <!-- either you feel comfortable with the passphrase on disk -->
-              <gpg.passphrase><!-- your passphrase for your gpg key goes here--></gpg.passphrase>
-    
-              <!-- or you use an agent-->
-              <gpg.useagent>true</gpg.useagent>
-    
-            </properties>
+            <profile>
+                <id>apache-release</id>
+                <servers>
+                    <server>
+                        <id> <!-- YOUR KEYNAME --> </id>
+                        <passphrase> <!-- CLEAR OR ENCRYPTED TEXT --> </passphrase>
+                    </server>
+                </servers>
+                <properties>
+                    <gpg.keyname> <!-- YOUR KEYNAME --> </gpg.keyname>
+                </properties>
+            </profile>
           </profile>
           ...
         </profiles>