[ 
http://jira.codehaus.org/browse/MNG-4112?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=171658#action_171658
 ] 

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 localized?

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: http://jira.codehaus.org/browse/MNG-4112
>             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: 
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to