maven-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Benjamin Bentmann <>
Subject Re: How to retrieve the current maven version from a plugin?
Date Wed, 21 Oct 2009 21:23:13 GMT
Hervé BOUTEMY schrieb:

> what about MavenProject.class.getPackage().getImplementationVersion()?

That could be a good additional check because of its simplicity and 
different data source. I wouldn't suggest to make it the only check 
because of [0]:

"Null is returned if no package object was created by the class loader 
of this class."



To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message