Retrieving the value of the & lt; version / & gt; from pom.xml in project code

Asked bysara gregory

I correctly understand that there are no reasonable ways to get the value of the & lt; version / & gt; from pom.xml in project code?

Answers

tania chris
You need to make a resource, for example, your-project-name.properties, which is filtered and contains the string "project.version = $ {project.version}". Then in runtime you can subtract this value from the properties file, as well as other values ​​of the config.
Replies:
Yes, but this is not a maven pom.xml. - al diaz
I apologize, the answer is really correct - at first I didn’t understand just :( - yianni
Web-based task tracker? :: NET. WebBrowser Control and StatusCode :: Tell me, please, a good tutorial or resource on circuitry :: Is there an analog kickstarter or similar projects in runet? :: Keyboard with built-in trackpoint. I am looking for
Leave Repply forRetrieving the value of the & lt; version / & gt; from pom.xml in project code
Useful Links