考虑以下示例:
[WARNING]
Dependency convergence error for org.scala-lang:scala-reflect:2.12.4 paths to dependency are:
+-com.intuit.karate:karate-gatling:0.9.2
+-io.gatling.highcharts:gatling-charts-highcharts:3.0.2
+-io.gatling:gatling-http-client:3.0.2
+-com.typesafe.scala-logging:scala-logging_2.12:3.9.0
+-org.scala-lang:scala-reflect:2.12.4
and
+-com.intuit.karate:karate-gatling:0.9.2
+-io.gatling.highcharts:gatling-charts-highcharts:3.0.2
+-io.gatling:gatling-commons:3.0.2
+-org.scala-lang:scala-reflect:2.12.8
and
+-com.intuit.karate:karate-gatling:0.9.2
+-io.gatling.highcharts:gatling-charts-highcharts:3.0.2
+-io.gatling:gatling-commons:3.0.2
+-com.dongxiguo:fastring_2.12:1.0.0
+-org.scala-lang:scala-reflect:2.12.1
and
+-com.intuit.karate:karate-gatling:0.9.2
+-io.gatling.highcharts:gatling-charts-highcharts:3.0.2
+-io.gatling:gatling-commons:3.0.2
+-com.softwaremill.quicklens:quicklens_2.12:1.4.11
+-org.scala-lang:scala-reflect:2.12.3
[WARNING] Rule 0: org.apache.maven.plugins.enforcer.DependencyConvergence failed with message:
Failed while enforcing releasability the error(s) are [
Dependency convergence error for org.scala-lang:scala-reflect:2.12.4 paths to dependency are:
+-com.intuit.karate:karate-gatling:0.9.2
+-io.gatling.highcharts:gatling-charts-highcharts:3.0.2
+-io.gatling:gatling-http-client:3.0.2
+-com.typesafe.scala-logging:scala-logging_2.12:3.9.0
+-org.scala-lang:scala-reflect:2.12.4
and
+-com.intuit.karate:karate-gatling:0.9.2
+-io.gatling.highcharts:gatling-charts-highcharts:3.0.2
+-io.gatling:gatling-commons:3.0.2
+-org.scala-lang:scala-reflect:2.12.8
and
+-com.intuit.karate:karate-gatling:0.9.2
+-io.gatling.highcharts:gatling-charts-highcharts:3.0.2
+-io.gatling:gatling-commons:3.0.2
+-com.dongxiguo:fastring_2.12:1.0.0
+-org.scala-lang:scala-reflect:2.12.1
and
+-com.intuit.karate:karate-gatling:0.9.2
+-io.gatling.highcharts:gatling-charts-highcharts:3.0.2
+-io.gatling:gatling-commons:3.0.2
+-com.softwaremill.quicklens:quicklens_2.12:1.4.11
+-org.scala-lang:scala-reflect:2.12.3
]
这两个警告都是相同的收敛错误。第二个是上述警告的摘要,报告了先前发现的一系列错误。但是,这只会产生很多多余的视觉噪音。这个例子并不那么痛苦,但是当您遇到多个收敛错误时,它会变得一团糟。我没有在搜索文档中获得任何成功的方法来使插件只报告一次这些东西,这可能吗?
(注意,这是maven-enforcer-plugin 1.4.1版)
答案 0 :(得分:0)
答案似乎是该插件已经有一段时间没有正式的“稳定”版本了。升级到3.0.0-M2会切换此设置,因此错误消息会显示“嘿,您遇到了一些错误。请参见上文。”