Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How repair/recreate Eclipse workspace and/or Maven caches/repositories?

I was creating some Maven project under Eclipse with using spring-osgi-bundle-archetype and this causes some plugins etc to download, which have frozen. After I killed Eclipse, many things related to Maven started to cause errors (Unable to download source code, Unable to find artifacts etc, without any apparent reason).

Looks like something was damaged in Eclipse cache or something.

How to clean and rebuild ALL which is possible in the situation?

Deletion of core.eclipse.m2e.* folders from workspace's .metadata folder didn't help.

IF RECREATING PROJECT

enter image description here

IN POM FILE EDITOR

enter image description here

enter image description here

like image 408
Dims Avatar asked Dec 04 '25 07:12

Dims


1 Answers

Try the following:

  1. rm -rf ~/.m2/repository
  2. restart Eclipse with the -clean option
like image 51
Andrew Eisenberg Avatar answered Dec 09 '25 06:12

Andrew Eisenberg



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!