我正在使用NetBeans 7.0,默认情况下它的maven 3.0.3。上周我打开了一个使用Maven 2.2开发的项目...现在,即使在关闭该项目之后..NetBeans不允许我创建任何新的project...not,即使是NetBeans的示例项目……每次我得到下面的错误...
Plugin org.apache.maven.plugins:maven-resources-plugin:2.4.3 or one of its dependencies could not be resolved: Failed to read artifact descriptor for org.apache.maven.plugins:maven-resources-plugin:jar:2.4.3: Could not transfer artifact org.apache.maven.plugins:maven-resources-plugin:pom:2.4.3 from/to central (http://repo1.maven.org/maven2): Error transferring file: repo1.maven.org: Unknown host repo1.maven.org -> [Help 1]
To see the full stack trace of the errors, re-run Maven with the -e switch.
Re-run Maven using the -X switch to enable full debug logging.
For more information about the errors and possible solutions, please read the following articles:
"**[Help 1] http://cw
iki.apache.org/confluence/display/MAVEN/PluginResolutionException"**任何关于这方面的帮助都将不胜感激……
先谢谢你,,
发布于 2011-08-09 16:42:54
未知主机repo1.maven.org
尝试设置您的域名为8.8.8.8或8.8.4.4这些是谷歌的域名,可以解析此名称
在Linux机器上。
类型
sudo gedit /etc/resolv.conf添加具有上述IP的nameserver条目
https://stackoverflow.com/questions/6993459
复制相似问题