无法在eclipse中创建Maven项目

时间:2014-01-17 10:37:39

标签: java eclipse maven

不知道问题究竟在哪里。 在Eclipse Helios(也尝试过Kepler)中尝试从头开始创建Java Maven简单项目(war,如果这意味着什么)时,我收到以下消息:

Errors occurred during the build.
Errors running builder 'Maven Project Builder' on project 'j2eeexample'.
Could not calculate build plan: Plugin org.apache.maven.plugins:maven-resources-plugin:2.5 or one of its dependencies could not be resolved: Failed to read artifact descriptor for org.apache.maven.plugins:maven-resources-plugin:jar:2.5
Plugin org.apache.maven.plugins:maven-resources-plugin:2.5 or one of its dependencies could not be resolved: Failed to read artifact descriptor for org.apache.maven.plugins:maven-resources-plugin:jar:2.5
Could not calculate build plan: Plugin org.apache.maven.plugins:maven-resources-plugin:2.5 or one of its dependencies could not be resolved: Failed to read artifact descriptor for org.apache.maven.plugins:maven-resources-plugin:jar:2.5
Plugin org.apache.maven.plugins:maven-resources-plugin:2.5 or one of its dependencies could not be resolved: Failed to read artifact descriptor for org.apache.maven.plugins:maven-resources-plugin:jar:2.5

我正在使用:

  • m2e ver。 1.2.0.20120903-1050(也尝试使用最近的一个开普勒 - 得到了同样的错误)
  • apache maven ver。使用MAVEN_HOME和PATH设置3.0.4(也尝试使用Kepler进行3.1.1)。
  • jdk 1.7.0_45
  • OS Windows 7 Pro

    mvn --version 
    

    返回非常正常的结果,我猜,配置得很好。

我在这里完成了与Arthur Vin先生相同的事情(包括教程前几部分的准备工作):http://youtu.be/1cHIZTmN0z8?t=4m51s

但它不起作用。

1 个答案:

答案 0 :(得分:3)

问题是您没有 maven-resources-plugin ,并且maven尝试下载它。如果您在代理服务器下,请在maven settings.xml 文件中配置代理服务器。如果您不在代理服务器下,请尝试再次下载maven并替换当前安装。可能是您的防火墙的本地问题,您需要检查您的互联网访问。

相关问题