I'm trying to extract some properties from Maven and print them when my app starts. I'm using Spring Boot so the resource filtering is automatically done for me.
In my application.yml I have the following
applicationName: "@project.artifactId@"
buildVersion: "@project.version@"
buildTimestamp: "@maven.build.timestamp@"
When I run this on IntelliJ, I get the desired result, my properties are populated and printed as expected (single quotes have the same result) Removing the quotes will give me an Exception from SnakeYaml regarding the use of the '@' character
When I run this on Cent-OS though, via a jar (java -jar blah..blah) the properties are not being resolved but are instead being treated as Strings and instead of the correct version numbers etc, what gets printed are the strings inside the quotes above.
Any ideas on how to fix this? Is it related to the way I run the jar?
I used this as an example