Thanks.
But according to this:
http://maven.apache.org/ref/3.0.4-SNAPSHOT/apidocs/org/apache/maven/execution/DefaultRuntimeInformation.html

the getApplicationVersion() method has been deprecated, with no indication as to what I should use instead.

Also, it seems that this introduces a dependency on Maven itself within the application. What jar would this be?

Thanks again.

On 01/11/2012 08:12 AM, Guillaume Polet wrote:
Just google org/apache/maven/execution/DefaultRuntimeInformation.java .

http://grepcode.com/file/repo1.maven.org/maven2/org.apache.maven/maven-core/2.0.5/org/apache/maven/execution/DefaultRuntimeInformation.java?av=h


Cheers,
Guillaume

Le 11/01/2012 15:03, Steve Cohen a écrit :
A solution to this question appears to have been offered here, in 2007.

http://maven.40175.n5.nabble.com/HowTo-access-project-version-programmatically-in-application-td82542.html


It references a page explaining how to do it. That page is now gone:

http://svn.apache.org/repos/asf/maven/components/trunk/maven-core/src/main/java/org/apache/maven/execution/DefaultRuntimeInformation.java


Does this page or another more advanced way to do this now exist?

Thanks.

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]





---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to