title: Spring Boot: use of Maven properties configured in yaml
body: <p>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. </p>
  
  <p>In my application.yml I have the following</p>
  
  <pre><code>  applicationName: "@project.artifactId@"
    buildVersion: "@project.version@"
    buildTimestamp: "@maven.build.timestamp@"
  </code></pre>
  
  <p>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</p>
  
  <p>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.</p>
  
  <p>Any ideas on how to fix this?
  Is it related to the way I run the jar?</p>
  
  <p>I used <a href="https://stackoverflow.com/questions/38983934/cannot-get-maven-project-version-property-in-a-spring-application-with-value">this</a> as an example</p>