File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Ant, Maven and Other Build Tools and the fly likes Maven Error - could not resolve dependencies for project 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 "Maven Error - could not resolve dependencies for project" Watch "Maven Error - could not resolve dependencies for project" New topic
Author

Maven Error - could not resolve dependencies for project

ParagM Pmahajan
Greenhorn

Joined: Nov 16, 2011
Posts: 10

Hi ,

I am following the steps given at :

http://seleniumhq.org/docs/03_webdriver.jsp#java

When I run 'mvn clean install' , I get following error :

[ERROR] Failed to execute goal on project MySel20Proj: Could not resolve dependencies for project MySel20Proj:MySel20Proj:jar:1.0: Failed to collect dependencies for [org.seleniumhq.selenium:selenium-java:jar:2.28.0 (compile), com.operaperadriver:jar:1.1 (compile)]: Failed to read artifact descriptor for org.webbitserver:webbit:jar:0.4.14: Could not transfer artifact org.sonatype.ossss-parent:pom:6 from/to central (http://repo.maven.apache.org/maven2): Read timed out -> [Help 1] [ERROR] [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch. [ERROR] Re-run Maven using the -X switch to enable full debug logging. [ERROR] [ERROR] For more information about the errors and possible solutions, please read the following articles: [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/DependencyResolutionException

I am new to Maven and hence need some help to solve this .
Do I need to change my pom.xml ?

Thanks a lot .
Jayesh A Lalwani
Bartender

Joined: Jan 17, 2008
Posts: 2431
    
  28

Can you post a few more lines from the log before that error? You will see logs where it says that it is trying to download dependencies from the maven repo. Does it say its successful? If not, can you try copying that URL and pasting into your web browser?

The problem could be that you are unable to connect to the maven repo, so the build cannot download the dependency. It could be a network glitch or a persistent problem. You will have to first check if you are able to connect to the repo.
ParagM Pmahajan
Greenhorn

Joined: Nov 16, 2011
Posts: 10
Looks like it was a network issue , I tried again and it was successful !
Thanks anyways for your help.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Maven Error - could not resolve dependencies for project