Skip to content

Instantly share code, notes, and snippets.

@rschumm
Last active February 1, 2016 14:31
Show Gist options
  • Save rschumm/3191e6925b6940a87aa2 to your computer and use it in GitHub Desktop.
Save rschumm/3191e6925b6940a87aa2 to your computer and use it in GitHub Desktop.
Display maven Version on Homepage
  • benutze das maven-Filterin
  • die Filter "filtern" die Files und ersetzen darin maven-Variablen
  • man kann die Properties in ein Properties-file reinfiltern, oder dann direkt in ein HTML.
<build>
<resources>
<resource>
<directory>src/main/resources</directory>
<filtering>true</filtering>
</resource>
</resources>
</build>
<span id="devInfo">
Version: <span id="devVersion">#{build.version} vom #{build.time}</span> <br/>
</span>
build.version=${project.version}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment