Post

maven install skip test run single test ignore ssl errors

maven install skip test run single test ignore ssl errors

These are the flags I reach for most often day-to-day. Skip tests for fast builds during development, run a single test when debugging a specific failure, force-pull updated snapshots with -U when you’re not getting the latest version. The SSL ignore flags saved me multiple times behind corporate proxies that intercept HTTPS.

Assuming mvn is configured and you want to run install while skipping tests and ignoring any SSL errors.

  • maven force pull artifacts
1
$ mvn -U install
  • maven install but skip tests
1
$ mvn -U install -DskipTests=true
  • maven run only one test
1
$ mvn test -Dtest=CustomServiceWrapperTest
  • maven ignore ssl errors
1
$ mvn install -Dmaven.wagon.http.ssl.insecure=true -Dmaven.wagon.http.ssl.allowall=true -Dmaven.wagon.http.ssl.ignore.validity.dates=true
This post is licensed under CC BY 4.0 by the author.