aspose file tools*
The moose likes Ant, Maven and Other Build Tools and the fly likes Maven Dependency Search doesn't work! Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Engineering » Ant, Maven and Other Build Tools
Bookmark "Maven Dependency Search doesn Watch "Maven Dependency Search doesn New topic
Author

Maven Dependency Search doesn't work!

Shadi Mehrabadi
Greenhorn

Joined: Aug 16, 2013
Posts: 12

Hi guys.
I want to add dependencies to my maven project, using add dependency.
but when I open the window and write something to be searched, nothing happened! do you know what should I do?
why the search doesn't work?


these are my error logs:




and when I want to add the dependency manually, this happens:






I Love Here
Wish to become a Real Ranch Hand.
Peter Johnson
author
Bartender

Joined: May 14, 2008
Posts: 5836
    
    7

That version of ojdbc14 is not in Maven central. Click this link to see which versions are available:
http://central.maven.org/maven2/org/apache/maven/plugins/maven-resources-plugin/2.4.1/

If you need that specific version, you will have to find out which repository contains that version.


JBoss In Action
Shadi Mehrabadi
Greenhorn

Joined: Aug 16, 2013
Posts: 12

Thanks Peter.
emmm... How can I run the search?! what's the problem of that?!
when we add dependenies, eclipse goes to .m2 folder and add the dependency that we want to the project. am I right?

I have hibernate-core in my .m2 folder but when I add it's dependency, the error appears:



did anybody have this problem before?

Shadi Mehrabadi
Greenhorn

Joined: Aug 16, 2013
Posts: 12

I just realized what's happening.
when we say add this dependency and click save, eclipse search for it and download it and add it to the .m2 folder.
some of libraries aren't in Maven central, as peter said and I should download and add them manually, with a command in CMD

it seems that my internet connection forbid eclipse to connect and download the libraries and update the index and now, everything is working good.
Peter Johnson
author
Bartender

Joined: May 14, 2008
Posts: 5836
    
    7

I have found Eclipse's "Dependency" dialog to be completely unreliable. I usually just browse (or search) Maven Central to find the artifact I want and grab the dependency information from there.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Maven Dependency Search doesn't work!