Details
-
Type:
New Feature
-
Status:
Closed
-
Priority:
Minor
-
Resolution: Won't Fix
-
Affects Version/s: 2.0-beta-1
-
Fix Version/s: None
-
Component/s: None
-
Labels:None
-
Environment:n/a
-
Number of attachments :
Description
After discussion in #maven, it seemed that this plugin could be of use by the general population.
It manages the buildnumber for a specific project, and even can produce an (optional) buildclass.
example setup.
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-buildinfo-plugin</artifactId>
<version>1.0-alpha-1-SNAPSHOT</version>
<configuration>
<infofile>.buildinfo</infofile>
<classname>org.codehaus.modello.plugins.dom4j.BuildInfo</classname>
</configuration>
<executions>
<execution>
<goals>
<goal>buildnumber</goal>
<goal>buildclass</goal>
</goals>
</execution>
</executions>
</plugin>
It would be nice if it also includes the scm revision number (if the scm supports a revision number, like SVN, not CVS):
http://commons.ucalgary.ca/projects/maven-buildnumber-plugin/ does this (see user list topic "getting subversion revision number")