2012-01-09 19 views
0

私はMavenベースのプロジェクトを持っており、Springソースツールスイートにインポートしようとしています。次のエラーが表示されます。SpringとMavenのプラグインのインストールに関する問題。 mvn; spring

Description Resource Path Location Type 
Could not calculate build plan: Missing: 
---------- 
1) org.apache.maven.plugins:maven-resources-plugin:maven-plugin:2.4.2 

    Try downloading the file manually from the project website. 

    Then, install it using the command: 
     mvn install:install-file -DgroupId=org.apache.maven.plugins -DartifactId=maven-resources-plugin -Dversion=2.4.2 -Dpackaging=maven-plugin -Dfile=/path/to/file 

    Alternatively, if you host your own repository you can deploy the file there: 
     mvn deploy:deploy-file -DgroupId=org.apache.maven.plugins -DartifactId=maven-resources-plugin -Dversion=2.4.2 -Dpackaging=maven-plugin -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id] 

---------- 
1 required artifact is missing. 

for artifact: 
    org.apache.maven.plugins:maven-resources-plugin:maven-plugin:2.4.2 

from the specified remote repositories: 
    central (http://repo1.maven.org/maven2, releases=true, snapshots=false) 
    Gamex  Unknown Maven Problem 

Mavenのresourourceプラグイン2.4.2をインストールするために私を求めているように見えますが、私は、ダウンロードするファイルが何であるかわかりません。私はmaven-plugin-plugin-2.4.2-source.jarをダウンロードしてコマンドに入力しようとしました。しかしそれはうまくいかなかった。 その後私はhttp://svn.apache.org/viewvc/maven/plugins/tags/maven-resources-plugin-2.4.2/のmavenリポジトリに行き、pof.xmlをダウンロードしました。これも動作していません。 plsが何が欠落しているか、またはエラーメッセージが何であるかを理解するのに役立つ前に、この問題を見たことがある場合。

ありがとう、

+0

おそらくhttp://stackoverflow.com/questions/5074063/maven-problem-failure-to-transferがエラーの原因です – Raghuram

答えて

1

http://mirrors.ibiblio.org/pub/mirrors/maven2/org/apache/maven/plugins/maven-resources-plugin/2.4.2/からMavenのresourourceプラグイン2.4.2 [mavenの資源・プラグイン-2.4.2.jar]をダウンロードして、きれいな日食が続く

 mvn install:install-file -DgroupId=org.apache.maven.plugins -DartifactId=maven-resources-plugin -Dversion=2.4.2 -Dpackaging=maven-plugin -Dfile=/path/to/file 

の操作を行います。プロジェクトをきれいに日食Eclipseでリフレッシュして試してください。それは動作するはずです。

1

ファイアウォールの内側にある可能性があります。ファイアウォールをバイパスするようにHTTPプロキシを設定しようとする可能性があります。 Windowsので

は、このファイルは次の場所にあります。C:\Documents and Settings\<windows Login>\.m2\settings.xml

あなたはネットワークが組織内の設定であるかに基づいて<proxy>に有効なパラメータを提供する必要があります。

<settings 
... 
    <proxies> 

    <proxy> 
     <active>true</active> 
     <protocol>http</protocol> 
     <host>put-ur-proxy-servername</host> 
     <port>80</port> 
    </proxy> 
... 
</settings> 
関連する問題