Reputation: 93
Please, I recently created a "Maven Project" under Eclipse Luna (Ctrl+N > Maven Project), but maven was not found on my project's build path and the Maven folder was not also found in my project. As a result I couldn't use javax.ws.rs.Path. I have tried all the solutions given in this link:How to configure Eclipse build path to use Maven dependencies?
but to no avail. Does anyone has similar issue?
Environment
Eclipse Luna
JRE 1.7
Mac OS 10.9.5
Upvotes: 1
Views: 2449
Reputation: 27812
Firstly, let's be sure Maven is correctly installed in your machine.
Basically, check from any command line if everything is correct, simply running: mvn -version
You can firstly try to build your project from command line, getting to the folder containing the project and opening a command line to it.
Once you are from the command line in your maven project, then you can run:
mvn clean install
Then let's also make sure everything is correctly set-up in Eclipse.
If everything is fine, then make sure to also run right click on the project > Maven > Update projects.. to be sure Eclipse and Maven are in synch concerning dependencies and settings.
If you are still encountering issues, you could then:
mvn eclipse:eclipse
, then refresh the project on EclipseUpvotes: 1