Proxy settings for SBT from IntelliJ - scala

I am trying to use Scala/Spark from IntelliJ in Windows 7, but it IntelliJ (and SBT command line) fails to download files. I am behind a proxy server.
[info] Updating {file:/D:/Users/user1/IdeaProjects/untitled17/project/}untitled17-build...
[warn] [FAILED ] org.apache.logging.log4j#log4j-core;2.8.1!log4j-core.jar(test-jar): typesafe-ivy-releases: unable to get resource for org.apache.logging.log4j#log4j-core;2.8.1: res=https://repo.typesafe.com/typesafe/ivy-releases/org.apache.logging.log4j/log4j-core/2.8.1/test-jars/log4j-core-tests.jar: java.io.IOException: Failed to authenticate with proxy (452ms)
[warn] [FAILED ] org.apache.logging.log4j#log4j-core;2.8.1!log4j-core.jar(test-jar): sbt-plugin-releases: unable to get resource for org.apache.logging.log4j#log4j-core;2.8.1: res=https://repo.scala-sbt.org/scalasbt/sbt-plugin-releases/org.apache.logging.log4j/log4j-core/2.8.1/test-jars/log4j-core-tests.jar: java.io.IOException: Failed to authenticate with proxy (157ms)
[warn] [FAILED ] org.apache.logging.log4j#log4j-core;2.8.1!log4j-core.jar(test-jar): public: unable to get resource for org/apache/logging/log4j#log4j-core;2.8.1: res=https://repo1.maven.org/maven2/org/apache/logging/log4j/log4j-core/2.8.1/log4j-core-2.8.1-tests.jar: java.io.IOException: Failed to authenticate with proxy (115ms)
[warn] Detected merged artifact: [FAILED ] org.apache.logging.log4j#log4j-core;2.8.1!log4j-core.jar(test-jar): (0ms).
[warn] ==== typesafe-ivy-releases: tried
[warn] ==== sbt-plugin-releases: tried
[warn] https://repo.scala-sbt.org/scalasbt/sbt-plugin-releases/org.apache.logging.log4j/log4j-core/2.8.1/test-jars/log4j-core-tests.jar
[warn] ==== local: tried
[warn] d:\Users\user1\.ivy2\local\org.apache.logging.log4j\log4j-core\2.8.1\test-jars\log4j-core-tests.jar
[warn] ==== public: tried
[warn] https://repo1.maven.org/maven2/org/apache/logging/log4j/log4j-core/2.8.1/log4j-core-2.8.1-tests.jar
[warn] ==== local-preloaded-ivy: tried
[warn] d:\Users\user1\.sbt\preloaded\org.apache.logging.log4j\log4j-core\2.8.1\test-jars\log4j-core-tests.jar
[warn] ==== local-preloaded: tried
[warn] file:/d:/Users/user1/.sbt/preloaded/org/apache/logging/log4j/log4j-core/2.8.1/log4j-core-2.8.1-tests.jar
[warn] ::::::::::::::::::::::::::::::::::::::::::::::
[warn] :: FAILED DOWNLOADS ::
[warn] :: ^ see resolution messages for details ^ ::
[warn] ::::::::::::::::::::::::::::::::::::::::::::::
[warn] :: org.apache.logging.log4j#log4j-core;2.8.1!log4j-core.jar(test-jar)
[warn] ::::::::::::::::::::::::::::::::::::::::::::::
[error] sbt.librarymanagement.ResolveException: download failed: org.apache.logging.log4j#log4j-core;2.8.1!log4j-core.jar(test-jar)
Similar problems were already reported here.
Already tried:
SBT versions 0.13.16, 1.0.3 and 1.1.1
setting proxy properties JAVA_OPTS, SBT_OPTS, sbtconfigtxt
-Dhttp.proxyHost=*
-Dhttp.proxyPort=*
-Dhttp.proxyUser=*
-Dhttp.proxyPassword=*
-Dhttps.proxyHost=*
-Dhttps.proxyPort=*
-Dhttps.proxyUser=*
-Dhttps.proxyPassword=*
without success
verified the issue in SBT:
d:\Users\user1>sbt.bat
[info] Loading project definition from D:\Users\user1\project
[info] Updating {file:/D:/Users/user1/project/}user1-build...
[warn] [FAILED ] org.apache.logging.log4j#log4j-core;2.8.1!log4j-core.jar(t
est-jar): typesafe-ivy-releases: unable to get resource for org.apache.logging.l
og4j#log4j-core;2.8.1: res=https://repo.typesafe.com/typesafe/ivy-releases/org.a
pache.logging.log4j/log4j-core/2.8.1/test-jars/log4j-core-tests.jar: java.io.IOE
xception: Failed to authenticate with proxy (353ms)
[warn] [FAILED ] org.apache.logging.log4j#log4j-core;2.8.1!log4j-core.jar(t
est-jar): sbt-plugin-releases: unable to get resource for org.apache.logging.log
4j#log4j-core;2.8.1: res=https://repo.scala-sbt.org/scalasbt/sbt-plugin-releases
/org.apache.logging.log4j/log4j-core/2.8.1/test-jars/log4j-core-tests.jar: java.
io.IOException: Failed to authenticate with proxy (8ms)
[warn] [FAILED ] org.apache.logging.log4j#log4j-core;2.8.1!log4j-core.jar(t
est-jar): public: unable to get resource for org/apache/logging/log4j#log4j-core
;2.8.1: res=https://repo1.maven.org/maven2/org/apache/logging/log4j/log4j-core/2
.8.1/log4j-core-2.8.1-tests.jar: java.io.IOException: Failed to authenticate wit
h proxy (8ms)
[warn] Detected merged artifact: [FAILED ] org.apache.logging.log4j#log4j-c
ore;2.8.1!log4j-core.jar(test-jar): (0ms).
[warn] ==== typesafe-ivy-releases: tried
[warn] ==== sbt-plugin-releases: tried
[warn] https://repo.scala-sbt.org/scalasbt/sbt-plugin-releases/org.apache.logg
ing.log4j/log4j-core/2.8.1/test-jars/log4j-core-tests.jar
[warn] ==== local: tried
[warn] d:\Users\user1\.ivy2\local\org.apache.logging.log4j\log4j-core\2.8.1\
test-jars\log4j-core-tests.jar
[warn] ==== public: tried
[warn] https://repo1.maven.org/maven2/org/apache/logging/log4j/log4j-core/2.8.
1/log4j-core-2.8.1-tests.jar
[warn] ==== local-preloaded-ivy: tried
[warn] d:\Users\user1\.sbt\preloaded\org.apache.logging.log4j\log4j-core\2.8
.1\test-jars\log4j-core-tests.jar
[warn] ==== local-preloaded: tried
[warn] file:/d:/Users/user1/.sbt/preloaded/org/apache/logging/log4j/log4j-co
re/2.8.1/log4j-core-2.8.1-tests.jar
[warn] ::::::::::::::::::::::::::::::::::::::::::::::
[warn] :: FAILED DOWNLOADS ::
[warn] :: ^ see resolution messages for details ^ ::
[warn] ::::::::::::::::::::::::::::::::::::::::::::::
[warn] :: org.apache.logging.log4j#log4j-core;2.8.1!log4j-core.jar(test-jar)
[warn] ::::::::::::::::::::::::::::::::::::::::::::::
[error] sbt.librarymanagement.ResolveException: download failed: org.apache.logg
ing.log4j#log4j-core;2.8.1!log4j-core.jar(test-jar)
[error] at sbt.internal.librarymanagement.IvyActions$.resolveAndRetrieve
(IvyActions.scala:331)
[error] at sbt.internal.librarymanagement.IvyActions$.$anonfun$updateEit
her$1(IvyActions.scala:205)
[error] at sbt.internal.librarymanagement.IvySbt$Module.$anonfun$withMod
ule$1(Ivy.scala:229)
[error] at sbt.internal.librarymanagement.IvySbt.$anonfun$withIvy$1(Ivy.
scala:190)
[error] at sbt.internal.librarymanagement.IvySbt.sbt$internal$libraryman
agement$IvySbt$$action$1(Ivy.scala:70)
[error] at sbt.internal.librarymanagement.IvySbt$$anon$3.call(Ivy.scala:
77)
[error] at xsbt.boot.Locks$GlobalLock.withChannel$1(Locks.scala:95)
[error] at xsbt.boot.Locks$GlobalLock.xsbt$boot$Locks$GlobalLock$$withCh
annelRetries$1(Locks.scala:80)
[error] at xsbt.boot.Locks$GlobalLock$$anonfun$withFileLock$1.apply(Lock
s.scala:99)
[error] at xsbt.boot.Using$.withResource(Using.scala:10)
[error] at xsbt.boot.Using$.apply(Using.scala:9)
[error] at xsbt.boot.Locks$GlobalLock.ignoringDeadlockAvoided(Locks.scal
a:60)
[error] at xsbt.boot.Locks$GlobalLock.withLock(Locks.scala:50)
[error] at xsbt.boot.Locks$.apply0(Locks.scala:31)
[error] at xsbt.boot.Locks$.apply(Locks.scala:28)
[error] at sbt.internal.librarymanagement.IvySbt.withDefaultLogger(Ivy.s
cala:77)
[error] at sbt.internal.librarymanagement.IvySbt.withIvy(Ivy.scala:185)
[error] at sbt.internal.librarymanagement.IvySbt.withIvy(Ivy.scala:182)
[error] at sbt.internal.librarymanagement.IvySbt$Module.withModule(Ivy.s
cala:228)
[error] at sbt.internal.librarymanagement.IvyActions$.updateEither(IvyAc
tions.scala:190)
[error] at sbt.librarymanagement.ivy.IvyDependencyResolution.update(IvyD
ependencyResolution.scala:20)
[error] at sbt.librarymanagement.DependencyResolution.update(DependencyR
esolution.scala:56)
[error] at sbt.internal.LibraryManagement$.resolve$1(LibraryManagement.s
cala:38)
[error] at sbt.internal.LibraryManagement$.$anonfun$cachedUpdate$12(Libr
aryManagement.scala:91)
[error] at sbt.util.Tracked$.$anonfun$lastOutput$1(Tracked.scala:68)
[error] at sbt.internal.LibraryManagement$.$anonfun$cachedUpdate$19(Libr
aryManagement.scala:104)
[error] at scala.util.control.Exception$Catch.apply(Exception.scala:224)
[error] at sbt.internal.LibraryManagement$.$anonfun$cachedUpdate$11(Libr
aryManagement.scala:104)
[error] at sbt.internal.LibraryManagement$.$anonfun$cachedUpdate$11$adap
ted(LibraryManagement.scala:87)
[error] at sbt.util.Tracked$.$anonfun$inputChanged$1(Tracked.scala:149)
[error] at sbt.internal.LibraryManagement$.cachedUpdate(LibraryManagemen
t.scala:118)
[error] at sbt.Classpaths$.$anonfun$updateTask$5(Defaults.scala:2353)
[error] at scala.Function1.$anonfun$compose$1(Function1.scala:44)
[error] at sbt.internal.util.$tilde$greater.$anonfun$$u2219$1(TypeFuncti
ons.scala:42)
[error] at sbt.std.Transform$$anon$4.work(System.scala:64)
[error] at sbt.Execute.$anonfun$submit$2(Execute.scala:257)
[error] at sbt.internal.util.ErrorHandling$.wideConvert(ErrorHandling.sc
ala:16)
[error] at sbt.Execute.work(Execute.scala:266)
[error] at sbt.Execute.$anonfun$submit$1(Execute.scala:257)
[error] at sbt.ConcurrentRestrictions$$anon$4.$anonfun$submitValid$1(Con
currentRestrictions.scala:167)
[error] at sbt.CompletionService$$anon$2.call(CompletionService.scala:32
)
[error] at java.util.concurrent.FutureTask.run(FutureTask.java:266)
[error] at java.util.concurrent.Executors$RunnableAdapter.call(Executors
.java:511)
[error] at java.util.concurrent.FutureTask.run(FutureTask.java:266)
[error] at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolE
xecutor.java:1149)
[error] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPool
Executor.java:624)
[error] at java.lang.Thread.run(Thread.java:748)
Project loading failed: (r)etry, (q)uit, (l)ast, or (i)gnore? [error] (*:update)
sbt.librarymanagement.ResolveException: download failed: org.apache.logging.log
4j#log4j-core;2.8.1!log4j-core.jar(test-jar)

If you're convinced that this is a proxy issue (and not, say, a temporary network connection problem), then here are your alternatives...
As you mention, you can define a JVM_OPTS environment variable specifying JVM proxy configuration options. Just to be clear, it's best if this is defined globally (via the Environment Variables dialog in the Windows System applet, since it looks like you're using Windows). If you're not sure how to do this, let me know. It's important to realize that your existing processes will not pick up changes made to global environment variables - the simplest solution is just to close and restart them.
Another alternative is to put the JVM options into a .jvmopts file in the root folder of your SBT project. (It's a good idea to put project-specific JVM options in this file, but not such a good idea to put machine- or site-specific options - such as proxy settings - into such a file. Clearly, if you need login credentials to configure your proxy, don't go this route!) If you pick this option, you need one setting on each line of the file. SBT will read any such settings each time it runs.
Either way, it's not clear from your question whether you have specified the JVM proxy settings correctly, since * is not a valid value for any of them. (If you've just used * to replace your actual settings, fair enough.) You'll know best what your proxy settings should be, but - if you have setup system proxy settings for your machine in Windows - often the simplest way to configure Java applications to use a proxy is to use the following setting:
JAVA_OPTS=-Djava.net.useSystemProxies=true
or create a .jvmopts file with these contents:
-Djava.net.useSystemProxies=true
If you haven't set up system proxy information, you'll need to be more explicit:
JAVA_OPTS=-Dhttp.proxyHost=my.proxyhost.com -Dhttp.proxyPort=80 -Dhttps.proxyHost=my.proxyhost.com -Dhttps.proxyPort=443
or, in .jvmopts:
-Dhttp.proxyHost=my.proxyhost.com
-Dhttp.proxyPort=80
-Dhttps.proxyHost=my.proxyhost.com
-Dhttps.proxyPort=443
Note also that if your proxy uses SOCKS instead of HTTP, then the relevant settings will be:
JAVA_OPTS=-DsocksProxyHost=my.proxyhost.com -DsocksProxyPort=8080
or, in .jvmopts:
-DsocksProxyHost=my.proxyhost.com
-DsocksProxyPort=8080
Obviously, you'll need to replace these host addresses and port numbers with those for your proxy. (If your domain authenticates you to the proxy server, you shouldn't need to specify username and password settings.)
That should ensure SBT works from the command line, and for the occasions that you execute SBT tasks from within IntelliJ (as a run configuration).
However, IntelliJ also has it's own proxy settings, which it uses when running SBT internally. You'll need to configure this too. You can access the IntelliJ proxy settings via the File/Settings... menu option, then looking under Appearance & Behavior/System Settings/HTTP Proxy (or type 'proxy' into the setting search box):
Let me know how you get on...

For me, proxy settings (no matter if they were set at Intellij, SBT.conf or environment variables), did not work.
​A couple of considerations that solved this issue (for me at least):
​
​- if you use SBT 0.13.16 (not newer that that)
​- set Use Auto Import
​
​Then, no "FAILED DOWNLOADS" messages appear.

Related

Scala sbt-assembly, unable to get resource for org/pantsbuild#jarjar;1.6.5

I need to build fat executable jar. Using IntelliJ IDEA, scala (2.12.4), sbt (1.1.1) on Windows behind the proxy. Also, using http://babun.github.io/.
Succeeded so far, except building fat jar using sbt-assembly.
created project/assembly.sbt
addSbtPlugin("com.eed3si9n" % "sbt-assembly" % "0.14.6")
created project/plugins.sbt
resolvers += Resolver.url("bintray-sbt-plugins", url("http://dl.bintray.com/sbt/sbt-plugin-releases"))(Resolver.ivyStylePatterns)
resolvers += Resolver.sonatypeRepo("releases")
It looks like it is able to grab com.eed3si9n:sbt-assembly:0.14.6, but probably fails with it's dependencies, errors are:
::::::::::::::::::::::::::::::::::::::::::::::
[warn] :: UNRESOLVED DEPENDENCIES ::
[warn] ::::::::::::::::::::::::::::::::::::::::::::::
[warn] :: org.pantsbuild#jarjar;1.6.5: Resolution failed several times for dependency: org.pantsbuild#jarjar;1.6.5 {compile=[default(compile)]}::
[warn] typesafe-ivy-releases: unable to get resource for org.pantsbuild#jarjar;1.6.5: res=https://repo.typesafe.com/typesafe/ivy-releases/org.pantsbuild/jarjar/1.6.5/ivys/ivy.xml: java.io.IOException: Failed to authenticate with proxy
[warn] sbt-plugin-releases: unable to get resource for org.pantsbuild#jarjar;1.6.5: res=https://repo.scala-sbt.org/scalasbt/sbt-plugin-releases/org.pantsbuild/jarjar/1.6.5/ivys/ivy.xml: java.io.IOException: Failed to authenticate with proxy
[warn] typesafe-ivy-releases: unable to get resource for org.pantsbuild#jarjar;1.6.5: res=https://repo.typesafe.com/typesafe/ivy-releases/org.pantsbuild/jarjar/1.6.5/jars/jarjar.jar: java.io.IOException: Failed to authenticate with proxy
[warn] sonatype-releases: unable to get resource for org/pantsbuild#jarjar;1.6.5: res=https://oss.sonatype.org/content/repositories/releases/org/pantsbuild/jarjar/1.6.5/jarjar-1.6.5.pom: java.io.IOException: Failed to authenticate with proxy
[warn] ::::::::::::::::::::::::::::::::::::::::::::::
[warn]
[warn] Note: Unresolved dependencies path:
[warn] org.pantsbuild:jarjar:1.6.5
[warn] +- com.eed3si9n:sbt-assembly:0.14.6 (scalaVersion=2.12, sbtVersion=1.0) (I:\Scala\SealJils\project\assembly.sbt#L1-2)
[warn] +- default:sealjils-build:0.1.0-SNAPSHOT (scalaVersion=2.12, sbtVersion=1.0)
[error] sbt.librarymanagement.ResolveException: unresolved dependency: org.pantsbuild#jarjar;1.6.5: Resolution failed several times for dependency: org.pantsbuild#jarjar;1.6.5 {compile=[default(compile)]}::
[error] typesafe-ivy-releases: unable to get resource for org.pantsbuild#jarjar;1.6.5: res=https://repo.typesafe.com/typesafe/ivy-releases/org.pantsbuild/jarjar/1.6.5/ivys/ivy.xml: java.io.IOException: Failed to authenticate with proxy
[error] sbt-plugin-releases: unable to get resource for org.pantsbuild#jarjar;1.6.5: res=https://repo.scala-sbt.org/scalasbt/sbt-plugin-releases/org.pantsbuild/jarjar/1.6.5/ivys/ivy.xml: java.io.IOException: Failed to authenticate with proxy
[error] typesafe-ivy-releases: unable to get resource for org.pantsbuild#jarjar;1.6.5: res=https://repo.typesafe.com/typesafe/ivy-releases/org.pantsbuild/jarjar/1.6.5/jars/jarjar.jar: java.io.IOException: Failed to authenticate with proxy
[error] sonatype-releases: unable to get resource for org/pantsbuild#jarjar;1.6.5: res=https://oss.sonatype.org/content/repositories/releases/org/pantsbuild/jarjar/1.6.5/jarjar-1.6.5.pom: java.io.IOException: Failed to authenticate with proxy
At the same time, I'm able to access following link via my Company browser, hence going via proxy:
https://oss.sonatype.org/content/repositories/releases/org/pantsbuild/jarjar/1.6.5/
Issue was resolved by downgrading sbt version to 0.13.17. Also, it was enough to just have following file included:
project/assembly.sbt
addSbtPlugin("com.eed3si9n" % "sbt-assembly" % "0.14.6")

Error importing scala play project into Intellij

I get the error below when trying to import a scala play project into Intellij.
I created a project using the following seed:
sbt new playframework/play-scala-seed.g8
It compiles and runs fine from the command line.
However, when I tried to import the project into Intellij, the IDE barfed with the following:
Error while importing sbt project:
[info] Loading settings from plugins.sbt,scaffold.sbt ...
[info] Loading project definition from /home/x/IdeaProjects/p3/u/project
[info] Loading settings from build.sbt ...
[info] Set current project to user (in build file:/home/x/IdeaProjects/p3/u/)
[info] sbt server started at 127.0.0.1:4315
[user] $
[info] Defining */*:sbtStructureOptions, */*:sbtStructureOutputFile, *:shellPrompt
[info] The new values will be used by no settings or tasks.
[info] Reapplying settings...
[info] Set current project to user (in build file:/home/x/IdeaProjects/p3/u/)
[info] Applying State transformations org.jetbrains.sbt.CreateTasks from /home/x/.IdeaIC2017.3/config/plugins/Scala/launcher/sbt-structure-1.0.jar
[info] Reapplying settings...
[info] Set current project to user (in build file:/home/x/IdeaProjects/p3/user/)
[warn] Detected merged artifact: [FAILED ] com.typesafe.sbt#sbt-native-packager;1.3.2!sbt-native-packager.jar(src): (0ms).
[warn] Detected merged artifact: [FAILED ] com.typesafe.sbt#sbt-web;1.4.3!sbt-web.jar(doc): (0ms).
[warn] ==== local: tried
[warn] ==== local: tried
[warn] /home/x/.ivy2/local/com.typesafe.sbt/sbt-web/scala_2.12/sbt_1.0/1.4.3/docs/sbt-web-javadoc.jar
[warn] /home/x/.ivy2/local/com.typesafe.sbt/sbt-native-packager/scala_2.12/sbt_1.0/1.3.2/srcs/sbt-native-packager-sources.jar
[warn] ==== public: tried
[warn] ==== public: tried
[warn] https://repo1.maven.org/maven2/com/typesafe/sbt/sbt-web_2.12_1.0/1.4.3/sbt-web-1.4.3-javadoc.jar
[warn] https://repo1.maven.org/maven2/com/typesafe/sbt/sbt-native-packager_2.12_1.0/1.3.2/sbt-native-packager-1.3.2-sources.jar
[warn] ==== local-preloaded-ivy: tried
[warn] ==== local-preloaded-ivy: tried
[warn] /home/x/.sbt/preloaded/com.typesafe.sbt/sbt-web/1.4.3/docs/sbt-web-javadoc.jar
[warn] /home/x/.sbt/preloaded/com.typesafe.sbt/sbt-native-packager/1.3.2/srcs/sbt-native-packager-sources.jar
[warn] ==== local-preloaded: tried
[warn] ==== local-preloaded: tried
[warn] file:////home/x/.sbt/preloaded/com/typesafe/sbt/sbt-web_2.12_1.0/1.4.3/sbt-web-1.4.3-javadoc.jar
[warn] file:////home/x/.sbt/preloaded/com/typesafe/sbt/sbt-native-packager_2.12_1.0/1.3.2/sbt-native-packager-1.3.2-sources.jar
[warn] Detected merged artifact: [FAILED ] com.typesafe.sbt#sbt-web;1.4.3!sbt-web.jar(src): (0ms).
[warn] Detected merged artifact: [FAILED ] com.typesafe.sbt#sbt-native-packager;1.3.2!sbt-native-packager.jar(doc): (0ms).
[warn] ==== local: tried
[warn] ==== local: tried
[warn] /home/x/.ivy2/local/com.typesafe.sbt/sbt-web/scala_2.12/sbt_1.0/1.4.3/srcs/sbt-web-sources.jar
[warn] ==== public: tried
[warn] /home/x/.ivy2/local/com.typesafe.sbt/sbt-native-packager/scala_2.12/sbt_1.0/1.3.2/docs/sbt-native-packager-javadoc.jar
[warn] https://repo1.maven.org/maven2/com/typesafe/sbt/sbt-web_2.12_1.0/1.4.3/sbt-web-1.4.3-sources.jar
[warn] ==== public: tried
[warn] ==== local-preloaded-ivy: tried
[warn] https://repo1.maven.org/maven2/com/typesafe/sbt/sbt-native-packager_2.12_1.0/1.3.2/sbt-native-packager-1.3.2-javadoc.jar
[warn] /home/x/.sbt/preloaded/com.typesafe.sbt/sbt-web/1.4.3/srcs/sbt-web-sources.jar
[warn] ==== local-preloaded-ivy: tried
[warn] ==== local-preloaded: tried
[warn] /home/x/.sbt/preloaded/com.typesafe.sbt/sbt-native-packager/1.3.2/docs/sbt-native-packager-javadoc.jar
[warn] file:////home/x/.sbt/preloaded/com/typesafe/sbt/sbt-web_2.12_1.0/1.4.3/sbt-web-1.4.3-sources.jar
[warn] ==== local-preloaded: tried
[warn] file:////home/x/.sbt/preloaded/com/typesafe/sbt/sbt-native-packager_2.12_1.0/1.3.2/sbt-native-packager-1.3.2-javadoc.jar
[warn] ::::::::::::::::::::::::::::::::::::::::::::::
[warn] :: FAILED DOWNLOADS ::
[warn] :: ^ see resolution messages for details ^ ::
[warn] ::::::::::::::::::::::::::::::::::::::::::::::
[warn] :: com.typesafe.sbt#sbt-native-packager;1.3.2!sbt-native-packager.jar(src)
[warn] :: com.typesafe.sbt#sbt-native-packager;1.3.2!sbt-native-packager.jar(doc)
[warn] :: com.typesafe.sbt#sbt-web;1.4.3!sbt-web.jar(doc)
[warn] :: com.typesafe.sbt#sbt-web;1.4.3!sbt-web.jar(src)
[warn] ::::::::::::::::::::::::::::::::::::::::::::::
[error] sbt.librarymanagement.ResolveException: download failed: com.typesafe.sbt#sbt-native-packager;1.3.2!sbt-native-packager.jar(src)
[error] download failed: com.typesafe.sbt#sbt-native-packager;1.3.2!sbt-native-packager.jar(doc)
[error] download failed: com.typesafe.sbt#sbt-web;1.4.3!sbt-web.jar(doc)
[error] download failed: com.typesafe.sbt#sbt-web;1.4.3!sbt-web.jar(src)
[error] at sbt.internal.librarymanagement.IvyActions$.resolveAndRetrieve(IvyActions.scala:331)
[error] at sbt.internal.librarymanagement.IvyActions$.$anonfun$updateEither$1(IvyActions.scala:205)
[error] at sbt.internal.librarymanagement.IvySbt$Module.$anonfun$withModule$1(Ivy.scala:243)
[error] at sbt.internal.librarymanagement.IvySbt.$anonfun$withIvy$1(Ivy.scala:204)
[error] at sbt.internal.librarymanagement.IvySbt.sbt$internal$librarymanagement$IvySbt$$action$1(Ivy.scala:70)
[error] at sbt.internal.librarymanagement.IvySbt$$anon$3.call(Ivy.scala:77)
[error] at xsbt.boot.Locks$GlobalLock.withChannel$1(Locks.scala:93)
[error] at xsbt.boot.Locks$GlobalLock.xsbt$boot$Locks$GlobalLock$$withChannelRetries$1(Locks.scala:78)
[error] at xsbt.boot.Locks$GlobalLock$$anonfun$withFileLock$1.apply(Locks.scala:97)
[error] at xsbt.boot.Using$.withResource(Using.scala:10)
[error] at xsbt.boot.Using$.apply(Using.scala:9)
[error] at xsbt.boot.Locks$GlobalLock.ignoringDeadlockAvoided(Locks.scala:58)
[error] at xsbt.boot.Locks$GlobalLock.withLock(Locks.scala:48)
[error] at xsbt.boot.Locks$.apply0(Locks.scala:31)
[error] at xsbt.boot.Locks$.apply(Locks.scala:28)
[error] at sbt.internal.librarymanagement.IvySbt.withDefaultLogger(Ivy.scala:77)
[error] at sbt.internal.librarymanagement.IvySbt.withIvy(Ivy.scala:199)
[error] at sbt.internal.librarymanagement.IvySbt.withIvy(Ivy.scala:196)
[error] at sbt.internal.librarymanagement.IvySbt$Module.withModule(Ivy.scala:242)
[error] at sbt.internal.librarymanagement.IvyActions$.updateEither(IvyActions.scala:190)
[error] at sbt.librarymanagement.ivy.IvyDependencyResolution.update(IvyDependencyResolution.scala:20)
[error] at sbt.librarymanagement.DependencyResolution.update(DependencyResolution.scala:56)
[error] at sbt.internal.LibraryManagement$.transitiveScratch(LibraryManagement.scala:135)
[error] at sbt.Classpaths$.$anonfun$sbtClassifiersTasks$12(Defaults.scala:2178)
[error] at sbt.Classpaths$$anon$4.call(Defaults.scala:2256)
[error] at sbt.Classpaths$$anon$4.call(Defaults.scala:2249)
[error] at xsbt.boot.Locks$GlobalLock.withChannel$1(Locks.scala:93)
[error] at xsbt.boot.Locks$GlobalLock.xsbt$boot$Locks$GlobalLock$$withChannelRetries$1(Locks.scala:78)
[error] at xsbt.boot.Locks$GlobalLock$$anonfun$withFileLock$1.apply(Locks.scala:97)
[error] at xsbt.boot.Using$.withResource(Using.scala:10)
[error] at xsbt.boot.Using$.apply(Using.scala:9)
[error] at xsbt.boot.Locks$GlobalLock.ignoringDeadlockAvoided(Locks.scala:58)
[error] at xsbt.boot.Locks$GlobalLock.withLock(Locks.scala:48)
[error] at xsbt.boot.Locks$.apply0(Locks.scala:31)
[error] at xsbt.boot.Locks$.apply(Locks.scala:28)
[error] at sbt.Classpaths$.withExcludes(Defaults.scala:2249)
[error] at sbt.Classpaths$.$anonfun$sbtClassifiersTasks$10(Defaults.scala:2165)
[error] at scala.Function1.$anonfun$compose$1(Function1.scala:44)
[error] at sbt.internal.util.$tilde$greater.$anonfun$$u2219$1(TypeFunctions.scala:42)
[error] at sbt.std.Transform$$anon$4.work(System.scala:64)
[error] at sbt.Execute.$anonfun$submit$2(Execute.scala:257)
[error] at sbt.internal.util.ErrorHandling$.wideConvert(ErrorHandling.scala:16)
[error] at sbt.Execute.work(Execute.scala:266)
[error] at sbt.Execute.$anonfun$submit$1(Execute.scala:257)
[error] at sbt.ConcurrentRestrictions$$anon$4.$anonfun$submitValid$1(ConcurrentRestrictions.scala:167)
[error] at sbt.CompletionService$$anon$2.call(CompletionService.scala:32)
[error] at java.util.concurrent.FutureTask.run(FutureTask.java:266)
[error] at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
[error] at java.util.concurrent.FutureTask.run(FutureTask.java:266)
[error] at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
[error] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
[error] at java.lang.Thread.run(Thread.java:748)
[error] (*:updateSbtClassifiers) sbt.librarymanagement.ResolveException: download failed: com.typesafe.sbt#sbt-native-packager;1.3.2!sbt-native-packager.jar(src)
[error] download failed: com.typesafe.sbt#sbt-native-packager;1.3.2!sbt-native-packager.jar(doc)
[error] download failed: com.typesafe.sbt#sbt-web;1.4.3!sbt-web.jar(doc)
[error] download failed: com.typesafe.sbt#sbt-web;1.4.3!sbt-web.jar(src)
[error] Total time: 8 s, completed 26-Jan-2018 22:39:24
[INFO] [01/26/2018 22:39:24.162] [Thread-4] [CoordinatedShutdown(akka://sbt-web)] Starting coordinated shutdown from JVM shutdown hook
Any ideas how to resolve this? Using this version of Intellij on Arch Linux
IntelliJ IDEA Community Edition (intellij-idea-community-edition) 2:2017.3.3-1
Added this and it works now:
resolvers += Resolver.sbtPluginRepo("releases")
As per these instructions:
https://github.com/sbt/sbt-native-packager/pull/1066
https://github.com/sbt/sbt-native-packager/issues/1063

Error while importing SBT project

The below is the Log that i can see when building the SBT project.What is the below trying to say !
I'm using IntelliJ IDE and Scala 2.12 and SBT 1.0.3 to build the project.
I have verified the IDE Proxy settings ,its setup and works fine for other Build tools.
Is something missing my SBT installation ?? I tried accessing the failing links in the log and they too are throwing up with errors.
"C:\Program Files\Java\jdk1.8.0_131\bin\java" -agentlib:jdwp=transport=dt_socket,address=12805,suspend=n,server=y -server -Xmx768M -XX:MaxPermSize=384M -Dhttp.proxyHost=THISISMYPROXYADDRESS -Dhttp.proxyPort=8090 -Didea.runid=2017.2 -Dfile.encoding=windows-1252 -classpath "C:\Program Files\JetBrains\IntelliJ IDEA Community Edition 2017.2.5\lib\idea_rt.jar" -jar C:\Users\USER\.IdeaIC2017.2\config\plugins\Scala\launcher\sbt-launch.jar idea-shell
Java HotSpot(TM) 64-Bit Server VM warning: ignoring option MaxPermSize=384M; sup
port was removed in 8.0
Picked up _JAVA_OPTIONS: -Djava.net.preferIPv4Stack=true
Listening for transport dt_socket at address: 12805
[info] Loading settings from idea.sbt ...
[info] Loading global plugins from C:\Users\USER\.sbt\1.0\plugins
[info] Updating {file:/C:/Users/USER/.sbt/1.0/plugins/}global-plugins...
[warn] [FAILED ] org.apache.logging.log4j#log4j-core;2.8.1!log4j-core.jar(test-jar): typesafe-ivy-releases: unable to get resource for org.apache.logging.log4j#log4j-core;2.8.1: res=https://repo.typesafe.com/typesafe/ivy-releases/org.apache.logging.log4j/log4j-core/2.8.1/test-jars/log4j-core-tests.jar: java.net.ConnectException: Failed to connect to repo.typesafe.com/34.206.162.65:443 (4182ms)
[warn] [FAILED ] org.apache.logging.log4j#log4j-core;2.8.1!log4j-core.jar(test-jar): sbt-plugin-releases: unable to get resource for org.apache.logging.log4j#log4j-core;2.8.1: res=https://repo.scala-sbt.org/scalasbt/sbt-plugin-releases/org.apache.logging.log4j/log4j-core/2.8.1/test-jars/log4j-core-tests.jar: java.net.ConnectException: Failed to connect to repo.scala-sbt.org/52.201.87.92:443 (4115ms)
[warn] [FAILED ] org.apache.logging.log4j#log4j-core;2.8.1!log4j-core.jar(test-jar): public: unable to get resource for org/apache/logging/log4j#log4j-core;2.8.1: res=https://repo1.maven.org/maven2/org/apache/logging/log4j/log4j-core/2.8.1/log4j-core-2.8.1-tests.jar: java.net.ConnectException: Failed to connect to repo1.maven.org/151.101.16.209:443 (1036ms)
[warn] Detected merged artifact: [FAILED ] org.apache.logging.log4j#log4j-core;2.8.1!log4j-core.jar(test-jar): (0ms).
[warn] ==== typesafe-ivy-releases: tried
[warn] ==== sbt-plugin-releases: tried
[warn] https://repo.scala-sbt.org/scalasbt/sbt-plugin-releases/org.apache.logging.log4j/log4j-core/2.8.1/test-jars/log4j-core-tests.jar
[warn] ==== local: tried
[warn] C:\Users\USER\.ivy2\local\org.apache.logging.log4j\log4j-core\2.8.1\test-jars\log4j-core-tests.jar
[warn] ==== public: tried
[warn] https://repo1.maven.org/maven2/org/apache/logging/log4j/log4j-core/2.8.1/log4j-core-2.8.1-tests.jar
[warn] ==== local-preloaded-ivy: tried
[warn] C:\Users\USER\.sbt\preloaded\org.apache.logging.log4j\log4j-core\2.8.1\test-jars\log4j-core-tests.jar
[warn] ==== local-preloaded: tried
[warn] file:/C:/Users/USER/.sbt/preloaded/org/apache/logging/log4j/log4j-core/2.8.1/log4j-core-2.8.1-tests.jar
[warn] ::::::::::::::::::::::::::::::::::::::::::::::
[warn] :: UNRESOLVED DEPENDENCIES ::
[warn] ::::::::::::::::::::::::::::::::::::::::::::::
[warn] :: org.jetbrains#sbt-structure-extractor;2017.2: Resolution failed several times for dependency: org.jetbrains#sbt-structure-extractor;2017.2 {compile=[default(compile)]}::
[warn] typesafe-ivy-releases: unable to get resource for org.jetbrains#sbt-structure-extractor;2017.2: res=https://repo.typesafe.com/typesafe/ivy-releases/org.jetbrains/sbt-structure-extractor/scala_2.12/sbt_1.0/2017.2/ivys/ivy.xml: java.net.ConnectException: Failed to connect to repo.typesafe.com/34.206.162.65:443
[warn] sbt-plugin-releases: unable to get resource for org.jetbrains#sbt-structure-extractor;2017.2: res=https://repo.scala-sbt.org/scalasbt/sbt-plugin-releases/org.jetbrains/sbt-structure-extractor/scala_2.12/sbt_1.0/2017.2/ivys/ivy.xml: java.net.ConnectException: Failed to connect to repo.scala-sbt.org/52.201.87.92:443
[warn] public: unable to get resource for org/jetbrains#sbt-structure-extractor;2017.2: res=https://repo1.maven.org/maven2/org/jetbrains/sbt-structure-extractor_2.12_1.0/2017.2/sbt-structure-extractor-2017.2.pom: java.net.ConnectException: Failed to connect to repo1.maven.org/151.101.16.209:443
[warn] :: org.jetbrains#sbt-idea-shell;2017.2: Resolution failed several times for dependency: org.jetbrains#sbt-idea-shell;2017.2 {compile=[default(compile)]}::
[warn] typesafe-ivy-releases: unable to get resource for org.jetbrains#sbt-idea-shell;2017.2: res=https://repo.typesafe.com/typesafe/ivy-releases/org.jetbrains/sbt-idea-shell/scala_2.12/sbt_1.0/2017.2/ivys/ivy.xml: java.net.ConnectException: Failed to connect to repo.typesafe.com/34.206.162.65:443
[warn] sbt-plugin-releases: unable to get resource for org.jetbrains#sbt-idea-shell;2017.2: res=https://repo.scala-sbt.org/scalasbt/sbt-plugin-releases/org.jetbrains/sbt-idea-shell/scala_2.12/sbt_1.0/2017.2/ivys/ivy.xml: java.net.ConnectException: Failed to connect to repo.scala-sbt.org/52.201.87.92:443
[warn] public: unable to get resource for org/jetbrains#sbt-idea-shell;2017.2: res=https://repo1.maven.org/maven2/org/jetbrains/sbt-idea-shell_2.12_1.0/2017.2/sbt-idea-shell-2017.2.pom: java.net.ConnectException: Failed to connect to repo1.maven.org/151.101.16.209:443
[warn] ::::::::::::::::::::::::::::::::::::::::::::::
[warn] ::::::::::::::::::::::::::::::::::::::::::::::
[warn] :: FAILED DOWNLOADS ::
[warn] :: ^ see resolution messages for details ^ ::
[warn] ::::::::::::::::::::::::::::::::::::::::::::::
[warn] :: org.apache.logging.log4j#log4j-core;2.8.1!log4j-core.jar(test-jar)
[warn] ::::::::::::::::::::::::::::::::::::::::::::::
[warn]
[warn] Note: Some unresolved dependencies have extra attributes. Check that these dependencies exist with the requested attributes.
[warn] org.jetbrains:sbt-structure-extractor:2017.2 (scalaVersion=2.12, sbtVersion=1.0)
[warn] org.jetbrains:sbt-idea-shell:2017.2 (scalaVersion=2.12, sbtVersion=1.0)
[warn]
[warn] Note: Unresolved dependencies path:
[warn] org.jetbrains:sbt-structure-extractor:2017.2 (scalaVersion=2.12, sbtVersion=1.0) (C:\Users\USER\.sbt\1.0\plugins\idea.sbt#L4-8)
[warn] +- org.scala-sbt:global-plugins:0.0 (scalaVersion=2.12, sbtVersion=1.0)
[warn] org.jetbrains:sbt-idea-shell:2017.2 (scalaVersion=2.12, sbtVersion=1.0) (C:\Users\USER\.sbt\1.0\plugins\idea.sbt#L4-8)
[warn] +- org.scala-sbt:global-plugins:0.0 (scalaVersion=2.12, sbtVersion=1.0)
[error] sbt.librarymanagement.ResolveException: unresolved dependency: org.jetbrains#sbt-structure-extractor;2017.2: Resolution failed several times for dependency: org.jetbrains#sbt-structure-extractor;2017.2 {compile=[default(compile)]}::
[error] typesafe-ivy-releases: unable to get resource for org.jetbrains#sbt-structure-extractor;2017.2: res=https://repo.typesafe.com/typesafe/ivy-releases/org.jetbrains/sbt-structure-extractor/scala_2.12/sbt_1.0/2017.2/ivys/ivy.xml: java.net.ConnectException: Failed to connect to repo.typesafe.com/34.206.162.65:443
[error] sbt-plugin-releases: unable to get resource for org.jetbrains#sbt-structure-extractor;2017.2: res=https://repo.scala-sbt.org/scalasbt/sbt-plugin-releases/org.jetbrains/sbt-structure-extractor/scala_2.12/sbt_1.0/2017.2/ivys/ivy.xml: java.net.ConnectException: Failed to connect to repo.scala-sbt.org/52.201.87.92:443
[error] public: unable to get resource for org/jetbrains#sbt-structure-extractor;2017.2: res=https://repo1.maven.org/maven2/org/jetbrains/sbt-structure-extractor_2.12_1.0/2017.2/sbt-structure-extractor-2017.2.pom: java.net.ConnectException: Failed to connect to repo1.maven.org/151.101.16.209:443
[error]
[error] unresolved dependency: org.jetbrains#sbt-idea-shell;2017.2: Resolution failed several times for dependency: org.jetbrains#sbt-idea-shell;2017.2 {compile=[default(compile)]}::
[error] typesafe-ivy-releases: unable to get resource for org.jetbrains#sbt-idea-shell;2017.2: res=https://repo.typesafe.com/typesafe/ivy-releases/org.jetbrains/sbt-idea-shell/scala_2.12/sbt_1.0/2017.2/ivys/ivy.xml: java.net.ConnectException: Failed to connect to repo.typesafe.com/34.206.162.65:443
[error] sbt-plugin-releases: unable to get resource for org.jetbrains#sbt-idea-shell;2017.2: res=https://repo.scala-sbt.org/scalasbt/sbt-plugin-releases/org.jetbrains/sbt-idea-shell/scala_2.12/sbt_1.0/2017.2/ivys/ivy.xml: java.net.ConnectException: Failed to connect to repo.scala-sbt.org/52.201.87.92:443
[error] public: unable to get resource for org/jetbrains#sbt-idea-shell;2017.2: res=https://repo1.maven.org/maven2/org/jetbrains/sbt-idea-shell_2.12_1.0/2017.2/sbt-idea-shell-2017.2.pom: java.net.ConnectException: Failed to connect to repo1.maven.org/151.101.16.209:443
[error]
[error] download failed: org.apache.logging.log4j#log4j-core;2.8.1!log4j-core.jar(test-jar)
[error] at sbt.internal.librarymanagement.IvyActions$.resolveAndRetrieve(IvyActions.scala:331)
[error] at sbt.internal.librarymanagement.IvyActions$.$anonfun$updateEither$1(IvyActions.scala:205)
[error] at sbt.internal.librarymanagement.IvySbt$Module.$anonfun$withModule$1(Ivy.scala:229)
[error] at sbt.internal.librarymanagement.IvySbt.$anonfun$withIvy$1(Ivy.scala:190)
[error] at sbt.internal.librarymanagement.IvySbt.sbt$internal$librarymanagement$IvySbt$$action$1(Ivy.scala:70)
[error] at sbt.internal.librarymanagement.IvySbt$$anon$3.call(Ivy.scala:77)
[error] at xsbt.boot.Locks$GlobalLock.withChannel$1(Locks.scala:93)
[error] at xsbt.boot.Locks$GlobalLock.xsbt$boot$Locks$GlobalLock$$withChannelRetries$1(Locks.scala:78)
[error] at xsbt.boot.Locks$GlobalLock$$anonfun$withFileLock$1.apply(Locks.scala:97)
[error] at xsbt.boot.Using$.withResource(Using.scala:10)
[error] at xsbt.boot.Using$.apply(Using.scala:9)
[error] at xsbt.boot.Locks$GlobalLock.ignoringDeadlockAvoided(Locks.scala:58)
[error] at xsbt.boot.Locks$GlobalLock.withLock(Locks.scala:48)
[error] at xsbt.boot.Locks$.apply0(Locks.scala:31)
[error] at xsbt.boot.Locks$.apply(Locks.scala:28)
[error] at sbt.internal.librarymanagement.IvySbt.withDefaultLogger(Ivy.scala:77)
[error] at sbt.internal.librarymanagement.IvySbt.withIvy(Ivy.scala:185)
[error] at sbt.internal.librarymanagement.IvySbt.withIvy(Ivy.scala:182)
[error] at sbt.internal.librarymanagement.IvySbt$Module.withModule(Ivy.scala:228)
[error] at sbt.internal.librarymanagement.IvyActions$.updateEither(IvyActions.scala:190)
[error] at sbt.librarymanagement.ivy.IvyDependencyResolution.update(IvyDependencyResolution.scala:20)
[error] at sbt.librarymanagement.DependencyResolution.update(DependencyResolution.scala:56)
[error] at sbt.internal.LibraryManagement$.resolve$1(LibraryManagement.scala:38)
[error] at sbt.internal.LibraryManagement$.$anonfun$cachedUpdate$12(LibraryManagement.scala:91)
[error] at sbt.util.Tracked$.$anonfun$lastOutput$1(Tracked.scala:68)
[error] at sbt.internal.LibraryManagement$.$anonfun$cachedUpdate$19(LibraryManagement.scala:104)
[error] at scala.util.control.Exception$Catch.apply(Exception.scala:224)
[error] at sbt.internal.LibraryManagement$.$anonfun$cachedUpdate$11(LibraryManagement.scala:104)
[error] at sbt.internal.LibraryManagement$.$anonfun$cachedUpdate$11$adapted(LibraryManagement.scala:87)
[error] at sbt.util.Tracked$.$anonfun$inputChanged$1(Tracked.scala:149)
[error] at sbt.internal.LibraryManagement$.cachedUpdate(LibraryManagement.scala:118)
[error] at sbt.Classpaths$.$anonfun$updateTask$5(Defaults.scala:2353)
[error] at scala.Function1.$anonfun$compose$1(Function1.scala:44)
[error] at sbt.internal.util.$tilde$greater.$anonfun$$u2219$1(TypeFunctions.scala:42)
[error] at sbt.std.Transform$$anon$4.work(System.scala:64)
[error] at sbt.Execute.$anonfun$submit$2(Execute.scala:257)
[error] at sbt.internal.util.ErrorHandling$.wideConvert(ErrorHandling.scala:16)
[error] at sbt.Execute.work(Execute.scala:266)
[error] at sbt.Execute.$anonfun$submit$1(Execute.scala:257)
[error] at sbt.ConcurrentRestrictions$$anon$4.$anonfun$submitValid$1(ConcurrentRestrictions.scala:167)
[error] at sbt.CompletionService$$anon$2.call(CompletionService.scala:32)
[error] at java.util.concurrent.FutureTask.run(FutureTask.java:266)
[error] at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
[error] at java.util.concurrent.FutureTask.run(FutureTask.java:266)
[error] at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
[error] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
[error] at java.lang.Thread.run(Thread.java:748)
Project loading failed: (r)etry, (q)uit, (l)ast, or (i)gnore? [error] (*:update) sbt.librarymanagement.ResolveException: unresolved dependency: org.jetbrains#sbt-structure-extractor;2017.2: Resolution failed several times for dependency: org.jetbrains#sbt-structure-extractor;2017.2 {compile=[default(compile)]}::
[error] typesafe-ivy-releases: unable to get resource for org.jetbrains#sbt-structure-extractor;2017.2: res=https://repo.typesafe.com/typesafe/ivy-releases/org.jetbrains/sbt-structure-extractor/scala_2.12/sbt_1.0/2017.2/ivys/ivy.xml: java.net.ConnectException: Failed to connect to repo.typesafe.com/34.206.162.65:443
[error] sbt-plugin-releases: unable to get resource for org.jetbrains#sbt-structure-extractor;2017.2: res=https://repo.scala-sbt.org/scalasbt/sbt-plugin-releases/org.jetbrains/sbt-structure-extractor/scala_2.12/sbt_1.0/2017.2/ivys/ivy.xml: java.net.ConnectException: Failed to connect to repo.scala-sbt.org/52.201.87.92:443
[error] public: unable to get resource for org/jetbrains#sbt-structure-extractor;2017.2: res=https://repo1.maven.org/maven2/org/jetbrains/sbt-structure-extractor_2.12_1.0/2017.2/sbt-structure-extractor-2017.2.pom: java.net.ConnectException: Failed to connect to repo1.maven.org/151.101.16.209:443
[error]
[error] unresolved dependency: org.jetbrains#sbt-idea-shell;2017.2: Resolution failed several times for dependency: org.jetbrains#sbt-idea-shell;2017.2 {compile=[default(compile)]}::
[error] typesafe-ivy-releases: unable to get resource for org.jetbrains#sbt-idea-shell;2017.2: res=https://repo.typesafe.com/typesafe/ivy-releases/org.jetbrains/sbt-idea-shell/scala_2.12/sbt_1.0/2017.2/ivys/ivy.xml: java.net.ConnectException: Failed to connect to repo.typesafe.com/34.206.162.65:443
[error] sbt-plugin-releases: unable to get resource for org.jetbrains#sbt-idea-shell;2017.2: res=https://repo.scala-sbt.org/scalasbt/sbt-plugin-releases/org.jetbrains/sbt-idea-shell/scala_2.12/sbt_1.0/2017.2/ivys/ivy.xml: java.net.ConnectException: Failed to connect to repo.scala-sbt.org/52.201.87.92:443
[error] public: unable to get resource for org/jetbrains#sbt-idea-shell;2017.2: res=https://repo1.maven.org/maven2/org/jetbrains/sbt-idea-shell_2.12_1.0/2017.2/sbt-idea-shell-2017.2.pom: java.net.ConnectException: Failed to connect to repo1.maven.org/151.101.16.209:443
[error]
[error] download failed: org.apache.logging.log4j#log4j-core;2.8.1!log4j-core.jar(test-jar)
Update : Below is the file content
build.sbt
name := "untitled3"
version := "0.1"
scalaVersion := "2.12.4"
Update -- JAVA_OPTS setting
SET "JAVA_OPTS=-Dhttp.proxyHost=sproxy.wwcorp.ad.com -Dhttp.proxyPort=8090 -Dhttps.proxyHost=sproxy.wwcorp.ad.com -Dhttps.proxyPort=8090"
Update -- New Error log
[info] Loading settings from idea.sbt ...
[info] Loading global plugins from C:\Users\USER\.sbt\1.0\plugins
[info] Updating {file:/C:/Users/USER/.sbt/1.0/plugins/}global-plugins...
[warn] [FAILED ] org.apache.logging.log4j#log4j-core;2.8.1!log4j-core.jar(test-jar): typesafe-ivy-releases: unable to get resource for org.apache.logging.log4j#log4j-core;2.8.1: res=https://repo.typesafe.com/typesafe/ivy-releases/org.apache.logging.log4j/log4j-core/2.8.1/test-jars/log4j-core-tests.jar: java.net.ConnectException: Failed to connect to repo.typesafe.com/52.201.87.92:443 (5372ms)
[warn] [FAILED ] org.apache.logging.log4j#log4j-core;2.8.1!log4j-core.jar(test-jar): sbt-plugin-releases: unable to get resource for org.apache.logging.log4j#log4j-core;2.8.1: res=https://repo.scala-sbt.org/scalasbt/sbt-plugin-releases/org.apache.logging.log4j/log4j-core/2.8.1/test-jars/log4j-core-tests.jar: java.net.ConnectException: Failed to connect to repo.scala-sbt.org/34.206.162.65:443 (4118ms)
[warn] [FAILED ] org.apache.logging.log4j#log4j-core;2.8.1!log4j-core.jar(test-jar): public: unable to get resource for org/apache/logging/log4j#log4j-core;2.8.1: res=https://repo1.maven.org/maven2/org/apache/logging/log4j/log4j-core/2.8.1/log4j-core-2.8.1-tests.jar: java.net.ConnectException: Failed to connect to repo1.maven.org/151.101.16.209:443 (1071ms)
[warn] Detected merged artifact: [FAILED ] org.apache.logging.log4j#log4j-core;2.8.1!log4j-core.jar(test-jar): (0ms).
[warn] ==== typesafe-ivy-releases: tried
[warn] ==== sbt-plugin-releases: tried
[warn] https://repo.scala-sbt.org/scalasbt/sbt-plugin-releases/org.apache.logging.log4j/log4j-core/2.8.1/test-jars/log4j-core-tests.jar
[warn] ==== local: tried
[warn] C:\Users\USER\.ivy2\local\org.apache.logging.log4j\log4j-core\2.8.1\test-jars\log4j-core-tests.jar
[warn] ==== public: tried
[warn] https://repo1.maven.org/maven2/org/apache/logging/log4j/log4j-core/2.8.1/log4j-core-2.8.1-tests.jar
[warn] ==== local-preloaded-ivy: tried
[warn] C:\Users\USER\.sbt\preloaded\org.apache.logging.log4j\log4j-core\2.8.1\test-jars\log4j-core-tests.jar
[warn] ==== local-preloaded: tried
[warn] file:/C:/Users/USER/.sbt/preloaded/org/apache/logging/log4j/log4j-core/2.8.1/log4j-core-2.8.1-tests.jar
[warn] ::::::::::::::::::::::::::::::::::::::::::::::
[warn] :: FAILED DOWNLOADS ::
[warn] :: ^ see resolution messages for details ^ ::
[warn] ::::::::::::::::::::::::::::::::::::::::::::::
[warn] :: org.apache.logging.log4j#log4j-core;2.8.1!log4j-core.jar(test-jar)
[warn] ::::::::::::::::::::::::::::::::::::::::::::::
[error] sbt.librarymanagement.ResolveException: download failed: org.apache.logging.log4j#log4j-core;2.8.1!log4j-core.jar(test-jar)
[error] at sbt.internal.librarymanagement.IvyActions$.resolveAndRetrieve(IvyActions.scala:331)
[error] at sbt.internal.librarymanagement.IvyActions$.$anonfun$updateEither$1(IvyActions.scala:205)
[error] at sbt.internal.librarymanagement.IvySbt$Module.$anonfun$withModule$1(Ivy.scala:229)
[error] at sbt.internal.librarymanagement.IvySbt.$anonfun$withIvy$1(Ivy.scala:190)
[error] at sbt.internal.librarymanagement.IvySbt.sbt$internal$librarymanagement$IvySbt$$action$1(Ivy.scala:70)
[error] at sbt.internal.librarymanagement.IvySbt$$anon$3.call(Ivy.scala:77)
[error] at xsbt.boot.Locks$GlobalLock.withChannel$1(Locks.scala:93)
[error] at xsbt.boot.Locks$GlobalLock.xsbt$boot$Locks$GlobalLock$$withChannelRetries$1(Locks.scala:78)
[error] at xsbt.boot.Locks$GlobalLock$$anonfun$withFileLock$1.apply(Locks.scala:97)
[error] at xsbt.boot.Using$.withResource(Using.scala:10)
[error] at xsbt.boot.Using$.apply(Using.scala:9)
[error] at xsbt.boot.Locks$GlobalLock.ignoringDeadlockAvoided(Locks.scala:58)
[error] at xsbt.boot.Locks$GlobalLock.withLock(Locks.scala:48)
[error] at xsbt.boot.Locks$.apply0(Locks.scala:31)
[error] at xsbt.boot.Locks$.apply(Locks.scala:28)
[error] at sbt.internal.librarymanagement.IvySbt.withDefaultLogger(Ivy.scala:77)
[error] at sbt.internal.librarymanagement.IvySbt.withIvy(Ivy.scala:185)
[error] at sbt.internal.librarymanagement.IvySbt.withIvy(Ivy.scala:182)
[error] at sbt.internal.librarymanagement.IvySbt$Module.withModule(Ivy.scala:228)
[error] at sbt.internal.librarymanagement.IvyActions$.updateEither(IvyActions.scala:190)
[error] at sbt.librarymanagement.ivy.IvyDependencyResolution.update(IvyDependencyResolution.scala:20)
[error] at sbt.librarymanagement.DependencyResolution.update(DependencyResolution.scala:56)
[error] at sbt.internal.LibraryManagement$.resolve$1(LibraryManagement.scala:38)
[error] at sbt.internal.LibraryManagement$.$anonfun$cachedUpdate$12(LibraryManagement.scala:91)
[error] at sbt.util.Tracked$.$anonfun$lastOutput$1(Tracked.scala:68)
[error] at sbt.internal.LibraryManagement$.$anonfun$cachedUpdate$19(LibraryManagement.scala:104)
[error] at scala.util.control.Exception$Catch.apply(Exception.scala:224)
[error] at sbt.internal.LibraryManagement$.$anonfun$cachedUpdate$11(LibraryManagement.scala:104)
[error] at sbt.internal.LibraryManagement$.$anonfun$cachedUpdate$11$adapted(LibraryManagement.scala:87)
[error] at sbt.util.Tracked$.$anonfun$inputChanged$1(Tracked.scala:149)
[error] at sbt.internal.LibraryManagement$.cachedUpdate(LibraryManagement.scala:118)
[error] at sbt.Classpaths$.$anonfun$updateTask$5(Defaults.scala:2353)
[error] at scala.Function1.$anonfun$compose$1(Function1.scala:44)
[error] at sbt.internal.util.$tilde$greater.$anonfun$$u2219$1(TypeFunctions.scala:42)
[error] at sbt.std.Transform$$anon$4.work(System.scala:64)
[error] at sbt.Execute.$anonfun$submit$2(Execute.scala:257)
[error] at sbt.internal.util.ErrorHandling$.wideConvert(ErrorHandling.scala:16)
[error] at sbt.Execute.work(Execute.scala:266)
[error] at sbt.Execute.$anonfun$submit$1(Execute.scala:257)
[error] at sbt.ConcurrentRestrictions$$anon$4.$anonfun$submitValid$1(ConcurrentRestrictions.scala:167)
[error] at sbt.CompletionService$$anon$2.call(CompletionService.scala:32)
[error] at java.util.concurrent.FutureTask.run(FutureTask.java:266)
[error] at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
[error] at java.util.concurrent.FutureTask.run(FutureTask.java:266)
[error] at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
[error] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
[error] at java.lang.Thread.run(Thread.java:748)
[error] (*:update) sbt.librarymanagement.ResolveException: download failed: org.apache.logging.log4j#log4j-core;2.8.1!log4j-core.jar(test-jar)
Java HotSpot(TM) 64-Bit Server VM warning: ignoring option MaxPermSize=384M; support was removed in 8.0
Picked up _JAVA_OPTIONS: -Djava.net.preferIPv4Stack=true
Update SBT
name := "untitled3"
version := "0.1"
scalaVersion := "2.12.4"
excludeDependencies += "org.apache.logging.log4j"
In my case, this had nothing to do with any proxies. I had specified sbt.version=1.0.3 in project/build.properties, and I had installed sbt version 1.1.1. The failure mode was baffling.
For me this occured when upgrading scala 2.12.11 -> 2.13.2. It turned out I was using libraries, that did not support scala 2.13 at that time. My build.sbt looks like this (simplified):
scalaVersion := "2.12.11"
libraryDependencies += "org.apache.spark" %% "spark-core" % "2.4.0"
libraryDependencies += "org.apache.spark" %% "spark-sql" % "2.4.0"
libraryDependencies += "org.apache.spark" %% "spark-mllib" % "2.4.0"
When using double percent, the artifact name gets a postfix with major and minor version of scala, for example spark-core is translated to spark-core_2.12. When I changed scalaVersion to 2.13.2, I would rely on dependencies with _2.13 suffix, that did not exist (I checked on maven central, that 2.12 is the newest scala supported.
Seems that there's several things that've disappeared out of SBT's release cache that it needs for 0.13.x and for 1.x.x of SBT over the last couple of days. Still looking for answers, I added a resolver for this out of Maven 2 that should be finding the thing (it is DOWNLOADABLE from Maven 2...) but it is ignoring the thing
I'm rapidly being very and deeply underwhelmed with sbt in the same manner as I am with Autotools (This is a very, very bad thing...). Tools should be only as complex as they NEED to be and moderately straightforward in their use, regardless. They should be self contained and not pull a bunch of stuff, willy-nilly, out of the aether like sbt seems to be wont to do.
I'll dig further myself and see if I can get it sorted out somehow and update answers accordingly.
Increasing the heap size to 5GB in sbt settings resolved my problem
In my case launched sbt server affected reloading an sbt project. Shutdown the server helped me

while running console from SBT getting error "Couldn't retrieve source module: org.scala-sbt:compiler-interface:0.13.13:component"

on Window command i install Scala and SBT .
while running console command from SBT getting below error .
can some one help me to resolve this issue ?
getting below error
>sbt
Java HotSpot(TM) Client VM warning: ignoring option MaxPermSize=256m; support was removed in 8.0
[info] Set current project to sujitd (in build file:/C:/Users/sujitd/)
> console
[info] Compiling 1 Scala source to C:\Users\sujitd\target\scala-2.10\classes...
[info] Resolving org.scala-sbt#interface;0.13.13 ...
[warn] Host repo1.maven.org not found. url=https://repo1.maven.org/maven2/org/scala-sbt/compiler-interface/0.13.13/compiler-interface-0.13.13-sources.jar
[info] You probably access the destination server through a proxy server that is not well configured.
[warn] Host repo.typesafe.com not found. url=https://repo.typesafe.com/typesafe/ivy-releases/org.scala-sbt/compiler-interface/0.13.13/srcs/compiler-interface-sources.jar
[info] You probably access the destination server through a proxy server that is not well configured.
[warn] Host repo.scala-sbt.org not found. url=https://repo.scala-sbt.org/scalasbt/ivy-snapshots/org.scala-sbt/compiler-interface/0.13.13/srcs/compiler-interface-sources.jar
[info] You probably access the destination server through a proxy server that is not well configured.
[warn] [FAILED ] org.scala-sbt#compiler-interface;0.13.13!compiler-interface.jar(src): (0ms)
[warn] ==== local: tried
[warn] C:\Users\sujitd\.ivy2\local\org.scala-sbt\compiler-interface\0.13.13\srcs\compiler-interface-sources.jar
[warn] ==== public: tried
[warn] https://repo1.maven.org/maven2/org/scala-sbt/compiler-interface/0.13.13/compiler-interface-0.13.13-sources.jar
[warn] ==== typesafe-ivy-releases: tried
[warn] https://repo.typesafe.com/typesafe/ivy-releases/org.scala-sbt/compiler-interface/0.13.13/srcs/compiler-interface-sources.jar
[warn] ==== sbt-ivy-snapshots: tried
[warn] https://repo.scala-sbt.org/scalasbt/ivy-snapshots/org.scala-sbt/compiler-interface/0.13.13/srcs/compiler-interface-sources.jar
[warn] ::::::::::::::::::::::::::::::::::::::::::::::
[warn] :: FAILED DOWNLOADS ::
[warn] :: ^ see resolution messages for details ^ ::
[warn] ::::::::::::::::::::::::::::::::::::::::::::::
[warn] :: org.scala-sbt#compiler-interface;0.13.13!compiler-interface.jar(src)
[warn] ::::::::::::::::::::::::::::::::::::::::::::::
[trace] Stack trace suppressed: run last compile:compileIncremental for the full output.
[error] (compile:compileIncremental) sbt.InvalidComponent: Couldn't retrieve source module: org.scala-sbt:compiler-interface:0.13.13:component
[error] Total time: 2 s, completed Apr 7, 2017 9:59:20 AM
I had a similar issue and while I am not sure what was causing it, here's a workaround that solved it for me:
Download compiler-interface.jar from maven for your version of sbt and put it in the local ivy cache.
Check sbt output to see local cache path for your system:
[warn] ==== local: tried
[warn] C:\Users\sujitd\.ivy2\local\org.scala-sbt\compiler-interface\0.13.13\srcs\compiler-interface-sources.jar
So, in this case you should put compiler-interface-sources.jar in C:\Users\sujitd\.ivy2\local\org.scala-sbt\compiler-interface\0.13.13\srcs\

sbt fails to download jna-4.1.0.jar Connection reset

I have a new SBT/Scala setup with an existing Play/Scala project. When I try and run activator clean in the folder, I get the error below:
[info] Resolving org.fusesource.jansi#jansi;1.4 ...
[info] downloading https://repo1.maven.org/maven2/net/java/dev/jna/jna/4.1.0/jna
-4.1.0.jar ...
[warn] [FAILED ] net.java.dev.jna#jna;4.1.0!jna.jar: Connection reset (1178
4ms)
[warn] [FAILED ] net.java.dev.jna#jna;4.1.0!jna.jar: (0ms)
[warn] ==== typesafe-ivy-releases: tried
[warn] https://repo.typesafe.com/typesafe/ivy-releases/net.java.dev.jna/jna/4.
1.0/jars/jna.jar
[warn] ==== sbt-plugin-releases: tried
[warn] https://repo.scala-sbt.org/scalasbt/sbt-plugin-releases/net.java.dev.jn
a/jna/4.1.0/jars/jna.jar
[warn] ==== local: tried
[warn] C:\Users\xxxxxxxxxxxx\.ivy2\local\net.java.dev.jna\jna\4.1.0\jars\jna.
jar
[warn] ==== public: tried
[warn] https://repo1.maven.org/maven2/net/java/dev/jna/jna/4.1.0/jna-4.1.0.jar
[warn] ==== activator-launcher-local: tried
[warn] C:\Projects\xxxxxxxxxxxx\repository\net.java.dev.j
na\jna\4.1.0\jars\jna.jar
[warn] ==== typesafe-releases: tried
[warn] https://repo.typesafe.com/typesafe/releases/net/java/dev/jna/jna/4.1.0/
jna-4.1.0.jar
[warn] ==== typesafe-ivy-releasez: tried
[warn] https://repo.typesafe.com/typesafe/ivy-releases/net.java.dev.jna/jna/4.
1.0/jars/jna.jar
[warn] ::::::::::::::::::::::::::::::::::::::::::::::
[warn] :: FAILED DOWNLOADS ::
[warn] :: ^ see resolution messages for details ^ ::
[warn] ::::::::::::::::::::::::::::::::::::::::::::::
[warn] :: net.java.dev.jna#jna;4.1.0!jna.jar
[warn] ::::::::::::::::::::::::::::::::::::::::::::::
sbt.ResolveException: download failed: net.java.dev.jna#jna;4.1.0!jna.jar
at sbt.IvyActions$.sbt$IvyActions$$resolve(IvyActions.scala:313)
at sbt.IvyActions$$anonfun$updateEither$1.apply(IvyActions.scala:191)
at sbt.IvyActions$$anonfun$updateEither$1.apply(IvyActions.scala:168)
at sbt.IvySbt$Module$$anonfun$withModule$1.apply(Ivy.scala:156)
at sbt.IvySbt$Module$$anonfun$withModule$1.apply(Ivy.scala:156)
at sbt.IvySbt$$anonfun$withIvy$1.apply(Ivy.scala:133)
at sbt.IvySbt.sbt$IvySbt$$action$1(Ivy.scala:57)
at sbt.IvySbt$$anon$4.call(Ivy.scala:65)
at xsbt.boot.Locks$GlobalLock.withChannel$1(Locks.scala:93)
at xsbt.boot.Locks$GlobalLock.xsbt$boot$Locks$GlobalLock$$withChannelRet
ries$1(Locks.scala:78)
at xsbt.boot.Locks$GlobalLock$$anonfun$withFileLock$1.apply(Locks.scala:
97)
at xsbt.boot.Using$.withResource(Using.scala:10)
at xsbt.boot.Using$.apply(Using.scala:9)
at xsbt.boot.Locks$GlobalLock.ignoringDeadlockAvoided(Locks.scala:58)
at xsbt.boot.Locks$GlobalLock.withLock(Locks.scala:48)
at xsbt.boot.Locks$.apply0(Locks.scala:31)
at xsbt.boot.Locks$.apply(Locks.scala:28)
at sbt.IvySbt.withDefaultLogger(Ivy.scala:65)
at sbt.IvySbt.withIvy(Ivy.scala:128)
at sbt.IvySbt.withIvy(Ivy.scala:125)
at sbt.IvySbt$Module.withModule(Ivy.scala:156)
at sbt.IvyActions$.updateEither(IvyActions.scala:168)
at sbt.Classpaths$$anonfun$sbt$Classpaths$$work$1$1.apply(Defaults.scala
:1439)
at sbt.Classpaths$$anonfun$sbt$Classpaths$$work$1$1.apply(Defaults.scala
:1435)
at sbt.Classpaths$$anonfun$doWork$1$1$$anonfun$90.apply(Defaults.scala:1
470)
at sbt.Classpaths$$anonfun$doWork$1$1$$anonfun$90.apply(Defaults.scala:1
468)
at sbt.Tracked$$anonfun$lastOutput$1.apply(Tracked.scala:37)
at sbt.Classpaths$$anonfun$doWork$1$1.apply(Defaults.scala:1473)
at sbt.Classpaths$$anonfun$doWork$1$1.apply(Defaults.scala:1467)
at sbt.Tracked$$anonfun$inputChanged$1.apply(Tracked.scala:60)
at sbt.Classpaths$.cachedUpdate(Defaults.scala:1490)
at sbt.Classpaths$$anonfun$updateTask$1.apply(Defaults.scala:1417)
at sbt.Classpaths$$anonfun$updateTask$1.apply(Defaults.scala:1369)
at scala.Function1$$anonfun$compose$1.apply(Function1.scala:47)
at sbt.$tilde$greater$$anonfun$$u2219$1.apply(TypeFunctions.scala:40)
at sbt.std.Transform$$anon$4.work(System.scala:63)
at sbt.Execute$$anonfun$submit$1$$anonfun$apply$1.apply(Execute.scala:22
8)
at sbt.Execute$$anonfun$submit$1$$anonfun$apply$1.apply(Execute.scala:22
8)
at sbt.ErrorHandling$.wideConvert(ErrorHandling.scala:17)
at sbt.Execute.work(Execute.scala:237)
at sbt.Execute$$anonfun$submit$1.apply(Execute.scala:228)
at sbt.Execute$$anonfun$submit$1.apply(Execute.scala:228)
at sbt.ConcurrentRestrictions$$anon$4$$anonfun$1.apply(ConcurrentRestric
tions.scala:159)
at sbt.CompletionService$$anon$2.call(CompletionService.scala:28)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:51
1)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.
java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor
.java:617)
at java.lang.Thread.run(Thread.java:745)
[error] (*:update) sbt.ResolveException: download failed: net.java.dev.jna#jna;4
.1.0!jna.jar
Project loading failed: (r)etry, (q)uit, (l)ast, or (i)gnore?
If I try and paste the URL https://repo1.maven.org/maven2/net/java/dev/jna/jna/4.1.0/jna-4.1.0.jar for the jar in my browser, I am able to download the jar.
I tried to delete both .sbt and .ivy folders and then ran the command again, but got the same error.
Not sure what is going on?
Thanks in advance.
Update
I ran the build from activator UI and enabled debug output. Here is what I found:
Activator first tries to download https://repo.typesafe.com/typesafe/ivy-releases/net.java.dev.jna/jna/4.1.0/jars/jna.jar
which really does not exist. Copy and paste the URL in a browser, and it says not found.
It then tries https://repo.scala-sbt.org/scalasbt/sbt-plugin-releases/net.java.dev.jna/jna/4.1.0/jars/jna.jar and fails for the same reason.
It then tries https://repo1.maven.org/maven2/net/java/dev/jna/jna/4.1.0/jna-4.1.0.jar which succeeds and it starts to download, but fails with the error below:
[info] downloading https://repo1.maven.org/maven2/net/java/dev/jna/jna/4.1.0/jna-4.1.0.jar ...
downloading https://repo1.maven.org/maven2/net/java/dev/jna/jna/4.1.0/jna-4.1.0.jar ...
public: downloading https://repo1.maven.org/maven2/net/java/dev/jna/jna/4.1.0/jna-4.1.0.jar
[warn] [FAILED ] net.java.dev.jna#jna;4.1.0!jna.jar: Connection reset (22821ms)
[FAILED ] net.java.dev.jna#jna;4.1.0!jna.jar: Connection reset (22821ms)
tried http://repo.typesafe.com/typesafe/releases/net/java/dev/jna/jna/4.1.0/jna-4.1.0.jar
CLIENT ERROR: Not Found url=http://repo.typesafe.com/typesafe/releases/net/java/dev/jna/jna/4.1.0/jna-4.1.0.jar
tried http://repo.typesafe.com/typesafe/ivy-releases/net.java.dev.jna/jna/4.1.0/jars/jna.jar
CLIENT ERROR: Not Found url=http://repo.typesafe.com/typesafe/ivy-releases/net.java.dev.jna/jna/4.1.0/jars/jna.jar
Not sure whats causing that connection reset?
UPDATE 2: It turns out that the jar in question, has a DLL file in it. I'm wondering if it is the Netscaler/Antivirus that is causing the issue. Have logged a call with the Network admins.
I can get information that you did not set the Local Maven Repository as one of your repositories which means your sbt project will not search the dependency in your local maven repository which is a place that storing your maven dependency jars. If your sbt project can not download the jar from internet by itself. You can give a help by doing the following things:
First, add the following statement in your build.sbt
resolvers += ("Local Maven Repository" at "file:///"+Path.userHome.absolutePath+"/.m2/repository")
Second, download the dependency jar by yourself from maven repository. As for your question, the download link is there
Then, publish the jar to your local maven repository by using the following command assuming that the jar file is in the directory ~
mvn install:install-file -Dfile=~/jna-4.1.0.jar -DgroupId=net.java.dev.jna -DartifactId=jna -Dversion=4.1.0 -Dpackaging=jar
Lastly, refresh your sbt project.
if you find mvn command not found, please install it.
A reference which I gived answer to another question may help you.
Good luck