java - Combine multiple maven projects into single in Eclipse -


i have 1 maven project pom.xml.
project refers 2 projects.
these 2 projects have own pom.xml in respective folders.
when build base pom.xml other 2 projects built.

now here did

a) build base project (this built 2 subprojects well).
b) used mvn eclipse:eclipse export base project.
c) imported base project eclipse using eclipse menu file-> import existing maven project.

after importing created 3 different projects in eclipse. methods 3 projects called each other gives many errors. want after importing should create single project , code in single project.

is there way this?

you make multi-module project. allow define top-level project , structure of it's dependencies. still require refactoring, should relatively modest.

maven website: guide working multiple modules

a third party guide


Comments