Maven package/install without test (skip tests) Maven package/install without test (skip tests) java java

Maven package/install without test (skip tests)


Run maven with

mvn package -Dmaven.test.skip


Just provide the command mentioned below, which will ignore executing the test cases (but will compile the test code):

mvn package -DskipTests


you can add this plugin configuration to your pom if you do not want to set command line arg:

<plugin>  <groupId>org.apache.maven.plugins</groupId>  <artifactId>maven-surefire-plugin</artifactId>  <configuration>    <skipTests>true</skipTests>  </configuration></plugin>