美文网首页
mvn install一直报错

mvn install一直报错

作者: 李李李的柠檬水 | 来源:发表于2018-06-14 21:15 被阅读0次

原因是测试代码发生错误导致编译终止失败。

解决办法:
pom.xml 文件的build里面plugins下添加如下代码

      <plugin>
            <groupId>org.apache.maven.plugins</groupId>
            <artifactId>maven-surefire-plugin</artifactId>
            <configuration>
                <testFailureIgnore>true</testFailureIgnore>
            </configuration>
        </plugin>

相关文章

网友评论

      本文标题:mvn install一直报错

      本文链接:https://www.haomeiwen.com/subject/llsueftx.html