maven-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jdca...@apache.org
Subject svn commit: r768948 - /maven/components/branches/maven-2.2.x/maven-core/pom.xml
Date Mon, 27 Apr 2009 12:25:48 GMT
Author: jdcasey
Date: Mon Apr 27 12:25:47 2009
New Revision: 768948

URL: http://svn.apache.org/viewvc?rev=768948&view=rev
Log:
adding profile to supply buildnumber for git repo builds.

Modified:
    maven/components/branches/maven-2.2.x/maven-core/pom.xml

Modified: maven/components/branches/maven-2.2.x/maven-core/pom.xml
URL: http://svn.apache.org/viewvc/maven/components/branches/maven-2.2.x/maven-core/pom.xml?rev=768948&r1=768947&r2=768948&view=diff
==============================================================================
--- maven/components/branches/maven-2.2.x/maven-core/pom.xml (original)
+++ maven/components/branches/maven-2.2.x/maven-core/pom.xml Mon Apr 27 12:25:47 2009
@@ -266,5 +266,39 @@
         </plugins>
       </build>
     </profile>
+    <profile>
+      <id>buildnumber-git</id>
+      <activation>
+        <file>
+          <missing>.svn</missing>
+        </file>
+      </activation>
+      <build>
+        <plugins>
+          <plugin>
+            <groupId>org.codehaus.mojo</groupId>
+            <artifactId>buildnumber-maven-plugin</artifactId>
+            <version>1.0-beta-1</version>
+            <executions>
+              <execution>
+                <phase>generate-resources</phase>
+                <goals>
+                  <goal>create</goal>
+                </goals>
+              </execution>
+            </executions>
+            <configuration>
+              <doCheck>false</doCheck>
+              <doUpdate>false</doUpdate>
+              <format>{0,date,yyyy-MM-dd_HH-mm}_{1}</format>
+              <items>
+                <item>timestamp</item>
+                <item>${user.name}</item>
+              </items>
+            </configuration>
+          </plugin>
+        </plugins>
+      </build>
+    </profile>
   </profiles>
 </project>



Mime
View raw message