当我在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")
答案 0 :(得分:2)
scalaz排除规则的问题不是多个jar - 它是%%
中没有ExclusionRule
,所以我需要为任何具有它们的依赖项显式添加Scala版本在他们的模块名称中,如下所示:
ExclusionRule(organization = "org.scalaz", name="scalaz-core_2.10")