Java 为什么我得到PluginResolutionException?
我正在开发NetBeans 7.0,默认情况下它有maven 3.0.3。。。。上周我打开了一个使用Maven 2.2开发的项目。。。现在即使在结束了那个项目。。NetBeans不允许我创建任何新项目…甚至连NetBeans的示例项目都不允许。。。。每次我得到以下错误Java 为什么我得到PluginResolutionException?,java,jakarta-ee,maven,Java,Jakarta Ee,Maven,我正在开发NetBeans 7.0,默认情况下它有maven 3.0.3。。。。上周我打开了一个使用Maven 2.2开发的项目。。。现在即使在结束了那个项目。。NetBeans不允许我创建任何新项目…甚至连NetBeans的示例项目都不允许。。。。每次我得到以下错误 Plugin org.apache.maven.plugins:maven-resources-plugin:2.4.3 or one of its dependencies could not be resolved:
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"**
任何有关这方面的帮助都将不胜感激
提前谢谢
未知主机repo1.maven.org
请尝试将您的DNS设置为8.8.8.8
或8.8.4.4
这些是可以解析此名称的google DNS
在Linux机器中
类型
添加具有所述IP的nameserver条目
未知主机repo1.maven.org
请尝试将您的DNS设置为8.8.8.8
或8.8.4.4
这些是可以解析此名称的google DNS
在Linux机器中
类型
添加具有所述IP的nameserver条目谢谢@Jigar,但是我如何更改DNS名称?在主系统设置或NetBeans中(不幸的是,我在NetBeans IDE中找不到任何这样的字段)……谢谢。。。。那起作用了。。。我花了好几个小时试图解决这个错误。。。你节省了更多的时间…再次感谢…感谢@Jigar,但是我如何更改DNS名称?在主系统设置或NetBeans中(不幸的是,我在NetBeans IDE中找不到任何这样的字段)……谢谢。。。。那起作用了。。。我花了好几个小时试图解决这个错误。。。你节省了更多的时间…再次感谢。。。。。
sudo gedit /etc/resolv.conf