Please refer to xxxtargetsurefire-reports for theindividual test results

报错信息

Please refer to D:\java\code\springboot_web_config\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.

解决方案

  1. 找到 pom.xml 文件
  2. 修改 properties
    1
    2
    3
    4
    <properties>
    <java.version>8</java.version>
    <skipTests>true</skipTests>
    </properties>

原因分析

报错信息大致是指在构建项目的时候,有测试错误叫你自己去看,实际如果只需要关心打包的话我们就可以跳过测试,于是就有了上面的解决办法。