跳过生成&#39; <排除>&#39;对于com.google#*。依赖性排除应该同时包含“组织”和“组织”。和&#39;模块&#39;遵守Maven POM的要求

时间:2016-11-19 03:04:02

标签: scala sbt

我的构建中有以下几行

val hadoop = "org.apache.hadoop" % "hadoop-client" % "2.7.3" excludeAll(
   ExclusionRule(organization = "org.slf4j"),
   ExclusionRule(organization= "com.google"))
val hive = "org.apache.hive" % "hive-jdbc" % "2.1.0" excludeAll(
   ExclusionRule(organization = "org.slf4j"),
   ExclusionRule(organization= "com.google")
   )

当我尝试生成程序集时,我收到此警告

Skipped generating '<exclusion/>' for com.google#*. Dependency exclusion should have both 'org' and 'module' to comply with Maven POM's

我用谷歌搜索并找到了解决问题的方法

How to fix sbt's [warn] Skipped generating '<exclusion/>' for dependency?

解决方案声明我应该指定scala版本(因为依赖项定义中没有%%)。

但是在我的情况下,依赖项并不真正针对特定的scala版本

https://mvnrepository.com/artifact/org.apache.hadoop/hadoop-client/2.7.3

因此我不确定应该在name属性中添加什么版本。

0 个答案:

没有答案