GitLab CI is failing due to maven-surefire-plugin with VM crash

后端 未结 5 1683
小鲜肉
小鲜肉 2021-01-05 08:11

We have around of 10 different applications that are Spring Boot projects with Groovy.

All of our projects build correctly in all developer work stations and they we

5条回答
  •  耶瑟儿~
    2021-01-05 08:38

    The issues are related to the latest maven docker images.

    There is an open github issue where people reported the same problem: https://github.com/carlossg/docker-maven/issues/90

    After an investigation I could sort out the problem using alpine version that saved me of adding the maven-surefire-plugin workaround. It's important to mention that using the surefire workaround brings another problem such as plugins like jacoco don't run since they need the VM fork.

    So, these images work seamlessly (no surefire workaround was needed):

    • maven:3.3.9-jdk-8
    • maven:3.5.3-jdk-8
    • maven:3.5.4-jdk-8-alpine
    • maven:3.6.0-jdk-8-alpine

    However if we use the non alpine version the issue persists.

提交回复
热议问题