sbt依赖项中的DynamoDBLocal

时间:2016-02-06 10:49:57

标签: maven sbt dynamo-local

我已将"com.amazonaws" % "dynamodb-titan100-storage-backend" % "1.0.0"添加到我的依赖项中,并且由于com.amazonaws#DynamoDBLocal;[1.10.5.1, 2.0.0): not found而构建已损坏。我通过添加mavenLocal解析器解决了这个问题(我之前已经建立了dynamodb-titan100-storage-backend),但我认为这不是最好的解决方案。

dynamodb-titan100-storage-backend有一个名为" AWS DynamoDB Local Release Repository"在pom.xml中指向http://dynamodb-local.s3-website-us-west-2.amazonaws.com/release,但将其添加为sbt解析程序并不能解决问题。

我的问题是:为什么这种转载适用于maven而不适用于sbt?

Link to pom.xml

sbt log的一部分:

[info] Resolving com.amazonaws#DynamoDBLocal;[1.10.5.1, 2.0.0) ...
[warn]  module not found: com.amazonaws#DynamoDBLocal;[1.10.5.1, 2.0.0)
[warn] ==== local: tried
[warn]   /home/wpitula/.ivy2/local/com.amazonaws/DynamoDBLocal/[revision]/ivys/ivy.xml
[warn] ==== fedora: tried
[warn]   file:/usr/share/sbt/ivy-local/com.amazonaws/DynamoDBLocal/[revision]/ivy.xml
[warn] ==== public: tried
[warn]   https://repo1.maven.org/maven2/com/amazonaws/DynamoDBLocal/[revision]/DynamoDBLocal-[revision].pom
[warn] ==== sonatype-snapshots: tried
[warn]   https://oss.sonatype.org/content/repositories/snapshots/com/amazonaws/DynamoDBLocal/[revision]/DynamoDBLocal-[revision].pom
[warn] ==== DynamoDbLocal: tried
[warn]   http://dynamodb-local.s3-website-us-west-2.amazonaws.com/release/com/amazonaws/DynamoDBLocal/[revision]/DynamoDBLocal-[revision].pom
[info] Resolving jline#jline;2.12.1 ...
[warn]  ::::::::::::::::::::::::::::::::::::::::::::::
[warn]  ::          UNRESOLVED DEPENDENCIES         ::
[warn]  ::::::::::::::::::::::::::::::::::::::::::::::
[warn]  :: com.amazonaws#DynamoDBLocal;[1.10.5.1, 2.0.0): not found
[warn]  ::::::::::::::::::::::::::::::::::::::::::::::

1 个答案:

答案 0 :(得分:0)

问题可能出在SBT解析器的错误类型上。你应该使用这样的Maven-repository resolver

resolvers += "DynamoDBLocal" at "https://s3-us-west-2.amazonaws.com/dynamodb-local/release"