使用eclipse mars创建maven项目时出错

时间:2016-09-08 10:07:00

标签: eclipse maven maven-archetype

我正在尝试使用原型maven-archetype-quickstart创建maven项目但是我遇到了以下错误:

Could not calculate build plan: Plugin org.apache.maven.plugins:maven-resources-plugin:2.6 or one of its dependencies could not be resolved: Failed to read artifact descriptor for org.apache.maven.plugins:maven-resources-plugin:jar:2.6
Plugin org.apache.maven.plugins:maven-resources-plugin:2.6 or one of its dependencies could not be resolved: Failed to read artifact descriptor for org.apache.maven.plugins:maven-resources-plugin:jar:2.6

我已经正确安装了maven。我试着遵循这个解决方案[Cannot create Maven Project in eclipse,但我对setup.xml感到困惑。

我没有使用代理连接,所以如何配置代理设置或是否必须配置代理连接?

我尝试将active设置为true,然后将主机和端口都清空,因为我没有使用代理。

根据以上链接,这是我的settings.xml文件。

<settings>
  <proxies>
   <proxy>
      <active>false</active>
      <protocol>http</protocol>
      <host></host>
      <port></port>
      <username>YOUR PROXY USERNAME (OR EMPTY IF NOT REQUIRED)</username>
      <password>YOUR PROXY PASSWORD (OR EMPTY IF NOT REQUIRED)</password>
      <nonProxyHosts>YOUR PROXY EXCLUSION HOST LIST (OR EMPTY)</nonProxyHosts>
    </proxy>
  </proxies>
</settings>

请问任何解决方案? 感谢

0 个答案:

没有答案