BTW you can also write the version to the manifest and then use 
class.getPackage().getImplementationVersion() like I did here:

https://github.com/ecki/et-otp/blob/663228f2b6ad7d3f20aad04ca5f675b49662a78c/src/main/java/net/eckenfels/etotp/GUI.java#L64

This only requires addDefaultImplementationEntries in the maven-jar-plugin, 
which is a good idea anyway.

Having said that if you prefer a properties file use the one from 
META-INF/maven/pom.properties.

The most direct way is probably setting up resource filtering for a Java file 
where you add ${project.version} as a string constant. (But that require quite 
some plugin config)

Gruß
Bernd

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org

Reply via email to