【環境】
・MacBook Air(M1)
・macOS Sequoia 15.1.1
・Eclipse 2024-06(4.32.0)
【状況】
・GitHubからMavenプロジェクトをクローン
・ビルド失敗したのでいったんクローンしたプロジェクトを削除
・次は「新規」でMavenプロジェクトを作成したら、【エラー】が発生
【エラー】
org.apache.maven.plugins:maven-resources-plugin:pom:3.3.1 failed to transfer from https://repo.maven.apache.org/maven2 during a previous attempt. This failure was cached in the local repository and resolution is not reattempted until the update interval of central has elapsed or updates are forced. オリジナル・エラー: Could not transfer artifact org.apache.maven.plugins:maven-resources-plugin:pom:3.3.1 from/to central (https://repo.maven.apache.org/maven2): repo.maven.apache.org pom.xml /helloworld 行 1 Maven pom ロード問題
【原因】
"/Users/[PCユーザ名]/.m2/repository"配下にキャッシュが残ってしまっていること。
【真因】
不明
【対処】
"/Users/[PCユーザ名]/.m2/repository"配下のディレクトリとファイルをすべて削除する。
【結果】
正常にMavenプロジェクトを作成することができた。