0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

【備忘メモ】Mavenプロジェクト作成で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.エラー

Posted at
【環境】

・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プロジェクトを作成することができた。

【参考】

Mavenリポジトリのローカルキャッシュ - Qiita

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?