I have a web app that I would like to split into three pieces. I noticed it has two completely distinct functionalities, but the core architecture (libs used in presentation layer, Spring container, DAO etc.) is shared.
One piece would be the "master", with full vertical stack from presentation through DAO, but only for what's common for all "subprojects".
The other two modules would be the "subprojects" themselves.
Now the question is: Is it possible to get Maven to treat all 3 pieces (modules?) as one, so that they would be built and most importantly packaged together? I need the final result to be a single war with directory tree similar to:
war
+ WEB-INF
+ classes
+ subproject1
+ subproject2
+ view-shared
+ css
+ ...
+ js
+ ...
+ subproject1
+ myPage.jsp
+ subproject2
+ anotherPage.jsp
You get the idea.