Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

maven integration in eclipse new project checked out but can't navigate

Tags:

eclipse

maven

m2e

I am struggling with maven in Eclipse even though I have m2e.

I checked out a maven project from CVS and cannot navigate anywhere. If I try References > Project, I get a pop up saying:

"Problems opening an editor Reason: services does not exist".

services is the name of the main project, which has sub projects within it. It all builds successfully so I am not sure why Eclipse does not work.

I suspect something related to classpath but have no idea how to edit it since it is not available from the project's properties. I actually tried to manually create a .classpath file but it did not help.

I also converted the project to a maven project but that did not help either.

Any ideas? I am using Eclipse JUNO.

like image 826
user899757 Avatar asked May 07 '12 15:05

user899757


People also ask

Where is Maven path in Eclipse?

Open Eclipse and navigate to Window->Preferences . Then go to Java->Build Path->Classpath Variables within the preferences window. In the Classpath Variables pane, add a variable named "M2_REPO" with a path pointing to the directory of your local Maven repository.


1 Answers

I figured out my issue. I had to check out the project from CVS. Then (that's the important part), perform a maven import of an existing project within eclipse. That created maven "ready" projects where I could use all of the IDE's functionality.

like image 123
user899757 Avatar answered Nov 16 '22 02:11

user899757