Hi.
You should be able to do this using properties and resource filtering.
I believe the "getting started guide" here:
http://maven.apache.org/guides/getting-started/index.html
includes what you need: turn on resource filtering, place tokens in a
resource file in your resource directory, and have Maven copy the
pom.version into that resource file.
What I'd do is create a simple "com/foo/Version.properties" file in the
resource directory, and include the ${project.version} token (or
whatever it is you're looking for); then enable filtering as outlined in
the guide; and Maven will put the version number in there and copy the
file into the Jar. Then use ResourceBundle to get the property.
Make sense?
Good luck...
Steven Coco.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]