There seems to be some interest in this facility on maven-user. I'm
not sure, however, if this is heading towards an even more generic
usage, where you could grab the revision using maven-scm, without any
plugins. I'm not sure if the checks this plugin does (to ensure the
latest revision number) are desirable in that case. Any thoughts?
In any case, I've fixed up the snapshot repo and the plugin repo so
that you don't need to do any downloading/building/checking out other
than modify your pom to use this plugin. It even builds itself using
itself to version itself - well, actually it uses the remote
snapshot, but pretty close. Should it be sandboxed or is this going
to head into another area?
I've also noted that snapshots already have a buildNumber element in
the maven-metadata...-snapshots.xml that gets installed into the
local repository, but not into the deployment repository. I'm not
sure at this point where that is coming from.
J
On 13-Feb-06, at 5:02 PM, Julian Wood wrote:
Good work. This plugin does sequential build numbering. The one I
have just posted grabs revision numbers from svn. Maybe they can be
combined? I had been thinking a good fallback for scm's like cvs,
which don't have a notion of project revision, could be a
sequential build number.
I've put a version for perusal at:
http://commons.ucalgary.ca/projects/maven-buildnumber-plugin/
Note that it needs the svn versions of the maven-release-plugin and
the scm components to compile.
J
On 12-Feb-06, at 2:20 PM, Joakim Erdfelt wrote:
Sorry for the late reply. (Just got back full time into maven
after a 4 week hiatus).
There was a BuildInfo plugin (with buildnumber support) in jira
http://jira.codehaus.org/browse/MNG-719
(It pre-dates the mojo.codehaus.org website)
I've used it successfully on many projects.
- Joakim
Miguel Griffa wrote:
Hi all
I was wondering if there would be any interest in hosting a
build number plugin at mojo.
For political reasons, I need this functionallity in a project,
in this case read
political = stupid + closed to discussion.
Any ideas?
--
Miguel Griffa
Skype: miguel.griffa
Y!: m_griffa
MSN: [EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>
Cell: 54-911-62519355
--
Julian Wood <[EMAIL PROTECTED]>
Programmer/Analyst
University of Calgary
http://commons.ucalgary.ca
--
Julian Wood <[EMAIL PROTECTED]>
Programmer/Analyst
University of Calgary
http://commons.ucalgary.ca