What's the easiest way to get at the version number in the POM from
Java?
I've been using getResourceAsStream('META-INF/maven/groupId/artifactId/
pom.properties'); But this doesn't work while I'm developing in
Eclipse (only when using the built jar file).
Ideally, I'd like to somehow generate a Java class which contains the
version number. I thought I should be able to do this using resource
filtering, but I couldn't see a way to configure the resources plugin
to achieve this…
Any help would be most gratefully appreciated.
Thanks,
-Dom