我使用的是Maven 3.0.3。我想使用Selenium Maven插件的selenese目标来运行一些Selenium测试,但是我找不到必要的selenium-server JAR。我的pom.xml里有这个。
<dependency>
<groupId>org.openqa.selenium.server</groupId>
<artifactId>selenium-server</artifactId>
<version>0.9.2</version>
</dependency>但是当我运行我的构建时,我得到了错误
[ERROR] Failed to execute goal on project cme-productplus-web2: Could not resolve dependencies for project cme-productplus2:cme-productplus-web2:war:1.0-SNAPSHOT: Could not find artifact org.openqa.selenium.server:selenium-server:jar:0.9.2in central (http://repo1.maven.org/maven2) -> [Help 1]我从哪里得到这个神秘的JAR文件,或者我需要添加什么存储库才能找到它?
谢谢,-戴夫
发布于 2012-02-06 22:55:36
它不能从任何Maven存储库中获得。
您必须下载它(http://release.seleniumhq.org/selenium-remote-control/0.9.2/),并在本地存储库(http://maven.apache.org/plugins/maven-install-plugin/examples/specific-local-repo.html)中手动添加它。
https://stackoverflow.com/questions/9161703
复制相似问题