Wednesday, September 12, 2012

Performing mvn release:prepare without tests

If for some reason (e.g. tests only run in dev environment) you wish to skip running tests during the Maven release process, this is a trick that comes in handy

mvn release:prepare -Darguments='-Dmaven.test.skip=true'

The explanation can be found here at point 6. (the short version is that you have to pass the argument to the release plugin instead of the usual command).

No comments:

Post a Comment