java - intellij 拒绝连接到 http ://127. 0.0.1:8888

标签 java maven intellij-idea gradle

我添加到我的 gradle.build 2 依赖项:

compile 'com.google.http-client:google-http-client'
compile 'com.google.http-client:google-http-client-jackson2'

我尝试从 Intellij 刷新,但收到错误:

enter image description here

enter image description here 我尝试从cmd构建 我收到此错误:

>Could not resolve com.google.http-client:google-http-client:.
  Required by:
      :RoutingRegression:1.0
   > Could not GET 'http://www.hibernatespatial.org/repository/com/google/http-client/google-http-client//google-http-client-.pom'.
      > Connection to http://127.0.0.1:8888 refused
> Could not resolve com.google.http-client:google-http-client-jackson2:.
  Required by:
      :RoutingRegression:1.0
   > Could not GET 'http://www.hibernatespatial.org/repository/com/google/http-client/google-http-client-jackson2//google-http-client-jackson2-.pom'.
      > Connection to http://127.0.0.1:8888 refused

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.

我该如何解决这个问题?

最佳答案

您机器中的其他应用程序似乎正在使用端口 8888,您可以尝试关闭该应用程序并再次尝试构建

关于java - intellij 拒绝连接到 http ://127. 0.0.1:8888,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/35603859/

相关文章:

Java 打包问题

java - Java 中类似 C 的字符添加?

java - Jersey 2.22 UnsatisfiedDependencyException

java - 使用 TestNG 框架在 IntelliJ IDEA 中运行测试时抛出 "No tests found in the class"

java - Intellij 代码格式化,Java 新行注解

java - 使用格式化程序用 0 填充字符串

java - 针对 IO BufferInputStream 的 Nio 字节缓冲区(按 channel )

java - 无法访问浏览器 :Session Not Created Exception

java - 在 Eclipse 中将多个 Maven 项目合并为单个项目

scala - 想法 Scala : Could not find output directory