Fork me on GitHub
#clojars
<
2020-08-16
>
dorab00:08:23

Hi folks. I'm having some trouble deploying to clojars, a template that I was able to deploy earlier. I am using slipset's deps-deploy (which I used successfully earlier). I've set my CLOJARS_USERNAME and CLOJARS_PASSWORD env variables. I have two different deploy tokens (tried both). I get a 401 error indicating it may be some kind of authentication issue. Here is the transcript

dorab00:08:33

Dorabs-iMac:dorab-lib-template dorab$ clj -A:deploy
Deploying dorab-lib-template/clj-template-0.1.3 to clojars as dorab-deploy
Execution error (TransferFailedException) at org.apache.maven.wagon.shared.http.AbstractHttpClientWagon/put (AbstractHttpClientWagon.java:756).
Failed to transfer file  with status code 401

dorab00:08:22

Any ideas?

tcrawley12:08:55

From looking in the logs, this is a real authentication failure. It looks like you are providing a username that does not exist. You have to supply the username that the deploy token belongs to.

dorab17:08:25

Ah. Thanks. I thought I had to use the name of the deploy token as the CLOJARS_USERNAME. I used my own user name and it works. Thanks.

tcrawley18:08:23

Sorry for the confusion. Glad it's working now!