Answer the question
In order to leave comments, you need to log in
Getting the value of the
Do I understand correctly that there are no reasonable ways to get the value of the <version /> element from pom.xml in the project code?
Answer the question
In order to leave comments, you need to log in
You need to make a resource, for example your-project-name.properties, which is filter-copied and contains the string "project.version=${project.version}". Then, at runtime, you can subtract this value from the properties file, just like other config values.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question