The moose likes Ant, Maven and Other Build Tools and the fly likes m2eclipse could not find dependencies Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » Ant, Maven and Other Build Tools
Bookmark "m2eclipse could not find dependencies" Watch "m2eclipse could not find dependencies" New topic

m2eclipse could not find dependencies

Prash Negu
Ranch Hand

Joined: Apr 20, 2009
Posts: 46
Hi All,

I was exploring on using Nexus. I installed and started Nexus repository and enabled "Download Remote Indexes" to maven central and all other repositories.

Then, i configured maven to use nexus using below in setting.xml.

But, when working with m2eclipse, if i try to add lets say Springframework dependencies, the "Select Dependency" window in eclipse always shows 0 results. The indexing takes only couple seconds. Is this the cause? If I remove the above nexus configuration, the indexing takes lot of time and it is able to search the dependencies.

How do i fix this problem?

Peter Johnson

Joined: May 14, 2008
Posts: 5852

The Nexus installation guide at also contains a <profiles> section. I don't know if adding that will solve your problem (I have it in mine and searching for dependencies within Eclipse works just fine).

Also, go to you Nexus web page and try searching for the artifact there. That will at least let you know whether you have Nexus itself correctly configured.

Finally, please use code tags when posting xml text - makes it easier to read. I'll fix you post for you...

JBoss In Action
Prash Negu
Ranch Hand

Joined: Apr 20, 2009
Posts: 46
Thanks Peter.

When i serach in my Nexus, the required artifact is not showing up as it is NOT yet downloaded into Nexus. But, it is present in Maven central repository. So, anything not present in nexus(but present in proxy repositories) will not be indexd by m2eclipse?

Also the artifacts which are present in Nuxus repository, they will show up in M2Eclipse "Select Dependency" UI. But, what about those yet to be added into Nexus repository?

I agree. Here's the link:
subject: m2eclipse could not find dependencies
It's not a secret anymore!