首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >为什么我要获取PluginResolutionException?

问为什么我要获取PluginResolutionException?
EN

Stack Overflow用户
提问于 2011-08-09 16:39:30
回答 1查看 2.2K关注 0票数 1

我正在使用NetBeans 7.0,默认情况下它的maven 3.0.3。上周我打开了一个使用Maven 2.2开发的项目...现在,即使在关闭该项目之后..NetBeans不允许我创建任何新的project...not,即使是NetBeans的示例项目……每次我得到下面的错误...

代码语言:javascript
复制
    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"**

任何关于这方面的帮助都将不胜感激……

先谢谢你,,

EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2011-08-09 16:42:54

未知主机repo1.maven.org

尝试设置您的域名为8.8.8.8或8.8.4.4这些是谷歌的域名,可以解析此名称

在Linux机器上。

类型

代码语言:javascript
复制
sudo gedit /etc/resolv.conf

添加具有上述IP的nameserver条目

票数 1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/6993459

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档