Maven.build.timestamp not allowed in maven eclipse build deployed to tomcat

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}
+4
source share
2 answers

, pom.xml, , , Tomcat.

<profiles>
  <profile>
  <id>m2e</id>
    <activation>
      <property>
        <name>m2e.version</name>
      </property>
    </activation>
    <properties>
      <maven.build.timestamp>2014-01-01</maven.build.timestamp>
    </properties>
  </profile>
</profiles>

, Tomcat "Run on Server" Eclipse, , timestamp . , : https://bugs.eclipse.org/bugs/show_bug.cgi?id=388874

+5

, .

Tomcat WTP eclispe maven. , "" , maven.

, , WTP eclipse, maven.

+1

All Articles