I’m having a problem deploying com.walmartlabs/lacinia-pedestal 1.3 to clojars:
Deploying com.walmartlabs/lacinia-pedestal-1.3 to repository clojars as hlship
Sending com/walmartlabs/lacinia-pedestal/1.3/lacinia-pedestal-1.3.pom (2k)
to
Sending com/walmartlabs/lacinia-pedestal/1.3/lacinia-pedestal-1.3.jar (30k)
to
Sending com/walmartlabs/lacinia-pedestal/1.3/lacinia-pedestal-1.3.pom.asc (1k)
to
Sending com/walmartlabs/lacinia-pedestal/1.3/lacinia-pedestal-1.3.jar.asc (1k)
to
Retrieving com/walmartlabs/lacinia-pedestal/maven-metadata.xml (2k)
from
Sending com/walmartlabs/lacinia-pedestal/maven-metadata.xml (2k)
to
Could not transfer metadata com.walmartlabs:lacinia-pedestal/maven-metadata.xml from/to clojars (): Authorization failed for 403 Forbidden
Execution error (AuthorizationException) at org.apache.maven.wagon.shared.http.AbstractHttpClientWagon/put (AbstractHttpClientWagon.java:806).
Authorization failed for 403 Forbidden
I’m not sure what’s changed since I last did a deploy. I suspect that Clojars is requiring more authentication for the com.walmartlabs domain? As I don’t work there anymore, that could be a challenge.Sorry for the trouble here! This has been a pretty frustrating issue. This works in tests, and works for some period of time after the production process is restarted, but then at some point the status message sending just stops working until the next process restart. None of that helps y'all; I'm just venting. I'll take another crack at figuring this out.
could be a missing license file https://clojureverse.org/t/ann-clojars-now-requires-a-license-in-the-pom-for-new-projects-or-projects-that-already-specify-a-license/10347
It looks like Howard's build-tools lib handles that (ASL is the license for Lacinia).
According to that CV post, you'd get "Forbidden - the POM file does not include a license" if the license info is missing.
This is the annoying kind of problem that you only hit every few months, and forget what you did to fix it last time.
Do you have the CLOJARS_* env vars setup correctly? Username and deploy token.
I just looked at the generated POM and no <licences>, so that's probably the root problem. I'll go pursue that, thanks!
when I ran into the license issue I didn’t get the specific error message
Really? That's... unfortunate (and I'd consider that a bug).
yes, I thought I had posted it here but can’t find it now, will dig some more.
(I just created that)
I've rewritten the status-message handling code to be more straightforward, but slightly hacky. It is working currently in production, and I have more confidence in this implementation: https://github.com/clojars/clojars-web/pull/890