Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Searching for dependencies returns nothing

I've just installed Eclipse Juno with m2e installed.

Then, I've created a new Maven project and decided I want log4j, so I opened the pom.xml, clicked on the Dependency tab, clicked on the Add... button and typed in log4j.

Zero results. The only thing that it finds is junit (that was automatically added to the project with the quickstart archetype, it seems). Note that I can add the log4j dependency manually and it will work just fine, but I find the search feature really convenient!

I'm a kind of a Maven beginner, though I got m2e working no problem in Indigo. So I'm thinking I might have forgot to set something?

like image 950
Howie Avatar asked Jul 08 '12 15:07

Howie


1 Answers

All you have to do is update or rebuild your workspace maven repository index.

Open your "Maven Repositories" view. Open Global Repositories and right-click on central. Enable full index and rebuild.

Initially the process will take several minutes. After that your search will start working.

You can automate this process by turning Download repository index updates on startup on in your workspace preferences under Maven

like image 188
Eugene Ryzhikov Avatar answered Oct 12 '22 11:10

Eugene Ryzhikov