We have .pom aggregation, which includes several separate modules, similar to the Maven Documentation :
<project>
<modelVersion>4.0.0</modelVersion>
<groupId>com.mycompany.app</groupId>
<artifactId>my-app</artifactId>
<version>1</version>
<packaging>pom</packaging>
<modules>
<module>my-module</module>
<module>my-module-2</module>
</modules>
</project>
Is there a way to get artifacts from collectors (.JAR files) from these two modules into a common "dist" directory after assembly? I did not want to configure the output directory for individual modules from "my-module / target", since they can also be created separately.
I am new to Maven, so I'm sure there is an easy way to do this. I'm missing.
source
share