使用maven打包项目报错Please refer to...

报错描述
Please refer to D:\code\java\project_test\usercenter\usercenter_backend\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.

原因
maven在默认打包时会执行一下所有的单元测试

解决
使用maven打包项目报错Please refer to..._第1张图片

或者在 pom.xml 中添加如下配置

<plugins>
    <plugin>
        <groupId>org.apache.maven.pluginsgroupId>
        <artifactId>maven-surefire-pluginartifactId>
        <configuration>
            <skip>trueskip>
        configuration>
    plugin>
plugins>

你可能感兴趣的:(日常,maven,java)