Maven 2 & 3

New Plugin - buildinfo (buildnumber and buildclass)

Details

  • Type: New Feature New Feature
  • Status: Closed Closed
  • Priority: Minor 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 :
    1

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>

Activity

Hide
Geoffrey De Smet added a comment -

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")

Show
Geoffrey De Smet added a comment - 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")
Hide
Joakim Erdfelt added a comment -

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/

Show
Joakim Erdfelt added a comment - 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/

People

Vote (0)
Watch (2)

Dates

  • Created:
    Updated:
    Resolved: