I am trying to debug a Maven Webapp project using Eclipse Luna to run it in Tomcat 8. Unfortunately, the assembly timestamp will not be resolved during resource filtering when I try to deploy it to Tomcat. The WAR file created by Eclipse resolved it, but what it deploys to Tomcat (using the "Run on Server" option) does not work.
In my pom.xml, I have:
<properties>
<timestamp>${maven.build.timestamp}</timestamp>
</properties>
<build>
<finalName>rapid-installer</finalName>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-war-plugin</artifactId>
<version>2.4</version>
<configuration>
<failOnMissingWebXml>false</failOnMissingWebXml>
</configuration>
</plugin>
</plugins>
<resources>
<resource>
<directory>src/main/resources</directory>
<filtering>true</filtering>
</resource>
</resources>
</build>
And in the properties file I have
build.date=${timestamp}
source
share