Maven打包错误:Please refer to XXXXX for the individual test results._zhizhiqiuya

Please refer to XXXXX for the individual test results._zhizhiqiuya

  • 错误原因:
    项目开发中没有编写测试,打包过程中test检测错误

  • 解决方案:
    跳过测试单元

Maven打包错误:Please refer to XXXXX for the individual test results._zhizhiqiuya_第1张图片

  • 修改pom文件
    <build>
    <plugins>
        <!-- maven 打包时跳过测试 -->
        <plugin>
            <groupId>org.apache.maven.plugins</groupId>
            <artifactId>maven-surefire-plugin</artifactId>
            <configuration>
                <skip>true</skip>
            </configuration>
        </plugin>
    </plugins>
    </build>

完成

你可能感兴趣的:(maven,java,打包)