我想添加"com.google.api-ads" % "adwords-axis" % "1.23.0"
作为依赖于build.sbt
文件的播放2.2.1项目。当我生成Eclipse项目文件做play eclipse
,我得到以下错误:SBT抱怨Maven的RELEASE作为(传递)依赖的版本?
[error] (*:update) sbt.ResolveException: unresolved dependency: com.google.http-client#google-http-client-jackson2;RELEASE: not found
后来我发现,adwords-axis取决于ads-lib其具有以下依赖(注意RELEASE
版):
<dependency>
<groupId>com.google.http-client</groupId>
<artifactId>google-http-client-jackson2</artifactId>
<version>RELEASE</version>
</dependency>
我读的版本在Maven的这个answer被指定为RELEASE
。
是否SBT不允许指定版本RELEASE
?如果是这样,是否有解决方法使用adwords-axis
依赖关系?
我已经看到不包括Maven的传递依赖。我会尝试你所建议的并回来。谢谢 – livinston
也有人支持在sbt中以几种方式排除传递依赖,但我猜你实际上需要http-client。 – johanandren