eclipse MANIFEST.MF(系统找不到指定的路径)
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/40180123/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
MANIFEST.MF (The system cannot find the path specified)
提问by chucknor
I am trying to create the project as set out in the tutorial "http://crunchify.com/how-to-build-restful-service-with-java-using-jax-rs-and-jersey/". I have followed all the steps but I get thee POM error ....
我正在尝试按照教程“ http://crunchify.com/how-to-build-restful-service-with-java-using-jax-rs-and-jersey/”中的说明创建项目。我已按照所有步骤进行操作,但出现 POM 错误....
Description Resource Path Location Type C:\Users\xxxxxx\workspace\CrunchifyRESTJerseyExample\target\m2e-wtp\web-resources\META-INF\MANIFEST.MF (The system cannot find the path specified) pom.xml /CrunchifyRESTJerseyExample line 1 Maven Configuration Problem
描述资源路径位置类型C:\Users\xxxxxx\workspace\CrunchifyRESTJerseyExample\target\m2e-wtp\web-resources\META-INF\MANIFEST.MF(系统找不到指定的路径) pom.xml /CrunchifyRESTJerseyExample line 1 Maven配置问题
I've noticed that I have 2 Web Content folders: One under Deployed Resources, which does contain my MANIFEST.MF file and another at the same level as the Deployed Resources folder. Eclipse seems to be looking for it in the second WebContent folder where it is not located. Is there a simple fix for this?
我注意到我有 2 个 Web 内容文件夹:一个在 Deployed Resources 下,其中包含我的 MANIFEST.MF 文件,另一个与 Deployed Resources 文件夹位于同一级别。Eclipse 似乎在它所在的第二个 WebContent 文件夹中寻找它。有没有简单的解决方法?
回答by dchang
I had similar problem and updating the Maven project solved it.
我有类似的问题,更新 Maven 项目解决了它。
In Eclipse, right click on the project > Maven > Update Project
在 Eclipse 中,右键单击项目 > Maven > 更新项目
See this post: http://kodurishiva.blogspot.pt/2016/04/manifestmf-system-cannot-find-path.html
看到这个帖子:http: //kodurishiva.blogspot.pt/2016/04/manifestmf-system-cannot-find-path.html
This situation returns when I do a maven clean
.
当我执行maven clean
.
回答by Akshay Pethani
Thre are two ways to solve this error.
有两种方法可以解决此错误。
From Eclipse:
来自日食:
Right-click on the project -> Go to Maven -> Update project.
右键单击项目 -> 转到 Maven -> 更新项目。
The second way is from maven clean install using the command line maven.
第二种方法是使用命令行 maven 从 maven 全新安装。
Use the following command:
使用以下命令:
mvn clean
回答by Pekmezli Dürüm
Go to Libraries tab in the projects' Build Path. JRE system library must be projects's default JRE.
转到项目构建路径中的库选项卡。JRE 系统库必须是项目的默认 JRE。