Jetty runs old war altought mvn clean is run

爱⌒轻易说出口 提交于 2019-12-25 09:31:13

问题


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



来源:https://stackoverflow.com/questions/3957906/jetty-runs-old-war-altought-mvn-clean-is-run

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!