If you are running through your IDE (eg from class folders instead
of .jar/.war) then you will not be able to get the version since maven has
not packed the artifacts.

This might help:
http://stackoverflow.com/questions/2712970/how-to-get-maven-artifact-version-at-runtime

Reply via email to