scalameta / sbt-native-image

Plugin to generate native-image binaries with sbt
251 stars 22 forks source link

Running `nativeImage` fails with download error #24

Open mrt181 opened 3 years ago

mrt181 commented 3 years ago

Describe the bug

I get this download error:

Error while downloading https://repo1.maven.org/maven2/io/get-coursier/coursier-env_2.12/2.0.3/coursier-env_2.12-2.0.3.jar: Resource temporarily unavailable (connect failed), ignoring it
Error while downloading https://repo1.maven.org/maven2/io/get-coursier/coursier-cache_2.12/2.0.3/coursier-cache_2.12-2.0.3.jar: Resource temporarily unavailable (connect failed), ignoring it
Error while downloading https://repo1.maven.org/maven2/io/get-coursier/coursier-cli_2.12/2.0.3/coursier-cli_2.12-2.0.3.jar: Resource temporarily unavailable (connect failed), ignoring it
[error] stack trace is suppressed; run last nativeImageCommand for the full output
[error] (nativeImageCommand) Nonzero exit value: 255

To Reproduce Steps to reproduce the behavior:

  1. Run command
    sbt:project> nativeImage

Expected behavior I would expect it to work and to download anything from the repositories specified in my .repositories file instead of repo1.maven.org

Additional context I am using this sbt script: https://github.com/coursier/sbt-extras I am using a .jvmopts file with proxy settings Dependency downloads from our own sonatype repo works.

Search terms

download proxy .repositories