Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Sbt install: You probably access the destination server through a proxy server that is not well configured

Tags:

sbt

Getting net.java.dev.jna jna 3.2.3 ... You probably access the destination server through a proxy server that is not well configured. You probably access the destination server through a proxy server that is not well configured. You probably access the destination server through a proxy server that is not well configured.

:: problems summary :: :::: WARNINGS Host repo.typesafe.com not found. url=http://repo.typesafe.com/typesafe/ivy-releases/net.java.dev.jna/jna/3.2.3/ivys/ivy.xml

Host repo1.maven.org not found. url=http://repo1.maven.org/maven2/net/java/dev/jna/jna/3.2.3/jna-3.2.3.pom

Host oss.sonatype.org not found. url=https://oss.sonatype.org/content/repositories/snapshots/net/java/dev/jna/jna/3.2.3/jna-3.2.3.pom

    module not found: net.java.dev.jna#jna;3.2.3

==== local: tried

  /root/.ivy2/local/net.java.dev.jna/jna/3.2.3/ivys/ivy.xml

==== typesafe-ivy-releases: tried

  http://repo.typesafe.com/typesafe/ivy-releases/net.java.dev.jna/jna/3.2.3/ivys/ivy.xml

==== Maven Central: tried

  http://repo1.maven.org/maven2/net/java/dev/jna/jna/3.2.3/jna-3.2.3.pom

==== sonatype-snapshots: tried

  https://oss.sonatype.org/content/repositories/snapshots/net/java/dev/jna/jna/3.2.3/jna-3.2.3.pom

    ::::::::::::::::::::::::::::::::::::::::::::::

    ::          UNRESOLVED DEPENDENCIES         ::

    ::::::::::::::::::::::::::::::::::::::::::::::

    :: net.java.dev.jna#jna;3.2.3: not found

    ::::::::::::::::::::::::::::::::::::::::::::::

:: USE VERBOSE OR DEBUG MESSAGE LEVEL FOR MORE DETAILS unresolved dependency: net.java.dev.jna#jna;3.2.3: not found Error during sbt execution: Error retrieving required libraries (see /root/.sbt/boot/update.log for complete log) Error: Could not retrieve jna 3.2.3

like image 462
user3733525 Avatar asked Jun 12 '14 09:06

user3733525


3 Answers

I think the answer is found in the log:

You probably access the destination server through a proxy server that is not well configured.

If you can use another proxy server you can set it in the sbt start script:

-Dhttp.proxyHost=<proxy> -Dhttp.proxyPort=<port>
like image 159
Christian Avatar answered Nov 10 '22 13:11

Christian


For me, this problem was caused by a temporary issue with our company's DNS server. I mention this only because this question is one of the top results when searching online for the above error message.

like image 35
Dylan Nissley Avatar answered Nov 10 '22 15:11

Dylan Nissley


In WINDOWS environment, simply add following line in the sbt/conf/sbtconfig.txt

-Dhttp.proxyHost=PROXYHOST 
-Dhttp.proxyPort=PROXYPORT 
-Dhttp.proxyUser=USERNAME 
-Dhttp.proxyPassword=XXXX

or the Https equivalent

-Dhttps.proxyHost=PROXYHOST 
-Dhttps.proxyPort=PROXYPORT 
-Dhttps.proxyUser=USERNAME 
-Dhttps.proxyPassword=XXXX

or simply set following variable on dos command prompt

set JAVA_OPTS=-Dhttp.proxyHost=XXXXXXX -Dhttp.proxyPort=YYYY -Dhttp.proxySet=true -Dhttps.proxyHost=XXXXXXX -Dhttps.proxyPort=YYYY -Dhttps.proxySet=true
like image 29
Girdhar Singh Rathore Avatar answered Nov 10 '22 13:11

Girdhar Singh Rathore