Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Travis JDK10 fails with Could not find or load main class org.apache.maven.surefire.booter.ForkedBooter #179

Closed
snuyanzin opened this issue Oct 26, 2018 · 1 comment

Comments

@snuyanzin
Copy link
Collaborator

At the test stage JDK10 fails like below
It started fail while attempting to run jmockit agent. After analyzing of maven-surefire documentation and settings it looks like maven surefire plugin tries to run agent with useManifestOnlyJar=true (by default). At the same time there is nothing about org.apache.maven.surefire.booter.ForkedBooter in sqlline's manifest file.
Adding <useManifestOnlyJar>false</useManifestOnlyJar> resolves the issue

Error: Could not find or load main class org.apache.maven.surefire.booter.ForkedBooter
Caused by: java.lang.ClassNotFoundException: org.apache.maven.surefire.booter.ForkedBooter
Results :
Tests run: 0, Failures: 0, Errors: 0, Skipped: 0
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 10.608 s
[INFO] Finished at: 2018-10-25T13:45:24Z
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.16:test (default-test) on project sqlline: Execution default-test of goal org.apache.maven.plugins:maven-surefire-plugin:2.16:test failed: The forked VM terminated without saying properly goodbye. VM crash or System.exit called ?
[ERROR] Command was/bin/sh -c cd /src && /usr/lib/jvm/java-10-openjdk-amd64/bin/java -Xmx1024m -javaagent:/root/.m2/repository/org/jmockit/jmockit/1.30/jmockit-1.30.jar -jar /src/target/surefire/surefirebooter10549922796007415536.jar /src/target/surefire/surefire1226533000070400092tmp /src/target/surefire/surefire_04317680918538774786tmp
@julianhyde
Copy link
Owner

Fixed in 73bfb87, PR #180. Thanks @snuyanzin!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants