Maven m2eclipse Unable to update index for nexus

I have a remote maven repo setup and you can successfully upload artifacts and upload via POM. I also see that the repo was listed along with maven central in my Maven global repositories in Mecleclip.

My problem is that although Maven Central is available for viewing and updating in m2eclipse, my internal is not, and when it tries to update, I get the following:

"Unable to update index for Nexus | http: // devserver: 8081 / nexus / content / groups / public"

The inclusion of this URL in the browser.

Solution: "I was able to fix it by running the Nexus webapp, and I select the recovery index and recovery index in the shared repository group."

but I cannot rebuild the public index, and actually the index works fine for my colleague in the same office.

  • Nexus Nexus Public Mirror Http: // devserver: 8081 / Nexus / Content / Groups / Public *

Any ideas on how to make m2eclipse index properly? Thanks!

+7
source share
1 answer

I had the same problem: this happens, I suppose, when the local m2e index gets corrupted, mainly when Eclipse / VM crashes. I found that for my configuration, the index is in .m2 / repository / .cache / m2e

I closed Eclipse, deleted all subfolders inside this folder, and I fixed the problem.

I'm sure it’s enough to look for the file (s) where the index lies, but deleting the whole directory works fine for me.

Before uninstalling, make sure that your remote maven repository index is not corrupted (right-click on the recovery index in the Nexus public repository).

+6
source

All Articles