Getting the value of <version /> from pom.xml in your project code

0 like 0 dislike
4 views
Do I understand correctly that there are no reasonable ways to get the element value from pom.xml in your project code?
by | 4 views

1 Answer

0 like 0 dislike
Need to make a resource, such as your-project-name.properties that filtering is copied and the string "project.version=${project.version}". Then in runtime you can subtract this value from properties-file like other config values.
by

Related questions

0 like 0 dislike
1 answer
0 like 0 dislike
2 answers
0 like 0 dislike
1 answer
0 like 0 dislike
1 answer
110,608 questions
257,186 answers
0 comments
1,139 users