无法将selenium服务器作为Maven任务启动

时间:2012-02-10 18:30:13

标签: maven selenium

我正在使用Maven 3.0.3。作为预集成测试阶段的一部分,我无法启动Selenium服务器,因为Maven无法找到依赖项。我把这个包括在内......

    <dependency> 
        <groupId>org.openqa.selenium.server</groupId> 
        <artifactId>selenium-server</artifactId> 
        <version>0.9.2</version> 
        <classifier>standalone</classifier> 
    </dependency>

已成功从内部存储库中读取,但我遇到了错误

[ERROR] Failed to execute goal on project myco-productplus-web: Could not resolve dependencies for project myco-productplus:myco-productplus-web:war:1.0-SNAPSHOT:Could not find artifact org.openqa.selenium.server:selenium-server-coreless:jar:0.9.2 in mycoInternalRelease (http://maven/maven_repo/repositories/release) -> [Help 1]

有谁知道我在哪里可以获得Selenium-coreless JAR文件,org.openqa.selenium.server.selenium-server-coreless,版本0.9.2(或者,我知道如何启动Selenium服务器)?这是我用来启动Selenium服务器的插件...

        <plugin>
            <groupId>org.codehaus.mojo</groupId>
            <artifactId>selenium-maven-plugin</artifactId>
            <version>1.1</version>
            <configuration>
                <browser>*firefox</browser>
                <suite>src/test/resources/selenium-test-suite.html</suite>
                <startURL>http://localhost:${tomcat.servlet.port}/${project.artifactId}</startURL>
            </configuration>
            <executions>
                <execution>
                    <id>start</id>
                    <phase>pre-integration-test</phase> 
                    <goals> 
                        <goal>start-server</goal>
                    </goals>
                    <configuration>
                        <background>true</background> 
                        <logOutput>true</logOutput>
                    </configuration>
                </execution>
                ...
            </executions>

谢谢, - 戴夫

0 个答案:

没有答案