我已经安装了maven 3.2.3,我试图将一个项目导入到eclipse中。我收到了这个错误

时间:2016-05-13 06:14:45

标签: java eclipse maven

我是maven的新手。请帮我解决这个问题

  

[错误] 插件org.apache.maven.plugins:maven-install-plugin:2.3.1或其中一个依赖项无法解析:无法读取org.apache的工件描述符.maven.plugins:maven-install-plugin:jar:2.3.1:无法传输工件org.apache.maven.plugins:maven-install-plugin:pom:2.3.1 from / to central(http://repo.maven.apache.org/maven2 ):连接被拒绝http://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-install-plugin/2.3.1/maven-install-plugin-2.3.1.pom - > [帮助1]

1 个答案:

答案 0 :(得分:1)

Maven无法下载所需的工件。检查maven settings.xml中的代理设置。如果您使用的是代理,请在下面提供相应的主机和端口详细信息。

 <proxies>
    <proxy>
      <id>myproxy</id>
      <active>true</active>
      <protocol>http</protocol>
      <host>proxy.somewhere.com</host>
      <port>8080</port>
      <username>proxyuser</username>
      <password>somepassword</password>
      <nonProxyHosts>*.google.com|ibiblio.org</nonProxyHosts>
    </proxy>
  </proxies>