2011-08-09 22 views
1

私はデフォルトでmaven 3.0.3を持っているNetBeans 7.0に取り組んでいます....先週私はMaven 2.2を使って開発されたプロジェクトを開いた...そのプロジェクトを閉じた後でさえ、NetBeansは私に作成を許可していない任意の新しいプロジェクト...のNetBeansのではないにもサンプルプロジェクト....私は次のエラーを取得するたびに... なぜ私はPluginResolutionExceptionを取得していますか?

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"** 

このに関するすべてのヘルプは理解されるであろう

....

感謝事前に、

答えて

1

不明なホストrepo1.maven.org

これらはLinuxマシンでこの名前に

を解決することができ、GoogleのDNSある8.8.8.8または8.8.4.4にあなたのDNSを設定してみてください。

タイプ

sudo gedit /etc/resolv.conf 

はIP上記

+0

おかげ@Jigarとネームサーバのエントリを追加しますが、私は、DNS名を変更する方法...?メインのシステム設定またはNetBeansで(残念ながら私はNetbeans IDEでそのようなフィールドを見つけることはできません)。 – aProgrammer

+1

アップデートを確認してください

+0

ありがとうございました....それは働いていました...私はかなりこのエラーを解決しようとしていました数時間...あなたがもう少し時間を節約しました...もう一度感謝..... – aProgrammer