Ste*_*ike 0 java selenium intellij-idea maven selenium-webdriver
我试图简单地将最新的 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>
Run Code Online (Sandbox Code Playgroud)
首先尝试通过强制更新在命令行上运行。
mvn clean install -U
Run Code Online (Sandbox Code Playgroud)
如果失败,请在删除本地存储库后尝试相同的操作并检查 ~/.m2/settings.xml 文件的内容,并让我们知道其中是否有任何内容。
然后如果仍然失败.. 看看你是否可以 ping Maven 存储库。(repo1.maven.apache.org)。
| 归档时间: |
|
| 查看次数: |
7214 次 |
| 最近记录: |