Sign the pom.
authormarkt <markt@13f79535-47bb-0310-9956-ffa450edef68>
Tue, 13 Jul 2010 16:02:09 +0000 (16:02 +0000)
committermarkt <markt@13f79535-47bb-0310-9956-ffa450edef68>
Tue, 13 Jul 2010 16:02:09 +0000 (16:02 +0000)
Make sure source jar signature doesn't overwrite the non-source jar signature.

git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@963776 13f79535-47bb-0310-9956-ffa450edef68

res/maven/mvn-pub.xml

index 07aca50..8cf52e5 100644 (file)
@@ -63,6 +63,7 @@
   <target name="maven-deploy" depends="init-maven">
     <!--cleanup-->
     <delete file="${pom}.tmp"/>
+    <delete file="${pom}.asc"/>
     <delete file="${file}.asc"/>
     <delete file="${src}.asc"/>
 
@@ -73,7 +74,7 @@
       </filterset>
     </copy>
     
-    <!--sign the jar-->
+    <!--sign the jar, the source and the pom -->
     <exec executable="${maven.gpg.exec}" failonerror="true" inputstring="${maven.gpg.passphrase}">
       <arg value="--passphrase-fd"/>
       <arg value="0"/>
       <arg value="-b"/>
       <arg value="${src}"/>
     </exec>
+    <exec executable="${maven.gpg.exec}" failonerror="true" inputstring="${maven.gpg.passphrase}">
+      <arg value="--passphrase-fd"/>
+      <arg value="0"/>
+      <arg value="-a"/>
+      <arg value="-b"/>
+      <arg value="-o"/>
+      <arg value="${pom}.asc"/>
+      <arg value="${pom}.tmp"/>
+    </exec>
     
     <!--deploy it-->
     <artifact:deploy file="${file}">
         </remoteRepository>
         <attach file="${file}.asc" type="jar.asc"/>
         <attach file="${src}" classifier="sources" type="jar"/>
-        <attach file="${src}.asc" type="jar.asc"/>
+        <attach file="${src}.asc" classifier="sources" type="jar.asc"/>
+        <attach file="${pom}.asc" type="pom.asc"/>
     </artifact:deploy>
 
     <delete file="${pom}.tmp"/>
+    <delete file="${pom}.asc"/>
     <delete file="${file}.asc"/>
     <delete file="${src}.asc"/>
   </target>
   <target name="maven-deploy-nosrc" depends="init-maven">
     <!--cleanup-->
     <delete file="${pom}.tmp"/>
+    <delete file="${pom}.asc"/>
     <delete file="${file}.asc"/>
 
     <!--replace the version in the pom-->
       </filterset>
     </copy>
            
-    <!--sign the jar-->
+    <!--sign the jar and pom -->
     <exec executable="${maven.gpg.exec}" failonerror="true" inputstring="${maven.gpg.passphrase}">
       <arg value="--passphrase-fd"/>
       <arg value="0"/>
       <arg value="-b"/>
       <arg value="${file}"/>
     </exec>
+    <exec executable="${maven.gpg.exec}" failonerror="true" inputstring="${maven.gpg.passphrase}">
+      <arg value="--passphrase-fd"/>
+      <arg value="0"/>
+      <arg value="-a"/>
+      <arg value="-b"/>
+      <arg value="-o"/>
+      <arg value="${pom}.asc"/>
+      <arg value="${pom}.tmp"/>
+    </exec>
            
     <!--deploy it-->
     <artifact:deploy file="${file}">
         <authentication username="${maven.scp.username}" privateKey="${maven.scp.privateKey}" passphrase="${maven.scp.passphrase}"/>
       </remoteRepository>
          <attach file="${file}.asc" type="jar.asc"/>
+      <attach file="${pom}.asc" type="pom.asc"/>
     </artifact:deploy>
 
     <delete file="${pom}.tmp"/>
+    <delete file="${pom}.asc"/>
     <delete file="${file}.asc"/>
   </target>