如何修复 sbt 的 [warn] Skipped generated '' for dependency?

2024-03-10

当我跑步时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")

and

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

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

ExclusionRule(organization = "org.scalaz", name="scalaz-core_2.10")
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)

如何修复 sbt 的 [warn] Skipped generated '' for dependency? 的相关文章

随机推荐