I created a Maven project with the following structure:
+ root-project
pom.xml (pom)
+ sub-projectA (jar)
+ sub-projectB (jar)
I took the following steps:
- mvn archetype: create -DgroupId = my.group.id -DartifactId = root-project
- mvn archetype: create -DgroupId = my.group.id -DartifactId = sub-projectA
- mvn archetype: create -DgroupId = my.group.id -DartifactId = sub-projectB
So, I obviously have the following elements on top-level pom.xml:
<modules> <module>sub-projectA</module> <module>sub-projectB</module> </modules>
Last step:
mvn eclipse:clean eclipse:eclipse
Now, if I import the root project into Eclipse, it seems to treat my projects as resources, not java projects.
However, if I import each sub-projectA and sub-projectB child project, it looks like java projects.
This is a big problem for me because I have a deeper hierarchy. Any help would be appreciated!
eclipse maven-2 multi-module
earth
source share