mill icon indicating copy to clipboard operation
mill copied to clipboard

Use maven-metadata.xml to find out dependency's pom

Open Iltotore opened this issue 3 years ago • 5 comments

Actually, Mill seems to pull dependencies by directly building an URL to the supposed pom. However, this method doesn't work on some repositories like for Spigot dependencies.

Mill should first pull the first maven-metadata.xml (example) at <repoUrl>/<group separated by />/<artifactId>/maven-metadata.xml to retrieve the version's metadata file (example) and get the jar name from it.

Iltotore avatar Jan 07 '21 09:01 Iltotore

Mill does not access the Maven repository directly, but uses the coursier API (https://get-coursier.io/) for it. So, this is an upstream issue and should be reported there.

lefou avatar Jan 07 '21 10:01 lefou

FTR, I asked in the coursier discussions: https://github.com/coursier/coursier/discussions/1945

lefou avatar Jan 07 '21 10:01 lefou

Ok, I was writing it but you were too fast.

Iltotore avatar Jan 07 '21 11:01 Iltotore

@Iltotore Can you show what files mill (/coursier) tries to download and also show the exact failure? What files did you expect it to download instead?

lefou avatar Jan 11 '21 13:01 lefou

Hello @lefou, I moved this issue to coursier/coursier. The files you're asking are at the same place at sent maven metadata in the first message.

Iltotore avatar Feb 17 '21 08:02 Iltotore