Jetty runs old war altought mvn clean is run

2019-08-29 06:07发布

问题:

does someone had an similar issue with maven and jetty, that jetty is run with an old war althought mvn clean is run.

My pom uses failsafe to start jetty with mvn verify.

回答1:

see http://docs.codehaus.org/display/JETTY/Temporary+Directories for where jetty store temp files

=> I suggest you configure maven jetty plugin to use a unique temp directory for your application to avoid any problem. e.g.:

<project>
...
<plugins>
...
<plugin>
<groupId>org.mortbay.jetty</groupId>
<artifactId>maven-jetty-plugin</artifactId>
<configuration>
<tmpDir>target/jetty-tmp/myApp</tmpDir>
...

see http://docs.codehaus.org/display/JETTY/Maven+Jetty+Plugin



标签: maven-2 Jetty