不知道问题究竟在哪里。 在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
我正在使用:
OS Windows 7 Pro
mvn --version
返回非常正常的结果,我猜,配置得很好。
我在这里完成了与Arthur Vin先生相同的事情(包括教程前几部分的准备工作):http://youtu.be/1cHIZTmN0z8?t=4m51s
但它不起作用。
答案 0 :(得分:3)
问题是您没有 maven-resources-plugin ,并且maven尝试下载它。如果您在代理服务器下,请在maven settings.xml 文件中配置代理服务器。如果您不在代理服务器下,请尝试再次下载maven并替换当前安装。可能是您的防火墙的本地问题,您需要检查您的互联网访问。