zoukankan      html  css  js  c++  java
  • maven Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.10:

    [ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.10:test (default-test) on project web_nanchang: There are test failures.
    解决方法1:mvn package -Dmaven.test.failture.ignore=true安装,但没有成功。
    解决方法2:使用插件,在相应pom.xml文件里面,修改

    <build>
        <plugins>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-surefire-plugin</artifactId>
                <configuration>
                    <testFailureIgnore>true</testFailureIgnore>
                </configuration>
            </plugin>
        </plugins>
    </build>添加了红色配置部分,成功。
  • 相关阅读:
    CTSC2018滚粗记
    HNOI2018游记
    NOIWC 2018游记
    PKUWC2018滚粗记
    HNOI2017 游记
    NOIP2017题解
    [HNOI2017]抛硬币
    [HNOI2017]大佬
    NOIP难题汇总
    [NOI2013]树的计数
  • 原文地址:https://www.cnblogs.com/caicai-bird/p/4739547.html
Copyright © 2011-2022 走看看