LoginSignup
49
43

More than 5 years have passed since last update.

Eclipse + Maven(m2e)でライブラリが見つからない的なエラーが出たときの対応方法

Posted at

以下いずれかでだいたいは解決しました。

indexのリビルド/再作成

Eclipse上で、

  1. Windows -> Show View -> Maven Repositories
  2. Local Repositories, Global Repositories内の各リポジトリを右クリック -> Rebuild Index or Update Index

lastUpdated

ファイルシステム上で、

  1. ローカルリポジトリ内の対象ライブラリのフォルダを探す。 デフォルトではユーザーのホームディレクトリ。WindowsだとC:\Users\{ユーザー名}\.m2\repository\\{groupId}\\{artifactId}\\{version}
  2. ライブラリ名-{versoin}.lastUpdatedを削除する。

Eclipse上で、

  1. 対象プロジェクトを右クリック -> Maven -> Update Project…
49
43
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
49
43