commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject svn commit: r1495239 - /commons/proper/commons-digest-plugin/trunk/pom.xml
Date Thu, 20 Jun 2013 23:45:36 GMT
Author: sebb
Date: Thu Jun 20 23:45:35 2013
New Revision: 1495239

URL: http://svn.apache.org/r1495239
Log:
Add configuration to use itself to create digests for target/packages

Modified:
    commons/proper/commons-digest-plugin/trunk/pom.xml

Modified: commons/proper/commons-digest-plugin/trunk/pom.xml
URL: http://svn.apache.org/viewvc/commons/proper/commons-digest-plugin/trunk/pom.xml?rev=1495239&r1=1495238&r2=1495239&view=diff
==============================================================================
--- commons/proper/commons-digest-plugin/trunk/pom.xml (original)
+++ commons/proper/commons-digest-plugin/trunk/pom.xml Thu Jun 20 23:45:35 2013
@@ -10,8 +10,8 @@
  
   <groupId>org.apache.commons</groupId>
   <artifactId>commons-digest-plugin</artifactId>
-  <packaging>maven-plugin</packaging>
   <version>1.0-SNAPSHOT</version>
+  <packaging>maven-plugin</packaging>
   <name>Apache commons-digest-plugin Maven Mojo</name>
   <inceptionYear>2013</inceptionYear>
   <url>http://commons.apache.org/proper/commons-digest-plugin/</url>
@@ -45,6 +45,8 @@ Apache Commons Digest Maven plugin provi
     <!-- Temporary fix until CP31 is released -->
     <maven.compile.source>${maven.compiler.source}</maven.compile.source>
     <maven.compile.target>${maven.compiler.target}</maven.compile.target>
+    <!-- This should move to parent pom -->
+    <commons.packages.directory>target/packages</commons.packages.directory>
   </properties>
 
   <dependencies>
@@ -105,14 +107,28 @@ Apache Commons Digest Maven plugin provi
           <artifactId>plexus-component-metadata</artifactId>
           <version>1.5.5</version>
         </plugin>
+        <!-- This needs to be part of the parent pom -->
+        <plugin>
+          <groupId>org.apache.commons</groupId>
+          <artifactId>commons-digest-plugin</artifactId>
+          <!-- but with a specific version -->
+          <version>${project.version}</version>
+        </plugin>
       </plugins>
     </pluginManagement>
 
     <plugins>
+      <!-- self reference to allow use with shortcut name -->
+      <plugin>
+        <groupId>org.apache.commons</groupId>
+        <artifactId>commons-digest-plugin</artifactId>
+        <version>${project.version}</version>
+      </plugin>
       <plugin>
         <artifactId>maven-assembly-plugin</artifactId>
         <configuration>
           <descriptors>
+            <!--  we only have a source package -->
             <descriptor>src/assembly/src.xml</descriptor>
           </descriptors>
           <tarLongFileMode>gnu</tarLongFileMode>
@@ -154,4 +170,45 @@ Apache Commons Digest Maven plugin provi
       </plugin>
     </plugins>
   </build>
+
+  <profiles>
+    <!-- This will eventually be merged into the parent pom -->
+    <profile>
+      <id>release</id>
+      <build>
+        <plugins>
+          <!-- We want to create the assemblies in their own directory -->
+          <plugin>
+            <artifactId>maven-assembly-plugin</artifactId>
+            <configuration>
+              <!-- Stop assemblies from being deployed to Nexus -->
+              <attach>false</attach>
+              <!-- put them here instead -->
+              <outputDirectory>${commons.packages.directory}</outputDirectory>
+            </configuration>
+          </plugin>
+          <plugin>
+            <groupId>org.apache.commons</groupId>
+            <artifactId>commons-digest-plugin</artifactId>
+            <executions>
+              <execution>
+                <goals>
+                  <goal>digest</goal>
+                </goals>
+                <!-- must run after assembly and before deploy -->
+                <phase>verify</phase>
+              </execution>
+            </executions>
+            <configuration>
+              <includes>
+                <include>${commons.packages.directory}/*.zip</include>
+                <include>${commons.packages.directory}/*.tar.gz</include>
+              </includes>
+            </configuration>
+          </plugin>
+        </plugins>
+      </build>
+    </profile>
+    
+  </profiles>
 </project>



Mime
View raw message