I have the following project structure:
pom.xml (packaging: pom)
\-- SubProject
- pom.xml (packaging: jar)
\-- SubProject
- pom.xml (packaging: ear)
I want to open all three projects in Eclipse.
When I select 'import existing project' it only displays the parent pom.xml (packaging: pom) but not the SubProjects.
(The projects have src, test, etc. and open just fine in Netbeans.)
When I move the parent pom to a subfolder and reference it by <relativePath>, eclipse can open it, but maven warns. So I'd rather not use this.
How can I open the proper Maven project structure in Eclipse?
The Eclipse "Import - Maven - Existing Maven Projects" on the parent folder should create two project folder in the eclipse workspace (on the same level).
It works with poms similar to:
Parent
Module
Nesting the folder in the Eclipse tree is not required (and cleaner).