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:
validate
compile
test
package
integration-test
verify
install
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
Post a Comment