Skip to content

Instantly share code, notes, and snippets.

@ddossot
Created July 7, 2010 18:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ddossot/467020 to your computer and use it in GitHub Desktop.
Save ddossot/467020 to your computer and use it in GitHub Desktop.
<profile>
<id>buildnumber-plugin</id>
<activation>
<property>
<!--
This profile is activated if NO system property
'skipBuildnumber' is found. Disable this profile
by specifying -DskipBuildnumber=true on the commandline
-->
<name>!skipBuildnumber</name>
</property>
</activation>
<build>
<plugins>
<!-- add repository revision to manifests -->
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>buildnumber-maven-plugin</artifactId>
<version>1.0-beta-2</version>
<executions>
<execution>
<phase>validate</phase>
<goals>
<goal>create</goal>
</goals>
</execution>
</executions>
<configuration>
<!-- never touch svn -->
<doCheck>false</doCheck>
<doUpdate>false</doUpdate>
<timestampFormat>{0,date,yyyy-MMM-dd HH:mm:ss}</timestampFormat>
</configuration>
</plugin>
</plugins>
</build>
</profile>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment