1. Skip the test when packaging ( unit test plugin ):
<plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-surefire-plugin</artifactId> <configuration> <skip>true</skip> </configuration> </plugin>
Corresponding MVN command: mvn install -Dmaven.test.skip=true