- 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.
Last active
February 1, 2016 14:31
-
-
Save rschumm/3191e6925b6940a87aa2 to your computer and use it in GitHub Desktop.
Display maven Version on Homepage
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<build> | |
<resources> | |
<resource> | |
<directory>src/main/resources</directory> | |
<filtering>true</filtering> | |
</resource> | |
</resources> | |
</build> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<span id="devInfo"> | |
Version: <span id="devVersion">#{build.version} vom #{build.time}</span> <br/> | |
</span> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
build.version=${project.version} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment