4

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

[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")
4

1 回答 1

2

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

ExclusionRule(organization = "org.scalaz", name="scalaz-core_2.10")
于 2013-11-25T11:56:35.433 回答