You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by se...@apache.org on 2013/06/19 03:27:32 UTC

svn commit: r1494411 - /commons/sandbox/commons-staging-plugin/trunk/pom.xml

Author: sebb
Date: Wed Jun 19 01:27:32 2013
New Revision: 1494411

URL: http://svn.apache.org/r1494411
Log:
Sample test profiles
Details of use TBA

Modified:
    commons/sandbox/commons-staging-plugin/trunk/pom.xml

Modified: commons/sandbox/commons-staging-plugin/trunk/pom.xml
URL: http://svn.apache.org/viewvc/commons/sandbox/commons-staging-plugin/trunk/pom.xml?rev=1494411&r1=1494410&r2=1494411&view=diff
==============================================================================
--- commons/sandbox/commons-staging-plugin/trunk/pom.xml (original)
+++ commons/sandbox/commons-staging-plugin/trunk/pom.xml Wed Jun 19 01:27:32 2013
@@ -175,4 +175,122 @@
       </plugin>
     </plugins>
   </build>
+  
+  <profiles>
+    <!-- 
+        Sample profiles to show how the new plugins work and are invoked.
+        For live use, these would be merged into the release profile in the parent pom. 
+    -->
+    <!-- This profile needs to be merged into top-level of pom -->
+    <profile>
+      <id>define-plugins</id>
+      <activation>
+        <activeByDefault>true</activeByDefault>
+      </activation>
+      <build>
+    <pluginManagement>
+      <!-- Define the standard configuration -->
+      <plugins>
+        <plugin>
+          <groupId>org.apache.commons</groupId>
+          <artifactId>commons-gpg-plugin</artifactId>
+          <version>1.0-SNAPSHOT</version>
+        </plugin>
+        <plugin>
+          <groupId>org.apache.commons</groupId>
+          <artifactId>commons-digest-plugin</artifactId>
+          <version>1.0-SNAPSHOT</version>
+        </plugin>
+        <plugin>
+          <groupId>org.apache.commons</groupId>
+          <artifactId>commons-staging-plugin</artifactId>
+          <version>1.0-SNAPSHOT</version>
+          <!-- This needs to be configured for the local project; sample below is for Apache Commons -->
+          <configuration>
+            <packageDirectory>target/packages</packageDirectory>
+            <project>commons</project>
+            <component>${commons.componentid}</component>
+            <stagingDirectory>${commons.release.name}-${commons.rc.version}</stagingDirectory>
+            <releaseId>${commons.release.name}-${commons.rc.version}</releaseId>
+            <releaseNotes>RELEASE-NOTES.txt</releaseNotes>
+            <!-- safe place for upload and release -->
+            <rootUrl>https://dist.apache.org/repos/dist/dev/commons/TEST_PLS_IGNORE/</rootUrl>
+          </configuration>
+        </plugin>
+      </plugins>
+    </pluginManagement>
+    <plugins>
+        <plugin>
+          <groupId>org.apache.commons</groupId>
+          <artifactId>commons-gpg-plugin</artifactId>
+        </plugin>
+        <plugin>
+          <groupId>org.apache.commons</groupId>
+          <artifactId>commons-digest-plugin</artifactId>
+        </plugin>
+        <plugin>
+          <groupId>org.apache.commons</groupId>
+          <artifactId>commons-staging-plugin</artifactId>
+          </plugin>
+    </plugins>
+      </build>
+    </profile>
+
+    <profile>
+      <id>release-test</id>
+      <build>
+        <plugins>
+        <plugin>
+          <artifactId>maven-assembly-plugin</artifactId>
+          <configuration>
+            <outputDirectory>${project.build.directory}/packages/</outputDirectory>
+            <attach>false</attach>
+          </configuration>
+        </plugin>
+          <plugin>
+           <groupId>org.apache.commons</groupId>
+            <artifactId>commons-gpg-plugin</artifactId>
+            <!-- Don't put this config in pluginManagement otherwise CLI use is harder -->
+          <configuration>
+              <includes>
+                <include>target/packages/*.zip</include>
+                <include>target/packages/*.tar.gz</include>
+              </includes>
+          </configuration>
+            <inherited>true</inherited>
+            <executions>
+              <execution>
+                <goals>
+                  <goal>signfiles</goal>
+                </goals>
+                <!-- must run after assembly and before deploy -->
+                <phase>verify</phase>
+              </execution>
+            </executions>
+          </plugin>
+          <plugin>
+           <groupId>org.apache.commons</groupId>
+            <artifactId>commons-digest-plugin</artifactId>
+            <!-- Don't put this config in pluginManagement otherwise CLI use is harder -->
+          <configuration>
+              <includes>
+                <include>target/packages/*.zip</include>
+                <include>target/packages/*.tar.gz</include>
+              </includes>
+          </configuration>
+            <inherited>true</inherited>
+            <executions>
+              <execution>
+                <goals>
+                  <goal>digest</goal>
+                </goals>
+                <!-- must run after assembly and before deploy -->
+                <phase>verify</phase>
+              </execution>
+            </executions>
+          </plugin>
+        </plugins>
+      </build>
+    </profile>
+  </profiles>
 </project>