Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

m2eclipse could not find dependencies

 
Prash Negu
Ranch Hand
Posts: 46
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 5852
7
Android Eclipse IDE Ubuntu
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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...
 
Prash Negu
Ranch Hand
Posts: 46
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic