Junit maven Error occured in starting fork, check output in log [closed]

邮差的信 提交于 2019-12-06 16:34:51

问题


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:


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>


来源:https://stackoverflow.com/questions/9320620/junit-maven-error-occured-in-starting-fork-check-output-in-log

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!