aspose file tools*
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
Author

m2eclipse could not find dependencies

Prash Negu
Ranch Hand

Joined: Apr 20, 2009
Posts: 45
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?

Thanks,
Prashant
Peter Johnson
author
Bartender

Joined: May 14, 2008
Posts: 5827
    
    7

The Nexus installation guide at http://www.sonatype.com/books/nexus-book/reference/maven-sect-single-group.html 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: 45
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?

Regards,
Prashant
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: m2eclipse could not find dependencies