简单的Maven pom.xml失败了

时间:2016-08-08 19:26:08

标签: eclipse maven maven-3

是Maven的新手,运行Eclipse Neon,m2e插件Maven 3.3.9 这个:

<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
    <modelVersion>4.0.0</modelVersion>
    <groupId>com.biscom.fa</groupId>
    <artifactId>FA_Bean</artifactId>
    <version>1</version>
</project>
保存时

生成此错误

Errors occurred during the build.
Errors running builder 'Maven Project Builder' on project XX_Bean'.
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
More errors follow

1 个答案:

答案 0 :(得分:0)

问题是防火墙。不允许联系中央maven存储库。一旦我解决了这个问题并下载了必要的文件,一切都开始起作用了。