eclipsemavenm2eeclipse-kepler

Cannot search for artifact in Eclipse Kepler using m2e plugin


I tried the new Eclipse Kepler that already comes with a maven plugin.

But when I want to add a dependency (open the pom.xml, go to dependencies tab and click add) I can input some string like "jetty" in the search box but nothing happens. In older versions I got a list of all dependencies containing "jetty".

I don't know if this is important but I directly get an info when opening the "add dependency screen": "Artifact Id cannot be empty".

I do not use a proxy or have any network issues.

I also missed an information something like: "indexing maven repo..."

Any idea?

Thanks!


Solution

  • I had similar situation and by googling for a while i found out that this is most likely because your central Repository index might never have been updated. For this what you can do is

    1. Go to Window > Show View > Other > type Maven in filter and select Maven Repositories.
    2. In Maven Repositories tab Expand Global Repositories, Right-click on central and Update Index.

    also you can set up index to update on eclipse startup Windows > Preferences > Maven and check "Download repository index updates on startup".

    Hope this helps some one else.