创建maven项目时pom.xml出现下面的错误,求大神解决

2025-04-25 20:18:31
推荐回答(1个)
回答1:

您好,maven2打包前会运行junit,但是,有时我们希望即使出现了错误,也要打包。maven2的设计者已经考虑到这种情况了。pom.xml文件配置内容如下:

[...]



org.apache.maven.plugins
maven-surefire-plugin

true




[...]