Reputation: 349
I am working through the Digital Asset quickstart guide. I am having trouble running:
mvn clean compile exec:java
I get the following error:
[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]
How do I get authorization?
Upvotes: 1
Views: 77
Reputation: 741
To use the Java bindings you need to set up Maven to work with the Digital Asset Maven repository in Bintray.
settings.xml
file~/.m2/settings.xml
, integrate the downloaded file with
it. Otherwise, copy the downloaded settings.xml
file to ~/.m2/settings.xml
.<name>@digitalassetsdk
, displayed below Edit Your Profile) and your Bintray API key, which you’ll need in the next step.settings.xml
, change the username
and the apikey
fields to your Bintray username and API key.You can also find these instructions with direct Bintray links in the documentation.
Upvotes: 2