Monday, June 4, 2012

Selecting Maven modules to build

On a multimodule Maven project you can speed up builds by only building the modules that have changed. Use the --projects option to list the modules you want to build.

mvn --projects aaa,bbb,ccc install

And if you're in a real hurry you can tack on -Dmaven.test.skip to avoid running any tests.

mvn --projects aaa,bbb,ccc install -Dmaven.test.skip

No comments:

Post a Comment