问题
I'm using the following configuration :
- Eclipse Indigo
- Maven 2
- ClearCase (like SVN and 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.
回答1:
Go to the root of the project. Wherever the pom is located then try to do a
mvn eclipse:clean
Then refresh your projects and see where that leaves you
回答2:
Right click on project then click on maven then do update project.It work for me.
回答3:
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
Error gone
回答4:
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.
TL;DR Uncheck "Maven Archiver generates files under the build directory" in
Window > Preferences > Maven > WTP
.
Read more in @cosjav's answer on another question.
回答5:
clean all (involved) projects and refresh your open projects in your workspace
回答6:
Right click on project -> Maven -> Update
DEBUG or RUN the server in order to fetch the recently created war file.
Make sure to check "Force update snapshots/releases" while doing MAVEN UPDATE
回答7:
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.
回答8:
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.
回答9:
Close the eclipse and start the eclipse again. This will refresh the projects and problem will be solved.
回答10:
I had the same problem but it got resolved just disturb the formatting of
POM.xml
and press
ctrl+a and ctrl+shift+f then save the document
回答11:
Right click on project then select maven and then click on Update project after select the project name and update it'll be work fine.
来源:https://stackoverflow.com/questions/10350130/file-not-found-manifest-mf-eclipse