Skip to content
Carsten Stocklöw edited this page May 30, 2015 · 1 revision

Instructions to disable local testing phase during any Maven goal

It is not recommended to disable local testing, but if you wish to save some minutes out of your building time here is how.

There are two options:

  • run maven with "-Dmaven.test.skip=true" option. Perfect when you need just once to skip the testing.
 mvn -Dmaven.test.skip=true install
  • To disable all local testing, add the following to your .m2/settings.xml:
 <settings ...>
    <profiles>
        ...
        <profile>
            ...
            <properties>
                <maven.test.skip>true</maven.test.skip>
            </properties>
        </profile>
    </profiles>
 </settings>