Search code examples
javaeclipsemaven-2m2eclipse

Created a maven project in Eclipse, moved directory location, how to open it now?


I created a maven2 project in eclipse, and then I moved the folder to another location.

How can I open that project now in eclipse, I can't seem to find a 'open an exisiting maven' project or the like?

Opening the file pom.xml just opens the file, kinda stuck sorry.


Solution

  • If you are using the M2Eclipse plugin for Eclipse, you can right-click in the Package Explorer view and then Import... > Maven > Existing Maven projects:

    alt text

    If you are using the maven-eclipse-plugin, then simply import it as an Import... General > Existing Projects into workspace.