问题如下:
Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.22.2:test (default-test) on project ..: There are test failures.
Please refer to C:\..\..\..\..\target\surefire-reports for the individual test results.
Please refer to dump files (if any exist) [date].dump, [date]-jvmRun[N].dump and [date].dumpstream.
这样操作解决了我的问题。大家可以试一试,在POM文件中将maven-surefire-plugin插件版本更改到2.19.1版本,如下:
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>2.19.1</version>
</plugin>
</plugins>
再次运行发现问题不见了!
祝大家好运!