Skipping Unit Tests
跳过测试用例
You may want to configure Maven to skip unit tests altogether. Maybe you have a very large system
where the unit tests take minutes to complete and you don’t want to wait for unit tests to complete before
producing output. You might be working with a legacy system that has a series of failing unit tests, and
instead of fixing the unit tests, you might just want to produce a JAR. Maven provides for the ability to
skip unit tests using the skip parameter of the Surefire plugin. To skip tests from the command-line,
simply add the maven.test.skip property to any goal:
$ mvn install -Dmaven.test.skip=true
如果你想配置maven 跳过所有测试用例,或者你有一个很大的项目,但不想等待那漫长的测试用例执行,
-Dmaven.test.skip=true