質問

When I run makePom in sbt I get:

[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.

What's the easiest way to fix this problem so that the correct exclusions get generated?


The following does not work - it breaks the scalaz exclusion rule - I presume because scalaz 7 is composed of multiple jars:

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

and

ExclusionRule(organization = "com.jolbox", name="bonecp")
役に立ちましたか?

解決

It's not the multiple jars that's the problem for the scalaz exclusion rule - it's that there is no %% in an ExclusionRule, so I needed to explicitly add the Scala version for any dependencies which have them in their module name, like so:

ExclusionRule(organization = "org.scalaz", name="scalaz-core_2.10")
ライセンス: CC-BY-SA帰属
所属していません StackOverflow
scroll top