I have a rest endpoint used to return information about application (so far only app version) But so far this info is hardcoded, and it\'s pretty easy to forget to change it
You could use the resource filtering of maven or something like the maven-substitute-plugin.
maven-substitute-plugin