I have two versions in my projects.
- The version in my POM.xml which is used when the project is packaged, etc.
- The version I have put in a constant in my code so I can use it during runtime when I log, etc.
These should of course be the same, but sometimes I forget to change one or the other.
Is there a good way to define this version only once and have it used by both maven and code during runtime?