Junit maven Error occured in starting fork, check

2019-04-18 00:30发布

BUILD ERROR Error occured in starting fork, check output in log with using maven 2.2.1 and surefire plugin 2.11 while running junit test-cases

1条回答
ゆ 、 Hurt°
2楼-- · 2019-04-18 00:49

You need to setup surefire plugin to use <forkMode>once</forkMode> like this:

<plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-surefire-plugin</artifactId>
        <version>2.5</version>
            <configuration>
                <skipTests>false</skipTests>
                <testFailureIgnore>true</testFailureIgnore>
                <forkMode>once</forkMode>
            </configuration>
</plugin>
查看更多
登录 后发表回答