clojars

Jakub Holý (HolyJak) 2024-07-01T16:42:49.432299Z

Hello! I have just reportedly been added to the org.scicloj group, yet I fail to deploy a new library to the group: > Could not transfer metadata org.scicloj:wolframite/maven-metadata.xml from/to clojars (https://clojars.org/repo): authorization failed for https://clojars.org/repo/org/scicloj/wolframite/maven-metadata.xml, status: 403 Forbidden What could be wrong? I’ve used the username+token to deploy other libs before…

✅ 1
Jakub Holý (HolyJak) 2024-07-01T16:44:04.119469Z

I even got this email > User ‘holyjak’ was added to the org.scicloj group with scope ‘*’ by scicloj.

phronmophobic 2024-07-01T16:52:48.228249Z

unfortunately, a missing license just gives a 403, https://clojurians.slack.com/archives/C0H28NMAS/p1717155058719789. I also got bit by this recently

Jakub Holý (HolyJak) 2024-07-01T17:00:10.614649Z

ah, thx! 👀

Jakub Holý (HolyJak) 2024-07-01T17:13:05.667379Z

Hm, I have added the license now but still getting 403. Part of META-INF/maven/org.scicloj/wolframite/pom.xml :

<repositories>
    <repository>
      <id>clojars</id>
      <url></url>
    </repository>
  </repositories>
  <licenses>
    <license>
      <name>Eclipse Public License 2.0</name>
      <url></url>
    </license>
    <organization>SciCloj</organization>
  </licenses>
</project>

2024-07-01T17:14:29.657529Z

I don't think you can have in the list (from the log on clojars): "invalid pom file: Unrecognised tag: 'organization' (position: START_TAG seen ...</license>\\n <organization>... @45:19)"

2
2024-07-01T17:15:13.284149Z

Also, what tooling are you using to deploy?

Jakub Holý (HolyJak) 2024-07-01T17:17:06.237059Z

It succeeded now! Many thanks! And to answer, Slipset’s deploy lib for deps

2024-07-01T17:19:13.284989Z

Interesting. I wonder what version of the maven/aether lib that is pulling in that prevents you from seeing the extended status message? It would have been helpful to see, since it would have told you to add a license (though the latter error would not have been reported that way). What version of the lib are you using?

2024-07-01T17:20:04.287539Z

@smith.adriane What were you deploying with when you didn't see the status message either?

phronmophobic 2024-07-01T17:20:20.870249Z

also slipset's deploy lib

phronmophobic 2024-07-01T17:20:39.343469Z

slipset/deps-deploy {:mvn/version "RELEASE"}

Jakub Holý (HolyJak) 2024-07-01T17:23:34.495889Z

I use slipset/deps-deploy {:mvn/version "0.2.2"} It uses

clj-commons/pomegranate {:mvn/version "1.2.23"}
        s3-wagon-private/s3-wagon-private {:mvn/version "1.3.5"}

2024-07-01T17:23:44.265799Z

The latest is using a new enough pomegranate to bring in the maven dep that fixes status messages, so I'm not sure why it isn't seen. Would one of y'all be willing to share the full output of a deploy where the license wasn't set (if you still have it)?

Jakub Holý (HolyJak) 2024-07-01T17:23:48.575919Z

FYI @slipset ☝️

Jakub Holý (HolyJak) 2024-07-01T17:25:02.921869Z

I guess this one

Deploying org.scicloj/wolframite-1.0.0-SNAPSHOT to repository clojars as holyjak
Could not find metadata org.scicloj:wolframite:1.0.0-SNAPSHOT/maven-metadata.xml in clojars ()
Sending org/scicloj/wolframite/1.0.0-SNAPSHOT/wolframite-1.0.0-20240701.164820-1.pom (1k)
    to 
Sending org/scicloj/wolframite/1.0.0-SNAPSHOT/wolframite-1.0.0-20240701.164820-1.jar (750k)
    to 
Could not find metadata org.scicloj:wolframite/maven-metadata.xml in clojars ()
Sending org/scicloj/wolframite/1.0.0-SNAPSHOT/maven-metadata.xml (1k)
    to 
Sending org/scicloj/wolframite/maven-metadata.xml (1k)
    to 
Could not transfer metadata org.scicloj:wolframite/maven-metadata.xml from/to clojars (): authorization failed for , status: 403 Forbidden
Execution error (AuthorizationException) at org.apache.maven.wagon.shared.http.AbstractHttpClientWagon/put (AbstractHttpClientWagon.java:817).
authorization failed for , status: 403 Forbidden

Full report at:
/var/folders/p7/mlz1j06x5bqb66w404xrkgzh0000gn/T/clojure-13640841608032815673.edn

Jakub Holý (HolyJak) 2024-07-01T17:26:23.767699Z

nothing useful here either…

2024-07-01T17:32:34.769179Z

Thanks @holyjak! would you be willing to run clojure -A:deploy -Stree and share that output (assuming you bring in deps-deploy via an alias called :deploy)?

Jakub Holý (HolyJak) 2024-07-01T17:34:01.995509Z

sure!

2024-07-01T17:52:25.749549Z

Thanks! The wagon-http version looks correct. I just updated the dev dependency that clojars has on pomegranate to the same as above (1.2.23), and all the tests pass. The tests rely on pomegranate (via wagon-http) passing the status message through, so I'm not sure what is going on here. I'll have to do more digging.

2024-07-01T17:53:26.944099Z

I created https://github.com/clojars/clojars-web/issues/885 to dig in to it more later.

2
🙏 1