I have a multi-module maven project, and would like to deploy only 2 sub modules:
pom.xml // parent pom
module1
--pom.xml
module2
--pom.xml
module3
--pom.xml
only module1.jar
and module2.jar
should be deployed.
I have found the solution in the following question:
How to Deploy only the sub-modules using maven deploy?
The following property should be added to the pom.xml
set to true
for the modules that should not be deployed:
<properties>
<maven.deploy.skip>true</maven.deploy.skip>
</properties>