Docker->Maven->Failsafe->Surefire starting fork fails with “The forked VM terminated without properly saying goodbye. VM crash or System.exit called?”

前端 未结 8 1976
生来不讨喜
生来不讨喜 2020-12-30 04:51

As per title: I\'m trying to run Maven automated test from Jenkins slave that is containerized and after battling this for a week now I\'m running out of ideas. It works as

相关标签:
8条回答
  • 2020-12-30 05:44

    I can confirm that I had this problem as well on a Fedora docker image (2020) - just upgrade maven-surefire-plugin to >=2.22.0 and it worked.

    (http://raehal.me/maven-surefire-plugin-on-Docker/)

    0 讨论(0)
  • 2020-12-30 05:46

    We had the same issue while using spring boot with surefire version 2.21.0 on alpine with docker (zenika/alpine-maven). Like mentioned before, downgrading to 2.18.1 might be an option and solved the forked vm termination issue, but triggered new issues with incompatibilities between different slf4j versions. So we did an explicit upgrade to surefire version 2.22.1, which solved the issue in our case.

    <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-surefire-plugin</artifactId>
        <version>2.22.1</version>
    </plugin>
    
    0 讨论(0)
提交回复
热议问题