问题
为什么会出现“Please refer to XXX for the individual test results. Please refer to dump files (if any exist) [date].dump, [date]-jvmRun[N].dump and [date].dumpstream.”的错误呢????
原因
因为在测试中有内存溢出或者是内存占用过大的情况出现
解决方案
方案一:将Maven中的测试关闭
方案二:在pom.xml中添加依赖(最好加上版本号—version)
<!-- maven 打包时跳过测试 -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>3.1.2 </version>
<configuration>
<skip>true</skip>
</configuration>
</plugin>