I have a Maven build with three modules.
- Module A exports a jar.
- Module B depends on A and exports a jar.
- Module C is a set of regression tests that depend on A and B.
The reason the regression tests aren’t just part of module B is that they should be able to run against multiple versions of A and B to ensure backwards compatibility. I want to be able to run deploy from the top level build to create A.jar and B.jar, but not C.jar. Is this possible?
If you don’t need to create a JAR at all, you might want to add two more properties:
Note that you still need
maven.deploy.skip, otherwise the build will fail during deployment.