Skip going to https://repo1.maven.org/maven2 #2835
TomasMikula
started this conversation in
Using directives and cmd configuration options
Replies: 2 comments 1 reply
-
In Coursier there is a --no-default option to ignore the default repositories (Maven Central and the Ivy 2 local repo). It is probably a good idea to add it to Scala CLI too. |
Beta Was this translation helpful? Give feedback.
0 replies
-
Hi, I am using enviroment variable export COURSIER_REPOSITORIES and it looks that maven central is not used at all, eg: |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
I am trying Scala CLI in a walled environment without direct access to Maven Central.
I have managed to run a simple script with a library dependency using
--repo https://my.company/repo
and also alternatively using the directiveHowever, I can see that on each run (via
scala-cli --server=false hello.sc
), Scala-CLI first attempts to gohttps://repo1.maven.org/maven2
.Is it possible to disable going to Maven Central altogether?
Note that setting
did not help.
Also, why doesn't local cache kick in before trying Maven Central?
Beta Was this translation helpful? Give feedback.
All reactions