5

ラップトップにMaven 2をセットアップしました。私がまだ Maven 2 を使用している理由は、私の会社のプロキシが原因で Maven が何らかの形で機能しないためです。

動作環境:Eclipse Helio Service Release 2 Maven 2.2.1 Windows 7

エラーメッセージ:

Errors occurred during the build.
Errors running builder 'Maven Project Builder' on project 'StrutsExample'.
Could not calculate build plan: Plugin org.apache.maven.plugins:maven-resources-plugin:2.5 or one of its dependencies could not be resolved: Failed to read artifact descriptor for org.apache.maven.plugins:maven-resources-plugin:jar:2.5
Plugin org.apache.maven.plugins:maven-resources-plugin:2.5 or one of its dependencies could not be resolved: Failed to read artifact descriptor for org.apache.maven.plugins:maven-resources-plugin:jar:2.5
Could not calculate build plan: Plugin org.apache.maven.plugins:maven-resources-plugin:2.5 or one of its dependencies could not be resolved: Failed to read artifact descriptor for org.apache.maven.plugins:maven-resources-plugin:jar:2.5
Plugin org.apache.maven.plugins:maven-resources-plugin:2.5 or one of its dependencies could not be resolved: Failed to read artifact descriptor for org.apache.maven.plugins:maven-resources-plugin:jar:2.5

2.5 jar が見つからないと思ったので、ダウンロードして、対応する pom ファイルとともに手動でローカル リポジトリに追加しましたが、それでも動作しません...

なにか提案を?前もって感謝します...

4

5 に答える 5

4

ビルド プランを解決する手順:

  1. 日食を閉じる
  2. .m2 リポジトリからすべてのフォルダーを削除する
  3. 日食を開始する
  4. ネットの接続を維持し、Maven にすべての依存関係を更新させます
于 2018-04-23T16:14:31.507 に答える