2

我已经添加"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 localy),但我认为这不是最好的解决方案。

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

我的问题是:为什么这个 repostiry 适用于 maven 但不适用于 sbt?

链接到 pom.xml

部分 sbt 日志:

[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]  ::::::::::::::::::::::::::::::::::::::::::::::
4

1 回答 1

0

问题可能出在错误类型的 SBT 解析器中。您应该像这样使用Maven 存储库解析器

resolvers += "DynamoDBLocal" at "https://s3-us-west-2.amazonaws.com/dynamodb-local/release"
于 2017-03-04T05:20:41.390 回答