2012-02-06 66 views
0

我正在使用Maven 3.0.3。我想使用Selenium Maven插件的selennese目标来运行一些Selenium测试,但是我找不到必需的硒服务器JAR。我有这个在我的pom.xml ...我在哪里可以找到selenium-server Maven的依赖关系?

<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文件或我需要什么资料库添加找到它?

谢谢, - 戴夫

+0

0.9.2 ?! [Current is 2.17](http://mvnrepository.com/artifact/org.seleniumhq.selenium/selenium-server/2.17.0)。另请参阅[maven-selenium dependencies](http://mvnrepository.com/artifact/org.codehaus.mojo/selenium-maven-plugin/2.2)。 – 2012-02-06 14:56:22

+0

不是,它是[2.18.0](http://repo1.maven.org/maven2/org/seleniumhq/selenium/selenium-server/2.18.0/);-) – 2012-02-06 15:05:19

回答

1

它不是从任何Maven回购。

你必须下载它(http://release.seleniumhq.org/selenium-remote-control/0.9.2/),并将其手动添加到本地存储库(http://maven.apache.org/plugins/maven-install-plugin/examples/specific-local-repo.html)。

+0

但[当前版本是](http ://mvnrepository.com/artifact/org.seleniumhq.selenium/selenium-rc/1.0.2)。 – 2012-02-06 15:00:40

+0

不是当前的一个,而是一个“年轻”的;-)最新的是可用的[这里](http://repo1.maven.org/maven2/org/seleniumhq/selenium/selenium-server/2.18.0/) 。 – 2012-02-06 15:03:57

+0

......无论哪种方式,与0.9.2相差甚远,而不是selenium-rc,但OP询问的依赖关系。 – 2012-02-06 15:12:35