maven项目package test时报错

Failed to execute goal org.​​apache​​.maven.plugins:maven-surefire-plugin:2.22.1:test (default-test) on project shop-order: Execution default-test of goal org.apache.maven.plugins:maven-surefire-plugin:2.22.1:test

解决方法:在原来的maven依赖插件中新加一个maven-surefire-plugin依赖即可

2.22.1</version>
<configuration>
<skipTests>true</skipTests>
</configuration>
</plugin>