我的构建中有以下几行
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属性中添加什么版本。