文件未找到 manifest.mf eclipse

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/10350130/
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

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-10 21:01:11  来源:igfitidea点击:

file not found manifest.mf eclipse

eclipsemavenmanifest.mf

提问by Adil

I'm using the following configuration :

我正在使用以下配置:

  • Eclipse Indigo
  • Maven 2
  • ClearCase (like SVN and CVS)
  • 日蚀靛蓝
  • 行家 2
  • ClearCase(如 SVN 和 CVS)

and every time I want to run an application within eclipse a popup appears telling me that a Problem has occured : File not found : ...\target\classes\META-INF\MANIFEST.MF.

每次我想在 eclipse 中运行应用程序时,都会出现一个弹出窗口,告诉我发生问题:找不到文件:...\target\classes\META-INF\MANIFEST.MF

回答by user3302709

Go to the root of the project. Wherever the pom is located then try to do a

转到项目的根目录。无论 pom 位于何处,然后尝试执行

 mvn eclipse:clean 

Then refresh your projects and see where that leaves you

然后刷新你的项目,看看你会留下什么

回答by sitaram chhimpa

Right click on project then click on maven then do update project.It work for me.

右键单击项目,然后单击 maven 然后更新项目。它对我有用。

回答by rajeev pani..

I had the similar issue. What I did is:

我有类似的问题。我所做的是:

  1. Right click on project > Maven > Disable Maven Nature
  2. Right click on project > configure> Convert to maven project
  1. 右键单击项目 > Maven > 禁用 Maven Nature
  2. 右键单击项目>配置>转换为maven项目

Error gone

错误消失

回答by Merchako

If you're also using Maven and sometimes compiling outside of Eclipse, it could be removing Eclipse's manifest, and Eclipse won't recognize the manifest that external Maven creates.

如果您还使用 Maven 并且有时在 Eclipse 之外进行编译,则可能会删除 Eclipse 的清单,而 Eclipse 将无法识别外部 Maven 创建的清单。

TL;DR Uncheck "Maven Archiver generates files under the build directory" in Window > Preferences > Maven > WTP.

TL; DR取消“ Maven的归档build目录下生成文件中” Window > Preferences > Maven > WTP

Read more in @cosjav's answer on another question.

在@cosjav对另一个问题的回答中阅读更多内容。

回答by Erdinc Ay

clean all (involved) projectsand refresh your open projects in your workspace

清理所有(涉及的)项目刷新工作区中打开的项目

回答by Abhijith Mengaram

Right click on project-> Maven-> Update

右键单击项目-> Maven->更新

DEBUG or RUN the server in order to fetch the recently created war file.

调试或运行服务器以获取最近创建的War文件。

Make sure to check "Force update snapshots/releases" while doing MAVEN UPDATE

确保在执行 MAVEN UPDATE 时检查“强制更新快照/发布”

回答by jmathewt

I know this question has already been answered. After several tries, what worked for me was expanded my project in eclipse, right clicked on target directory and clicked refresh and that has been working ever since. Hope this works for someone if all the above fails.

我知道这个问题已经有人回答了。经过多次尝试,对我有用的是在 eclipse 中扩展我的项目,右键单击目标目录并单击刷新,从那时起一直在工作。如果以上所有方法都失败,希望这对某人有用。

回答by SO_User

All. For me, there was an error in pom.xml. I formatted the code (Ctrl+Shift+F) and the error is gone. After that I was able to run the application.

全部。对我来说,pom.xml 中有错误。我格式化了代码 (Ctrl+Shift+F),错误消失了。之后,我能够运行该应用程序。

回答by Aruna

Close the eclipse and start the eclipse again. This will refresh the projects and problem will be solved.

关闭eclipse并再次启动eclipse。这将刷新项目,问题将得到解决。

回答by Krithika

I had the same problem but it got resolved just disturb the formatting of

我遇到了同样的问题,但它得到了解决,只是扰乱了格式

POM.xml

POM文件

and press

并按下

ctrl+aand ctrl+shift+fthen save the document

ctrl+actrl+shift+f然后保存文档