Maven build and maven-failsafe-plugin - The forked VM terminated without properly saying goodbye

前端 未结 6 2114
刺人心
刺人心 2020-12-18 22:19

I use Docker and https://github.com/fabric8io/docker-maven-plugin for my integration tests.

On my Windows 10 (after updating to Windows 10 1709) mac

6条回答
  •  抹茶落季
    2020-12-18 22:43

    I have version 2.22.2 and still get that error. I get pass this by setting the timeout for surefire. So the latest added tests added execution time to exceed the default 30 secs.

    mvn test -Dsurefire.exitTimeout=40
    

    default value for timeout is 30
    https://maven.apache.org/surefire/maven-surefire-plugin/test-mojo.html#forkedProcessExitTimeoutInSeconds

    2.22.2

    Edit: Actually the logging happening during the tests added up so much time to get timeout. So I changed logging levels.

提交回复
热议问题