Issue Details (XML | Word | Printable)

Key: MNG-719
Type: New Feature New Feature
Status: Closed Closed
Resolution: Won't Fix
Priority: Minor Minor
Assignee: Joakim Erdfelt
Reporter: Joakim Erdfelt
Votes: 0
Watchers: 2
Operations

If you were logged in you would be able to see more operations.
Maven 2

New Plugin - buildinfo (buildnumber and buildclass)

Created: 09/Aug/05 08:46 PM   Updated: 01/Jun/07 09:54 AM
Component/s: None
Affects Version/s: 2.0-beta-1
Fix Version/s: None

Time Tracking:
Not Specified

File Attachments: 1. GZip Archive maven-buildinfo-plugin.tar.gz (6 kB)

Environment: n/a


 Description  « Hide
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>



 All   Comments   Work Log   Change History      Sort Order: Ascending order - Click to sort in descending order
Geoffrey De Smet added a comment - 23/Feb/06 07:06 AM
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")

Joakim Erdfelt added a comment - 01/Jun/07 09:54 AM
This is not commit'd on the apache side.

It can be found here : http://svn.codehaus.org/mojo/trunk/mojo/mojo-sandbox/maven-buildinfo-plugin/