I work with a large Maven project with many modules. When I run mvn package -pl mymodule, it first runs the package lifecycle phase of all the modules that mymodule depends on.
Some of these other modules have a maven-assembly-plugin step to create .tar.gz files, which is annoyingly slow.
I only need compilation of the other modules and creating their jars in order to create the assembly for mymodule. Yet because of the way this project is structured, packaging mymodule always requires all dependencies to be re-assembled.
What's the preferred way to speed up this build?