I am using Apache Maven 3.0.4 to build a web service and since I am splitting my web application in different libraries using an Aggregator project I would like to have for all of them a different jar file.
I don't know if it is possible but what I would like to do is to package a war that contains all my jars, so I created a parent maven project with his pom.xml and I am including several modules that are generating the jars of my libraries.
The normal parent pom.xml is something like this:
<artifactId>parent</artifactId>
<packaging>pom</packaging>
<name>Parent</name>
<modules>
<module>child_1</module>
<module>child_2</module>
</modules>
If I try to have a different packaging I get an error saying: Aggregator projects require 'pom' as packaging
There is a clean way to generate a war package including the jar packages of all my modules or a better approach to deploy my war?