bazeltools / bazel-deps

Generate bazel dependencies for maven artifacts
MIT License
249 stars 121 forks source link

Maven classifier is not generated correctly in artifact URL #316

Open jcallin opened 2 years ago

jcallin commented 2 years ago

If I depend on io.netty.netty-transport-native-epoll, Coursier will try and resolve the artifact without an _ in the linux-aarch64 classifier. If I manually go to the URL and insert an _ between aarch and 64, the artifact can be found. We can see it exists at https://repo.maven.apache.org/maven2/io/netty/netty-transport-native-epoll/4.1.79.Final/netty-transport-native-epoll-4.1.79.Final-linux-aarch_64.jar

Here's the error I encounter

java.lang.RuntimeException: we could not download the artifact io.netty:netty-transport-native-epoll:jar:linux-aarch64:4.1.79.Final to compute the hash for digest type Sha1 with error com.github.johnynek.bazel_deps.CoursierResolver$FileErrorException: not found: https://repo.maven.apache.org/maven2/io/netty/netty-transport-native-epoll/4.1.79.Final/netty-transport-native-epoll-4.1.79.Final-linux-aarch64.jar
jcallin commented 2 years ago

Might be related to https://github.com/johnynek/bazel-deps/issues/295