java - How can I make a Maven module only go until the test phase when the parent gets deployed? -


i'm working on multi-module project. 1 of our module tests project, tests other modules.

first question: pratice?

the maven build lifecycle phases are:

  1. validate
  2. compile
  3. test
  4. package
  5. integration-test
  6. verify
  7. install
  8. deploy

when installing or deploying parent module, how can make tests module go until test phase, i.e. skip package , following phases? since purpose of module test other ones.

i assume jar project. @ plugin bindings default lifecycle reference.

bind default executions of maven-jar-plugin, maven-install-plugin , maven-deploy-plugin plugins none phase in pom.xml

<plugin>     <groupid>org.apache.maven.plugins</groupid>     <artifactid>maven-jar-plugin</artifactid>     <version>2.6</version>     <executions>         <execution>             <id>default-jar</id>             <phase>none</phase>         </execution>     </executions> </plugin> <plugin>     <groupid>org.apache.maven.plugins</groupid>     <artifactid>maven-install-plugin</artifactid>     <version>2.5.2</version>     <executions>         <execution>             <id>default-install</id>             <phase>none</phase>         </execution>     </executions> </plugin> <plugin>     <groupid>org.apache.maven.plugins</groupid>     <artifactid>maven-deploy-plugin</artifactid>     <version>2.8.2</version>     <executions>         <execution>             <id>default-deploy</id>             <phase>none</phase>         </execution>     </executions> </plugin> 

Comments

Popular posts from this blog

Android : Making Listview full screen -

javascript - Parse JSON from the body of the POST -

javascript - How to Hide Date Menu from Datepicker in yii2 -