maven 2.6のリソースプラグインの依存性を解決するには?

ERROR:

Could not calculate build plan: Plugin org.apache.maven.plugins:maven-resources-plugin:2.6 or one of its dependencies could not be resolved: Failed to read artifact descriptor for org.apache.maven.plugins:maven-resources-plugin:jar:2.6
Plugin org.apache.maven.plugins:maven-resources-plugin:2.6 or one of its dependencies could not be resolved: Failed to read artifact descriptor for org.apache.maven.plugins:maven-resources-plugin:jar:2.6

Solutions Tried:

プロジェクトの更新:mavenのREPOからダウンロードできません。

.m2レポのそのフォルダに特定のjarを入れてみました。

必要であればリファレンスを提供できます。

ソリューション

.m2(local maven repo)フォルダにsettings.xmlファイルがないようです。

eclipseを使用している場合は、Window -> Preferences -> Maven -> User Settings -> settings.xmlを参照して、適用をクリックしてください。

その後、maven Update Projectを行います。

.

解説 (2)

窓の上。

1.C:Users\USER.m2からフォルダーを削除する。 2.プロジェクトを閉じてから開くか、pom.xmlファイルを強制的に変更して保存する :)

解説 (0)

何らかの理由でダウンロードが失敗した場合、Mavenは特定の時間枠内でのダウンロードを試みません(タイムスタンプ付きのファイルを残します)。

これを修正するには、次のいずれかを実行します。

  • .m2 レポを(一部)消去する。
  • mavenを-Uで実行して強制的にアップデートする
解説 (6)