Build Maven Project Without Running Unit Tests
Solution 1:
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
Solution 2:
If you are using eclipse there is a "Skip Tests" checkbox on the configuration page.
Run configurations → Maven Build → New → Main tab → Skip Tests
Solution 3:
Run following command:
mvn clean install -DskipTests=true
Solution 4:
With Intellij Toggle Skip Test Mode can be used from Maven Projects tab: