• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

m2eclipse could not find dependencies

 
Ranch Hand
Posts: 46
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
author
Posts: 5856
7
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
reply
    Bookmark Topic Watch Topic
  • New Topic