获得;org.scala sbt#sbt;0.13.8:未找到“;虽然我的系统中安装了相同的版本,但出现错误。如何解决此问题?
问题摘要:: 警告 错误 服务器访问错误:连接被拒绝url= 这可能是代理问题。 编辑$SBT_HOME/conf directory/sbtconfig.txt文件并添加以下条目:获得;org.scala sbt#sbt;0.13.8:未找到“;虽然我的系统中安装了相同的版本,但出现错误。如何解决此问题?,sbt,Sbt,问题摘要:: 警告 错误 服务器访问错误:连接被拒绝url= 这可能是代理问题。 编辑$SBT_HOME/conf directory/sbtconfig.txt文件并添加以下条目: Server access Error: Connection refused url=https://repo1.maven.org/maven2/org/scala-sbt/sbt/0.13.8/sbt-0.13.8.pom Server access Error: Connection re
Server access Error: Connection refused url=https://repo1.maven.org/maven2/org/scala-sbt/sbt/0.13.8/sbt-0.13.8.pom
Server access Error: Connection refused url=https://repo1.maven.org/maven2/org/scala-sbt/sbt/0.13.8/sbt-0.13.8.jar
:: USE VERBOSE OR DEBUG MESSAGE LEVEL FOR MORE DETAILS
unresolved dependency: org.scala-sbt#sbt;0.13.8: not found
Error during sbt execution: Error retrieving required libraries
Error: Could not retrieve sbt 0.13.8
-Dhttp.proxyHost=
-Dhttp.proxyPort=
-Dhttp.proxyUser=
-Dhttp.proxyPassword=
-Dhttps.proxyHost=
-Dhttps.proxyPort=
-Dhttps.proxyUser=
-Dhttps.proxyPassword=
-代理主机=
-代理端口=
-代理用户=
-Dftp.proxyPassword=
注:
我面临着类似的问题。似乎问题在于所使用的java。我的环境错误地指向jre而不是jdk。在如下所示指向右JAVA_主页之后,sbt clean包编译工作正常 [root@spark-sql性能]#更新备选方案--配置java 有两个程序提供“java” 选择命令 *+1 java-1.8.0-openjdk.ppc64le(/usr/lib/jvm/java-1.8.0-openjdk-1.8.0.111-2.b15.el7_3.ppc64le/jre/bin/java) 2 java-1.7.0-openjdk.ppc64le(/usr/lib/jvm/java-1.7.0-openjdk-1.7.0.121-2.6.8.0.el7_3.ppc64le/jre/bin/java) 输入以保持当前选择[+],或键入选择编号:q 有两个程序提供“java” 选择命令 *+1 java-1.8.0-openjdk.ppc64le(/usr/lib/jvm/java-1.8.0-openjdk-1.8.0.111-2.b15.el7_3.ppc64le/jre/bin/java) 2 java-1.7.0-openjdk.ppc64le(/usr/lib/jvm/java-1.7.0-openjdk-1.7.0.121-2.6.8.0.el7_3.ppc64le/jre/bin/java) 输入以保留当前选择[+],或键入选择编号:^C [root@spark-sql perf]#导出JAVA_HOME=/usr/lib/jvm/JAVA-1.8.0-openjdk-1.8.0.111-2.b15.el7_3.ppc64le/
[root@spark-sql perf]#export PATH=$JAVA_HOME/bin:$PATH我尝试过这个方法&它似乎仍然不起作用。是否有其他解决方法?
module not found: org.scala-sbt#sbt;0.13.8
::::::::::::::::::::::::::::::::::::::::::::::
:: UNRESOLVED DEPENDENCIES ::
::::::::::::::::::::::::::::::::::::::::::::::
:: org.scala-sbt#sbt;0.13.8: not found
::::::::::::::::::::::::::::::::::::::::::::::
Server access Error: Connection refused url=https://repo1.maven.org/maven2/org/scala-sbt/sbt/0.13.8/sbt-0.13.8.pom
Server access Error: Connection refused url=https://repo1.maven.org/maven2/org/scala-sbt/sbt/0.13.8/sbt-0.13.8.jar
:: USE VERBOSE OR DEBUG MESSAGE LEVEL FOR MORE DETAILS
unresolved dependency: org.scala-sbt#sbt;0.13.8: not found
Error during sbt execution: Error retrieving required libraries
Error: Could not retrieve sbt 0.13.8
-Dhttp.proxyHost=<proxy server>
-Dhttp.proxyPort=<proxy port>
-Dhttp.proxyUser=<username>
-Dhttp.proxyPassword=<password>
-Dhttps.proxyHost=<proxy server>
-Dhttps.proxyPort=<proxy port>
-Dhttps.proxyUser=<username>
-Dhttps.proxyPassword=<password>
-Dftp.proxyHost=<proxy server>
-Dftp.proxyPort=<proxy port>
-Dftp.proxyUser=<username>
-Dftp.proxyPassword=<password>