I want my ModuleTypeA war to include ModuleBase as a dependency with 'src/main/java/typeA' package Excluded and similarly ModuleTypeB war to include ModuleBase as a dependency with 'src/main/java/typeB' package Excluded.
Here is my project structure:
ModuleBase
|
|----> src/main/java/base
|----> src/main/java/typeA
|----> src/main/java/typeB
|----> pom.xml
ModuleTypeA
|
|----> src/main/java/..
|----> pom.xml
ModuleTypeB
|
|----> src/main/java/..
|----> pom.xml
I am new to Maven and not sure how to achieve that. ModuleBase cannot be a parent project as I need to build a jar for that (can't have packaging type pom) so I can create a top level parent project.
Any suggestions are welcome.
Thanks