为什么在mvn clean install之后Tomcat需要多个服务器清理?

时间:2015-10-07 16:44:52

标签: java eclipse spring maven tomcat

这经常在运行mvn clean install后在eclipse中发生。在下面的错误消失之前,我最终需要多次清理我的tomcat服务器。

抱歉缺少信息,我不知道从哪里开始。这不是唯一使用tomcat的Java Stack,spring项目,需要这个。

Publishing to Tomcat v7.0 Server at localhost...' has encountered a problem.   

Publishing failed with multiple errors | 

<< Details
Publishing failed with multiple errors

File not found: F:\workspace\...\...\target\m2e-wtp\web-resources
    \META-INF\maven\com....\...\pom.properties.

F:\workspace\...\...\target\m2e-wtp\web-resources\META-INF\maven
    \com...\...\pom.properties 
    (The system cannot find the path specified)

File not found: F:\workspace\...\...\target\m2e-wtp\web-resources\META-INF
    \maven\com....\...\pom.xml.

F:\workspace\...\...\target\m2e-wtp\web-resources
    \META-INF\maven\com....\...\pom.xml 
    (The system cannot find the path specified)

1 个答案:

答案 0 :(得分:0)

每当发生任何资源更改时,eclipse都会将更改部署到服务器。在您的情况下,运行maven命令时会发生部分更新。

为什么在eclipse中设置项目时运行maven命令?