【问题标题】:Jetty runs old war altought mvn clean is run码头运行旧战争 altought mvn clean 运行
【发布时间】:2011-04-26 20:28:48
【问题描述】:

有人在 maven 和 jetty 上遇到过类似的问题吗,尽管 mvn clean 已经运行,但该码头是在旧战争中运行的。

我的 pom 使用 failsafe 通过 mvn verify 启动码头。

【问题讨论】:

  • 需要更多细节(例如允许复制的 pom)。

标签: maven-2 jetty


【解决方案1】:

查看 http://docs.codehaus.org/display/JETTY/Temporary+Directories 了解码头存储临时文件的位置

=> 我建议你配置 maven jetty 插件为你的应用程序使用一个唯一的临时目录以避免任何问题。例如:

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

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

【讨论】:

    猜你喜欢
    • 2021-04-23
    • 2013-11-16
    • 1970-01-01
    • 2013-06-29
    • 1970-01-01
    • 2016-11-11
    • 2016-07-12
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多