Maven错误 - 无法解析项目的依赖项

时间:2013-01-23 08:51:28

标签: maven

我正在按照

中给出的步骤进行操作

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

当我运行'mvn clean install'时,我收到以下错误:

[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.opera:operadriver:jar:1.1 (compile)]: Failed to read artifact descriptor for org.webbitserver:webbit:jar:0.4.14: Could not transfer artifact org.sonatype.oss:oss-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

我该如何解决这个问题?

3 个答案:

答案 0 :(得分:1)

检查Opera driver。此驱动程序不是Selenium的默认部分,因为它是由第三方开发的。看看这个page,如果你向下滚动一下,就会有一个包含第三方驱动程序列表的列表。

答案 1 :(得分:0)

我觉得Selenium 2.28中的Opera支持直到日期都没有...请纠正我如果我错了

答案 2 :(得分:0)

看起来这是一个网络问题,我再次尝试,它成功了! 无论如何,谢谢你的帮助。