+1
Thanks,
Marius
On Thu, Apr 7, 2016 at 10:40 AM, Thomas Mortagne <thomas.mortagne(a)xwiki.com>
wrote:
Hi devs,
The is a very easy way to get information about a jar trough Package
class. Unfortunately we did not configured Maven to set most of the
standard fields that Package expect (Specification-* and
Implementation-* fields).
Once enabled it mean you can get the version of your module (or the
module of any class as easily) by doing
this.getClass().getPackage().getImplementationVersion().
See
https://maven.apache.org/shared/maven-archiver/examples/manifest.html
for more.
WDYT about enabling that in Maven Jar plugin ?
Here is my +1.
--
Thomas Mortagne
_______________________________________________
devs mailing list
devs(a)xwiki.org
http://lists.xwiki.org/mailman/listinfo/devs