有的时候执行maven需要跳过test的测试。需要添加下面的参数:
$ mvn install -Dmaven.test.skip=true
这样在执行mvn的生命周期的时候,就会跳过test的单元测试。