[DuraSpace JIRA] (DS-4093) Update maven-surefire-plugin to 3.0.0-M1

2 views
Skip to first unread message

Ivan Masár (DuraSpace JIRA)

unread,
Dec 3, 2018, 5:27:01 PM12/3/18
to dspace-...@googlegroups.com
Ivan Masár created an issue
 
DSpace / Code Task DS-4093
Update maven-surefire-plugin to 3.0.0-M1
Issue Type: Code Task Code Task
Affects Versions: 7.0
Assignee: Unassigned
Components: Unit Testing Framework
Created: 03/Dec/18 4:26 PM
Fix Versions: 7.0
Labels: tests
Priority: Minor Minor
Reporter: Ivan Masár

 

$ 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

 

 

On Debian 9 Stretch, I encountered the issue 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 -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"

 

 

Add Comment Add Comment
 
This message was sent by Atlassian JIRA (v7.10.0#710001-sha1:0399717)

Ivan Masár (DuraSpace JIRA)

unread,
Dec 3, 2018, 5:39:01 PM12/3/18
to dspace-...@googlegroups.com
Ivan Masár updated an issue
Change By: Ivan Masár
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.

 
{noformat}

$ 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{noformat}
 

 

On Debian 9 Stretch, I encountered the issue 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.

 
{noformat}

$ 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"{noformat}
 

 

Ivan Masár (DuraSpace JIRA)

unread,
Dec 3, 2018, 5:39:01 PM12/3/18
to dspace-...@googlegroups.com

Anonymous (DuraSpace JIRA)

unread,
Dec 3, 2018, 6:23:01 PM12/3/18
to dspace-...@googlegroups.com
Issue was automatically transitioned when helix84 created pull request #2278 in GitHub
Change By: helix84
Status: Received Code Review Needed

Tim Donohue (LYRASIS JIRA)

unread,
Apr 28, 2021, 5:46:01 PM4/28/21
to dspace-...@googlegroups.com
Tim Donohue closed an issue as Fixed
 

Closing, as this is obsolete (not reproducible)

Change By: Tim Donohue
Resolution: Fixed
Status: Code Review Needed Closed
This message was sent by Atlassian Jira (v8.13.2#813002-sha1:c495a97)
Atlassian logo

Tim Donohue (LYRASIS JIRA)

unread,
Apr 28, 2021, 5:46:01 PM4/28/21
to dspace-...@googlegroups.com
Tim Donohue updated an issue
Change By: Tim Donohue
Fix Version/s: 7.0

Tim Donohue (LYRASIS JIRA)

unread,
Apr 28, 2021, 5:47:01 PM4/28/21
to dspace-...@googlegroups.com
Tim Donohue closed an issue as Cannot Reproduce
Change By: Tim Donohue
Resolution: Fixed Cannot Reproduce
Status: Closed
Reply all
Reply to author
Forward
0 new messages