clojars

http://clojars.org discussion and “support”, see http://status.clojars.org for status.
dorab 2020-08-16T00:55:23.072500Z

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

dorab 2020-08-16T00:55:33.072800Z

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 <https://clojars.org/repo/dorab-lib-template/clj-template/0.1.3/clj-template-0.1.3.pom> with status code 401

dorab 2020-08-16T00:56:22.073100Z

Any ideas?

2020-08-16T12:29:55.073700Z

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.

dorab 2020-08-16T17:47:25.073900Z

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.

2020-08-16T18:14:23.074100Z

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