Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/maven/6.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Eclipse Maven[ERROR]无法执行目标org.apache.Maven.plugins:Maven surefire plugin:2.14.1:test_Eclipse_Maven_Selenium - Fatal编程技术网

Eclipse Maven[ERROR]无法执行目标org.apache.Maven.plugins:Maven surefire plugin:2.14.1:test

Eclipse Maven[ERROR]无法执行目标org.apache.Maven.plugins:Maven surefire plugin:2.14.1:test,eclipse,maven,selenium,Eclipse,Maven,Selenium,运行maven项目时出错 错误]无法执行目标org.apache.maven.plugins:maven surefire插件:2.14.1:project BasePolicy上的测试(默认测试):执行目标org.apache.maven.plugins:maven surefire插件:2.14.1:test失败:分叉过程中出现错误 <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.o

运行maven项目时出错

错误]无法执行目标org.apache.maven.plugins:maven surefire插件:2.14.1:project BasePolicy上的测试(默认测试):执行目标org.apache.maven.plugins:maven surefire插件:2.14.1:test失败:分叉过程中出现错误

<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.cucumber</groupId>
    <artifactId>BasePolicy</artifactId>
    <version>0.0.1-SNAPSHOT</version>
    <packaging>jar</packaging>

    <name>BasePolicy</name>
    <url>http://maven.apache.org</url>

    <properties>
        <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
    </properties>

    <dependencies>
        <dependency>
            <groupId>junit</groupId>
            <artifactId>junit</artifactId>
            <version>4.11</version>
            <scope>test</scope>
        </dependency>
        <dependency>
            <groupId>info.cukes</groupId>
            <artifactId>cucumber-java</artifactId>
            <version>1.2.5</version>
            <scope>test</scope>
        </dependency>
        <dependency>
            <groupId>info.cukes</groupId>
            <artifactId>cucumber-picocontainer</artifactId>
            <version>1.2.5</version>
            <scope>test</scope>
        </dependency>
        <dependency>
            <groupId>info.cukes</groupId>
            <artifactId>cucumber-junit</artifactId>
            <version>1.2.5</version>
            <scope>test</scope>
        </dependency>
        <dependency>
            <groupId>jdom</groupId>
            <artifactId>jdom</artifactId>
            <version>1.1</version>
        </dependency>
    </dependencies>
    <build>
        <plugins>
            <plugin>
                <artifactId>maven-assembly-plugin</artifactId>
                <configuration>
                    <archive>
                        <manifest>
                            <mainClass>com.cucumber.Base.NewMain</mainClass>
                        </manifest>
                    </archive>
                    <descriptorRefs>
                        <descriptorRef>jar-with-dependencies</descriptorRef>
                    </descriptorRefs>
                </configuration>
            </plugin>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-surefire-plugin</artifactId>
                <version>2.14.1</version>
            </plugin>
            <plugin>
                <artifactId>maven-compiler-plugin</artifactId>
                <version>3.3</version>
                <configuration>
                    <source>1.7</source>
                    <target>1.7</target>
                </configuration>
            </plugin>
            <plugin>
                <artifactId>maven-failsafe-plugin</artifactId>
                <executions>
                    <execution>
                        <goals>
                            <goal>integration-test</goal>
                            <goal>verify</goal>
                        </goals>
                    </execution>
                </executions>
            </plugin>
        </plugins>
    </build>
</project>

4.0.0
黄瓜
基本政策
0.0.1-快照
罐子
基本政策
http://maven.apache.org
UTF-8
朱尼特
朱尼特
4.11
测试
信息杯
黄瓜爪哇
1.2.5
测试
信息杯
黄瓜皮容器
1.2.5
测试
信息杯
黄瓜刺柏
1.2.5
测试
Java文档对象模型
Java文档对象模型
1.1
maven汇编插件
com.cucumber.Base.NewMain
带有依赖项的jar
org.apache.maven.plugins
maven surefire插件
2.14.1
maven编译器插件
3.3
1.7
1.7
maven故障保护插件
集成测试
验证

您提供的错误太笼统。因此,请查找更详细的错误(如果有),或者使用
-X
运行相同的命令,查看是否获得了更多详细信息。您提供的错误太普遍了。因此,要么查找更详细的错误(如果有),要么使用
-X
运行相同的命令,查看是否获得更多详细信息。