Java 在maven中未找到htmlunit工件
我有以下pom.xmlJava 在maven中未找到htmlunit工件,java,maven,selenium-webdriver,htmlunit,Java,Maven,Selenium Webdriver,Htmlunit,我有以下pom.xml <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&
<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.aaaa</groupId>
<artifactId>david1</artifactId>
<version>0.0.1-SNAPSHOT</version>
<dependencies>
<dependency>
<groupId>org.seleniumhq.selenium</groupId>
<artifactId>selenium-java</artifactId>
<version>2.37.1</version>
</dependency>
</dependencies>
</project>
4.0.0
com.aaaa
大卫1
0.0.1-快照
org.seleniumhq.selenium
硒爪哇
2.37.1
我得到一个错误:
缺少工件net.sourceforge.htmlunit:htmlunit:jar:2.13
原因可能是什么
从我得到的有效pom
<repositories>
<repository>
<snapshots>
<enabled>false</enabled>
</snapshots>
<id>central</id>
<name>Central Repository</name>
<url>http://repo.maven.apache.org/maven2</url>
</repository>
</repositories>
假的
中心的
中央知识库
http://repo.maven.apache.org/maven2
我试着用谷歌搜索错误,但没有找到任何东西
致以最良好的祝愿
David似乎无法解析
seleniumjava
的一些可传递依赖项
可疑的是,2.37.1
版本未在中列出
它可能还没有发布。尝试更稳定的版本,如
2.35.0
,这看起来像是一个可传递依赖项失败。你试过用谷歌搜索错误信息吗?您使用的是公司Maven存储库,还是标准的存储库?我曾尝试用谷歌搜索结果,但没有帮助。这是我从有效的pom false central存储库repo.maven.apache.org/maven2获得的,您可以在Sonatype OSS存储库中找到必要的jar:Hi,使用2.35。maven网站上可能有一个打字错误,他们在那里使用2.37.1版