Is it possible for a maven reactor project to include another reactor sub-project as module? -
let's there reactor project myproject modules:
<modules> <module>parent</module> <module>core</module> <module>ui</module> <module>config</module> </modules> there reactor sub-project integration-tests inside myproject.
<modules> <module>admin</module> <module>base</module> <module>rest</module> </modules> so, hierarchy as:
myproject |_ pom.xml |_ parent |_ core |_ ui |_ config |_ integration-tests |_ admin |_ base |_ rest now, want build integration-tests modules along myproject modules. 1 way append modules of integration-tests myproject modules list.
but possible write:
<modules> <module>parent</module> <module>core</module> <module>ui</module> <module>config</module> <module>integration-tests</module> </modules>
why call reactor project (though, of course, technically spoken processed reactor)? official term, however, is:
aggregation (or multi-module)
3.6.2. multi-module ...
yes, possible. it's no problem maven @ all.
but, if use eclipse ide can't handle nested projects well. if you, instance, select admin project create new class therein creation dialog offers myproject/src/main/java source folder, have adapt every time accordingly. build paths aren't display flat either, if selected in view's package presentation.
however, can solve this:
- create
myproject, every maven module below. - delete
myprojecteclipse's workspace. leave delete project contents on disk unchecked! - import → existing maven projects:
myproject, below.
Comments
Post a Comment