如何修复sbt的[警告]跳过生成”依赖?

当我在sbt中运行makePom时,我得到:

[warn] Skipped generating '<exclusion/>' for org.scalaz#*. Dependency exclusion should have both 'org' and 'module' to comply with Maven POM's schema.
[warn] Skipped generating '<exclusion/>' for com.jolbox#*. Dependency exclusion should have both 'org' and 'module' to comply with Maven POM's schema.

解决此问题的最简单方法是什么,以便生成正确的排除项?

以下不起作用 – 它打破了scalaz排除规则 – 我认为因为scalaz 7由多个jar组成:

ExclusionRule(organization = "org.scalaz", name="scalaz-core")

ExclusionRule(organization = "com.jolbox", name="bonecp")

最佳答案 这不是多个罐子,这是scalaz排除规则的问题 – 它是ExclusionRule中没有%%,所以我需要为其模块名称中包含它们的任何依赖项显式添加Scala版本,如下所示:

ExclusionRule(organization = "org.scalaz", name="scalaz-core_2.10")
点赞