This is a simple filter approach for writing a project version to a file.
<build>
<resources>
<resource>
<directory>src/main/webapp</directory>
<includes>
<include>**/*.version</include>
</includes>
<filtering>true</filtering>
</resource>
</resources>
</build>
This is the project structure (excluding unmanaged parts)
ββββsrc
β ββββmain
β ββββjava
β β ββββ [...]
β ββββwebapp
β ββββMETA-INF
β ββββWEB-INF
β ββββcfg
β ββββportal.version
ββββ pom.xml
Content portal.version
${project.version}
This should be replaced with an artifact version pom.xml, but unfortunately nothing happens. What's wrong? Thank you in advance
source
share