sbt 依赖项中的 DynamoDBLocal
DynamoDBLocal in sbt dependencies
我已将 "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 在 pom.xml 中有一个名为 "AWS DynamoDB Local Release Repository" 的附加存储库指向 http://dynamodb-local.s3-website-us-west-2.amazonaws.com/release
但将其添加为 sbt 解析器并不能解决问题。
我的问题是:为什么这个 repostiry 适用于 maven 但不适用于 sbt?
部分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] ::::::::::::::::::::::::::::::::::::::::::::::
问题可能出在错误的 SBT 解析器类型上。你应该像这样使用 Maven-repository resolver:
resolvers += "DynamoDBLocal" at "https://s3-us-west-2.amazonaws.com/dynamodb-local/release"
我已将 "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 在 pom.xml 中有一个名为 "AWS DynamoDB Local Release Repository" 的附加存储库指向 http://dynamodb-local.s3-website-us-west-2.amazonaws.com/release
但将其添加为 sbt 解析器并不能解决问题。
我的问题是:为什么这个 repostiry 适用于 maven 但不适用于 sbt?
部分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] ::::::::::::::::::::::::::::::::::::::::::::::
问题可能出在错误的 SBT 解析器类型上。你应该像这样使用 Maven-repository resolver:
resolvers += "DynamoDBLocal" at "https://s3-us-west-2.amazonaws.com/dynamodb-local/release"