Build Maven Project Without Running Unit Tests
If you are using eclipse there is a "Skip Tests" checkbox on the configuration page.
Run configurations → Maven Build → New → Main tab → Skip Tests
Run following command:
mvn clean install -DskipTests=true
If you want to skip running and compiling tests:
mvn -Dmaven.test.skip=true install
If you want to compile but not run tests:
mvn install -DskipTests