jetty_user
jetty_user

Reputation: 1

Jetty runs old war altought mvn clean is run

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.

Upvotes: 0

Views: 1417

Answers (1)

SMA
SMA

Reputation: 11

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

Upvotes: 1

Related Questions