How to skip the life cycle phase in multi maven module

I have a maven multi module project that calls two additional modules. note that this child module does not use the parent markup tag. Now I need the deployment phase to be performed on only one child module, and not on the other. Can anyone give any recommendations on the best way to do this?

thank

+5
source share
3 answers

As mentioned in this FAQ for maven deploy plugin, as well as in this SO , you should add the following to the pom of a module that you do not want to deploy.

        <plugin>
           <artifactId>maven-deploy-plugin</artifactId>
           <version>X.Y</version>
           <configuration>
             <skip>true</skip>
          </configuration>
        </plugin>
+5

maven , pom.xml.

  • pom.xml
  • : mvn --projects [target-module-artifactId] [/]. : mvn -projects subodule1 deploy
0

All Articles