如何修复sbt的[警告]跳过生成'<exclusion>'依赖?</exclusion>

时间:2013-11-25 10:01:28

标签: sbt dependency-management scalaz7

当我在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")

1 个答案:

答案 0 :(得分:2)

scalaz排除规则的问题不是多个jar - 它是%%中没有ExclusionRule,所以我需要为任何具有它们的依赖项显式添加Scala版本在他们的模块名称中,如下所示:

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