SkipTest-Not-Work-In-Multiple-models-project
Leave nothing for tomorrow which can be done today. -Abraham Lincoln.
Background & symptoms
As you know, you can skip tests during maven run, which maybe because you want to get an urgent task down or test will result in some noisy.
You already know, you can run following command to skip test
mvn install -DskipTests
Failures!
However, this skipTest won’t work for project with multiple modules
, for example if you run above command in parent module, each child project will still trigger test phase.
To solve the problem, please use following command alternatively.
Specifically, it’s -Darguments=-DskipTests
mvn -Darguments=-DskipTests install
–End–