Uploaded image for project: 'DSpace'
  1. DSpace
  2. DS-4093

Update maven-surefire-plugin to 3.0.0-M1

    XMLWordPrintable

    Details

    • Attachments:
      0
    • Comments:
      1
    • Documentation Status:
      Not Required

      Description

      On Debian 9 Stretch, I encountered the issue, which is described and awesomely analyzed here:
      https://stackoverflow.com/questions/53010200/maven-surefire-could-not-find-forkedbooter-class/53105007#answer-53016532

      The suggested solution is to upgrade the Maven Surefire plugin to 3.0.0-M1, the latest version.

       

      $ mvn -U clean package -Dmaven.test.skip=false
      ...
      Error: Could not find or load main class org.apache.maven.surefire.booter.ForkedBooter
      ...
      [ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.19.1:test (default-test) on project dspace-services: Execution default-test of goal org.apache.maven.plugins:maven-surefire-plugin:2.19.1:test failed: The forked VM terminated without properly saying goodbye. VM crash or System.exit called?
      [ERROR] Command was /bin/sh -c cd /home/ctenar/src/dspace/dspace-services && /usr/lib/jvm/java-8-openjdk-amd64/jre/bin/java -Xmx512m -javaagent:/home/ctenar/.m2/repository/org/jacoco/org.jacoco.agent/0.7.9/org.jacoco.agent-0.7.9-runtime.jar=destfile=/home/ctenar/src/dspace/dspace-services/target/coverage-reports/jacoco-ut.exec -jar /home/ctenar/src/dspace/dspace-services/target/surefire/surefirebooter8630481062152341467.jar /home/ctenar/src/dspace/dspace-services/target/surefire/surefire4490660586601611771tmp /home/ctenar/src/dspace/dspace-services/target/surefire/surefire_05461673247556340664tmp
      $ mvn -version
      Apache Maven 3.3.9
      Maven home: /usr/share/maven
      Java version: 1.8.0_181, vendor: Oracle Corporation
      Java home: /usr/lib/jvm/java-8-openjdk-amd64/jre
      Default locale: en_US, platform encoding: UTF-8
      OS name: "linux", version: "4.18.0-0.bpo.1-amd64", arch: "amd64", family: "unix"

       

       

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              helix84 Ivan Masár
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated: