MANIFEST.MF (The system cannot find the path specified)
Asked Answered
S

6

25

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 ....

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

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?

Sidon answered 21/10, 2016 at 15:11 Comment(8)
The "web" directory is specified in a wb-resource node into the .settings/org.eclipse.wst.common.component file. About the first error, when do you get it? When running Maven?Hoodoo
Hi. When I open Eclipse there are no errors showing against the project in the Problems, however the POM does show red lines under the maven artifact and the asm and json dependencies. But, yes its when I right click on Project and select Run As > Maven Build and enter "clean install" that the error appears against the POM.Sidon
I've had a look at my Eclipse settings folder "...\eclipse\jee-neon\eclipse\configuration\.settings" but it does not contain that file you mention, only "org.eclipse.equinox.p2.garbagecollector.prefs" and "org.eclipse.ui.ide.prefs".Sidon
No, no. I meant the .settings folder within the project folder. On another hand, post the error messsage you get in the red lines and the one you get when run "clean install".Hoodoo
There is something seriously wrong with my project configuration. There are 3 POM files under different folder paths. One under "/.../WebContent/META-INF/maven/CrunchifyRESTJerseyExample/CrunchifyRESTJerseyExample/pom", another under "/.../target/m2e-wtp/web-resources/META-INF/maven/CrunchifyRESTJerseyExample/CrunchifyRESTJerseyExample/pom.xml" and a third under "/..../target/m2e-wtp/web-resources/META-INF/maven/CrunchifyRESTJerseyExample/CrunchifyRESTJerseyExample/pom.xml".Sidon
This project was sent to me by a colleague as a zip file. which I imported into Eclipse, if that gives any clues as to what the issue is. I don't know if this is to do with the Eclipse version I am using. I was wondering whether to uninstall this version and try with a different one. The error msg is posted above. It doesn't show errors when I hover over the POM files. Also I can't see a "Settings" folder under my project.Sidon
I recommend you to start a new Eclipse project from the scratch: Let it be Maven, let it be Dynamic Web Project, or whatever is needed... And then, copy the source files from the "wrong" project into it. Copy also from the "wrong" pom the dependencies and plugins, step by step, until it fails.Hoodoo
Hi Santi. I did actually try that first and had other errors. I will give it another go.Sidon
D
68

I had similar problem and updating the Maven project solved it.

In Eclipse, right click on the project > Maven > Update Project

See this post: http://kodurishiva.blogspot.pt/2016/04/manifestmf-system-cannot-find-path.html

This situation returns when I do a maven clean.

Donne answered 28/6, 2017 at 10:58 Comment(0)
B
18

Thre are two ways to solve this error.

From Eclipse:

Right-click on the project -> Go to Maven -> Update project.

enter image description here

The second way is from maven clean install using the command line maven.

Use the following command:

mvn clean
Boiardo answered 22/5, 2018 at 4:54 Comment(0)
T
1

Go to Libraries tab in the projects' Build Path. JRE system library must be projects's default JRE.

Thurber answered 1/1, 2019 at 9:17 Comment(0)
G
1

Thre are two ways to solve this error.

From Eclipse:

Right-click on the project -> Go to Maven -> Update project.
Griceldagrid answered 25/6, 2020 at 19:37 Comment(1)
What is the other way ? you said two waysResinous
M
1

Updating Maven project just resolved my problem

Magdaleno answered 9/5, 2021 at 10:22 Comment(0)
A
0

For Eclipse:

  • Check if your project does not have the folder - src/main/java.

  • Then right-click on the project -> Click Build Path -> Configure build path -> click on the sources tab in the opened window.

  • You will not see the error for the src/main/java folder missing.

  • Select it and remove it. The error will be gone.

Audible answered 10/10, 2021 at 6:59 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.