title: Get build timestamp on JBoss application
body: <p>We have a web application on JBoss 7.2.
  Now I want to display the build timestamp in my UI for debugging purposes, so I added</p>
  <ul>
  <li>a properties file looking like that:</li>
  </ul>
  <pre><code>version=${pom.version} 
  build.date=${timestamp} 
  </code></pre>
  <ul>
  <li>in the POM properties:</li>
  </ul>
  <pre><code>&lt;properties&gt;
      &lt;timestamp&gt;${maven.build.timestamp}&lt;/timestamp&gt;
      &lt;maven.build.timestamp.format&gt;yyyy-MM-dd HH:mm&lt;/maven.build.timestamp.format&gt;
  &lt;/properties&gt;
  </code></pre>
  <p>On build, this successfully generates a .properties file with the correct values, e.g.</p>
  <pre><code>version=0.1-SNAPSHOT
  build.date=2021-08-25 12:00
  </code></pre>
  <p>However, when deployed, that properties file isn't available anymore. I get a FileNotFoundException when my frontend bean tries to access the file via</p>
  <pre><code>String propertyPath = &quot;src/main/resources/version.properties&quot;;
  try (InputStream properties = new FileInputStream(propertyPath)) {
  
      Properties prop = new Properties();
      prop.load(properties);
  }
  ...
  </code></pre>
  <p>Now of course I can add the properties to my standalone.xml, but I wasn't able to replace the values during build time. Any tips on how to make it work?</p>