我正在研究Digital Asset quickstart guide。我在运行时遇到问题:
mvn clean compile exec:java
我收到以下错误:
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 1.373 s
[INFO] Finished at: 2019-02-13T17:22:14-05:00
[INFO] Final Memory: 10M/50M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal on project daml-quickstart-java: Could not resolve dependencies for project quickstart:daml-quickstart-java:jar:1.0.0: Failed to collect dependencies at com.daml.ledger:bindings-java:jar:2.5.2: Failed to read artifact descriptor for com.daml.ledger:bindings-java:jar:2.5.2: Could not transfer artifact com.daml.ledger:bindings-java:pom:2.5.2 from/to bintray-digitalassetsdk-DigitalAssetSDK (https://digitalassetsdk.bintray.com/DigitalAssetSDK): Not authorized , ReasonPhrase:Unauthorized. -> [Help 1]
我如何获得授权?
答案 0 :(得分:2)
要使用Java绑定,您需要设置Maven以使其与Bintray中的Digital Asset Maven存储库一起使用。
settings.xml
文件~/.m2/settings.xml
,请将下载的文件与
它。否则,将下载的settings.xml
文件复制到~/.m2/settings.xml
。<name>@digitalassetsdk
,显示在编辑您的个人资料下方)和您的Bintray API密钥,这些是下一步所需的。settings.xml
中,将username
和apikey
字段更改为Bintray用户名和API密钥。您还可以通过直接的Bintray链接in the documentation找到这些说明。