From fb620e2087949da64a8d7f599ac149b2e56275b7 Mon Sep 17 00:00:00 2001 From: y-okumura-isp Date: Sat, 13 Mar 2021 12:16:16 +0900 Subject: [PATCH] Add surefire plugin to pom.xml. As this project doesn't have github issues, I write details below. I used the [knowledge](https://github.com/support-project/knowledge) container to build. When I run `mvn install`, the following error occured. ``` ------------------------------------------------------- T E S T S ------------------------------------------------------- Error: Could not find or load main class org.apache.maven.surefire.booter.ForkedBooter Results : Tests run: 0, Failures: 0, Errors: 0, Skipped: 0 [INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 22.260 s [INFO] Finished at: 2021-03-13T02:55:10Z [INFO] ------------------------------------------------------------------------ [ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.12.4:test (default-test) on project markedj: Execution default-test of goal org.apache.maven.pl ugins:maven-surefire-plugin:2.12.4:test failed: The forked VM terminated without saying properly goodbye. VM crash or System.exit called ? -> [Help 1] ``` To fix it, I followed this article. https://stackoverflow.com/questions/50661648/spring-boot-fails-to-run-maven-surefire-plugin-classnotfoundexception-org-apache --- pom.xml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/pom.xml b/pom.xml index 44e2a9a..88f7125 100644 --- a/pom.xml +++ b/pom.xml @@ -153,6 +153,13 @@ + + org.apache.maven.plugins + maven-surefire-plugin + + false + +