maven-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Paul Gier (JIRA)" <>
Subject [jira] Commented: (MNG-4112) Set property containing the currently executing maven version.
Date Wed, 01 Apr 2009 04:26:12 GMT


Paul Gier commented on MNG-4112:

I looked into it a bit, and I should be able to get the version the same way that it's retrieved
when you run "mvn -version" from the command line.  It gets the information from the maven
core jar, so it wouldn't be dependent on the RuntimeInformation.
I wasn't sure if it should be a system property, or should the scope of the property be more

The RuntimeInformation could be used in a goal in a plugin (maybe the buildnumber plugin?)
to allow the version to be accessed in maven pre 3.0.

> Set property containing the currently executing maven version.
> --------------------------------------------------------------
>                 Key: MNG-4112
>                 URL:
>             Project: Maven 2
>          Issue Type: Improvement
>            Reporter: Paul Gier
> It would be helpful to have an easy way to access the current version of maven.  This
might be accomplished by setting a property like "maven.version" during startup that would
be available to the pom and/or to plugins.  This could be used to record what version of maven
was used during the build to facilitate build reproducibility.  

This message is automatically generated by JIRA.
If you think it was sent incorrectly contact one of the administrators:
For more information on JIRA, see:


View raw message