【发布时间】:2015-02-20 16:55:21
【问题描述】:
我试图简单地将最新的 Selenium 2.44.0 添加到我在 IntelliJ 中的项目中,出于某种原因,它对 2.42.0 感到满意,但 2.44.0 出现错误
“没有找到依赖'''org.seleniumhq.selenium:selenium-java:2.44.0'''”
有什么想法吗?我的 POM 全文:-
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>com.test.testproj</groupId>
<artifactId>twitterati</artifactId>
<version>1.0-SNAPSHOT</version>
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
</properties>
<dependencies>
<dependency>
<groupId>org.hamcrest</groupId>
<artifactId>hamcrest-all</artifactId>
<version>1.3
</version>
</dependency>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>4.11</version>
</dependency>
<dependency>
<groupId>org.seleniumhq.selenium</groupId>
<artifactId>selenium-java</artifactId>
<version>2.44.0</version>
</dependency>
</dependencies>
【问题讨论】:
-
2.43 工作了,U 更新了 maven 仓库???
-
不,我无法使用任何其他版本进行更新。我也在尝试从命令行使用 mvn clean install 但错误是:“无法在 org.seleniumhq 收集依赖项......”我开始认为这是防火墙/网络问题
标签: java maven selenium intellij-idea selenium-webdriver