java - Get maven deploy plugin artifact version at runtime in my war -
is there anyway @ runtime total artifact version / build number generated maven deploy plugin of war @ runtime?
it'd ok if maven process generated , packaged properties file value.
keep in mind project generates unique (timestamped) artifact versions every deploy.
try this:
<configuration> <archive> <manifest> <adddefaultimplementationentries/> <adddefaultspecificationentries/> </manifest> </archive> </configuration> that add together maven details pom build war manifest.mf file, can read @ runtime.
another way utilize use filtering of properties files, , drop pom values there - useful if have property file/config loading mechanism in place.
then, when it's deployed, uses same values pom, you're fine.
-chris
java maven war artifactory maven-deploy-plugin
No comments:
Post a Comment