Friday, March 30, 2007

mvnq - *small* maven tip

Here's a quickie...

In "some" projects that use maven for building, it can be annoying to run tests on each build of an artifact when developing. So, often I run "mvn -Dmaven.test.skip=true", up until before checking in. On the shitty Windows command prompt, where you do not have stuff like search in history, it is nice with this little .bat file:

SET MAVEN_OPTS="-Dmaven.test.skip=true"
mvn.bat

I always call it "mvnq.bat" ("q" for "quick build") and put it in my path.

Of course, when on a *nix, this is more elegantly solved by a simple alias command in the shell...