我使用m2e 1.2.0和m2e-wtp 0.16.0,偶尔我的Eclipse构建失败并出现错误:
<path>/target/m2e-wtp/web-resources/META-INF/MANIFEST.MF (No such file or directory)
Run Code Online (Sandbox Code Playgroud)
这个问题可以通过做一个暂时解决Maven->Update project...,但错误会在一段时间后回来.不知道触发器到底是什么......
有关如何永久解决问题的任何建议?
[编辑]我发现当我直接使用Maven命令行在外部构建项目时会触发该问题.这将删除m2e-wtp生成的默认MANIFEST.MF,并且在Eclipse中进行重建之前,它显然不会重新生成.
我有一个包含3个模块的父pom文件...
当我从"父pom"的命令行运行"mvn install"到eclipse m2插件(run - maven install)时有区别.
我可以看到它,当我从命令行运行它不是,然后尝试在我的tomcat服务器上运行"干净"它告诉我这个错误:
发布失败发布失败,出现多个错误
File not found: D:\Projects\starto-v1\Tomcat Servlet\target\m2e-wtp\web-resources\META-INF\MANIFEST.MF.
File not found: D:\Projects\starto-v1\Tomcat Servlet\target\m2e-wtp\web-resources\META-INF\maven\starto.starto\MavenWeb-starto\pom.properties.
File not found: D:\Projects\starto-v1\Tomcat Servlet\target\m2e-wtp\web-resources\META-INF\maven\starto.starto\MavenWeb-starto\pom.xml.
Resource is out of sync with the file system: '/MavenWeb-starto/target/classes/MeetReq/MeetReqHandler$1.class'.
Resource is out of sync with the file system: '/MavenWeb-starto/target/classes/MeetReq/MeetReqHandler.class'.
Resource is out of sync with the file system: '/MavenWeb-starto/target/classes/MsgReq/MsgReqHandler$1.class'.
Resource is out of sync with the file system: '/MavenWeb-starto/target/classes/MsgReq/MsgReqHandler.class'.
Resource is out of sync with the file system: '/MavenWeb-starto/target/classes/Servlets/HelloWorldServlet.class'.
Resource is out of sync with …Run Code Online (Sandbox Code Playgroud)