hc-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject svn commit: r1329885 - /httpcomponents/project/trunk/pom.xml
Date Tue, 24 Apr 2012 17:41:14 GMT
Author: sebb
Date: Tue Apr 24 17:41:13 2012
New Revision: 1329885

URL: http://svn.apache.org/viewvc?rev=1329885&view=rev
Log:
Move buildNumber into a profile, so it can be disabled if required

Modified:
    httpcomponents/project/trunk/pom.xml

Modified: httpcomponents/project/trunk/pom.xml
URL: http://svn.apache.org/viewvc/httpcomponents/project/trunk/pom.xml?rev=1329885&r1=1329884&r2=1329885&view=diff
==============================================================================
--- httpcomponents/project/trunk/pom.xml (original)
+++ httpcomponents/project/trunk/pom.xml Tue Apr 24 17:41:13 2012
@@ -312,27 +312,6 @@
         <groupId>org.apache.maven.plugins</groupId>
         <artifactId>maven-site-plugin</artifactId>
       </plugin>
-      <plugin>
-        <groupId>org.codehaus.mojo</groupId>
-        <artifactId>buildnumber-maven-plugin</artifactId>
-        <version>1.0</version>
-        <executions>
-          <execution>
-            <phase>validate</phase>
-            <goals>
-              <goal>create</goal>
-            </goals>
-          </execution>
-        </executions>
-        <configuration>
-          <!-- Use committed revision so it does not change every time svn update is run
-->
-          <useLastCommittedRevision>true</useLastCommittedRevision>
-          <!-- default revision number if unavailable -->
-          <revisionOnScmFailure>??????</revisionOnScmFailure>
-          <doCheck>false</doCheck>
-          <doUpdate>false</doUpdate>
-        </configuration>
-      </plugin>
     </plugins>
 
     <pluginManagement>
@@ -613,6 +592,40 @@
       </build>
     </profile>
 
+    <!-- 
+        Automatically run the buildnumber plugin unless the buildNumber.skip property is
defined as true
+    -->
+    <profile>
+     <id>svn-buildnumber</id>
+     <activation>
+       <property><name>!buildNumber.skip</name><value>!true</value></property>
+     </activation>
+     <build>
+       <plugins>
+         <plugin>
+           <groupId>org.codehaus.mojo</groupId>
+           <artifactId>buildnumber-maven-plugin</artifactId>
+           <executions>
+             <execution>
+               <phase>generate-resources</phase>
+               <goals>
+                 <goal>create</goal>
+               </goals>
+             </execution>
+           </executions>
+           <configuration>
+             <!-- Use committed revision so it does not change every time svn update is
run -->
+             <useLastCommittedRevision>true</useLastCommittedRevision>
+             <!-- default revision number if unavailable -->
+             <revisionOnScmFailure>??????</revisionOnScmFailure>
+             <doCheck>false</doCheck>
+             <doUpdate>false</doUpdate>
+           </configuration>
+         </plugin>
+       </plugins>
+     </build>
+   </profile>
+
    <!-- optional profile to use javasvn instead of the SVN CLI for the buildNumber plugin
-->
    <profile>
      <id>javasvn</id>



Mime
View raw message