52

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.

Adil
  • 4,503
  • 10
  • 46
  • 63

12 Answers12

77

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

user3302709
  • 998
  • 8
  • 9
29

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

sitaram chhimpa
  • 471
  • 7
  • 12
12

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

rajeev pani..
  • 5,387
  • 5
  • 27
  • 35
  • Eclipse/maven were wrong. It's astounding this errors continue being there for years and years. – Jorge.V Jul 08 '19 at 06:22
8

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.

Community
  • 1
  • 1
Merchako
  • 789
  • 1
  • 8
  • 19
4

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

2

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

Erdinc Ay
  • 3,224
  • 4
  • 27
  • 42
2

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.

jmathewt
  • 917
  • 7
  • 9
  • I followed the above , it worked for me .i have scenario like I am creating jar from one project and refering the same in another web project as dependency . Tomcat failed to start with concurrent Exception and saxparser not created error. – anavaras lamurep Aug 13 '19 at 21:28
1

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.

SO_User
  • 11
  • 2
0

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

Aruna
  • 1
0

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

Krithika
  • 119
  • 1
  • 3
0

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.

Ashish Mehta
  • 158
  • 1
  • 6
  • How your answer is different from the existing posted answer for e.g.: https://stackoverflow.com/a/41672688/2987755, if it is same, please do not post it. – dkb Feb 27 '19 at 06:26
0

This issue appeared to me while I updated eclipse [updated to Eclipse 2020-12 (4.18)] as my project was open in eclipse. Then I closed my CLI (as I was running mvn test command), closed the project in eclipse and restarted my eclipse. Thereafter the issue was gone. Hopefully this will resolve your issue too.

kdflow
  • 11
  • 3