I’m trying to use Coursier to install packages from behind an enterprise Artifactory instance. I’m able to use fetch / resolve the artifacts from the Artifactory instance, but setup / install aren’t working. It gives me an error like
“Can’t Find a scala version suffix for io.get-coursier::coursier-cli:latest.release”
after running coursier install coursier.
I can see it pull artifacts from my Artifactory instance. I’m thinking that once it fetches the io.get-coursier:apps package, it’s directed to download the artifacts from Maven Central, and then craps out. Setting up the mirror.properties file hasn’t seemed to help it resolve from the Artifactory instance.
The Maven packages in this instance do have a Scala version suffix (ex. 2.12_1.0), which may be related to the error?
I’m using the COURSIER_REPOSITORIES and COURSIER_CREDENTIALS variables to set up authentication with my Artifactory instance, and COURSIER_MIRRORS to direct it to my mirror.properties file.
Seems like Coursier & Artifactory docs are…sparse, so if anyone’s gone through this before, I’d appreciate any guidance. Thank you!
That was down to me using an outdated version of Coursier, had to reinstall a brand new version to fix it.
Other than that, I presume you’ve already seen this: Proxy and mirrors | Metals or something similar as you’ve mentioned COURSIER_MIRRORS?
If you do find a solution, please share it back - Kinetic Merge is packaged as a Coursier application, and I’d like to know what to tell people if they are working in corporate firewall land.
I’ll be sure to keep this updated. That GitHub issue you shared is the most promising sign. That seems to be exactly my issue, or at least closely related.
I looked at your other post, and I don’t think that’s what causing my issue. I’ve been able to use resolve successfully, it’s just install / setup (I guess anything that’s trying to make an executable) that is having a hard time.
I’ll keep following that thread and will report back if I find any solutions.