My blog has moved!

You will be automatically redirected to the new address. If that does not occur, visit
http://utku-utkan.appspot.com/
and update your bookmarks.

Pages

Wednesday, March 4, 2009

How to skip tests in Maven

We all had the moment, that we desperately needed to skip our tests in Maven. Well, there are two ways to skip test executions in Maven:

One is to the use maven.test.skip.exec parameter:

mvn ... -Dmaven.test.skip.exec=true


This is really hard to remember and it is even deprecated; so I suggest you the following:


mvn ... -DskipTests