请帮我解决这个问题.我不完全理解日志中的错误意味着什么.
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 21.749s
[INFO] Finished at: Thu Apr 24 10:10:20 IST 2014
[INFO] Final Memory: 15M/37M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.15:test (default-test) on project samples.simpleforwarding: Execution default-test of goal org.apache.maven.plugins:maven-surefire-plugin:2.15:test failed: The forked VM terminated without saying properly goodbye. VM crash or System.exit called ?
[ERROR] Command wascmd.exe /X /C ""C:\Program Files\Java\jdk1.7.0_55\jre\bin\java" -Xmx1024m -XX:MaxPermSize=256m -jar E:\OpenDayLight\controller\opendaylight\samples\simpleforwarding\target\surefire\surefirebooter53410321571238933.jar E:\OpenDayLight\controller\opendaylight\samples\simpleforwarding\target\surefire\surefire86076271125218001tmp E:\OpenDayLight\controller\opendaylight\samples\simpleforwarding\target\surefire\surefire_01846991116135903536tmp"
[ERROR] -> [Help 1]
[ERROR]
[ERROR] To see the full …Run Code Online (Sandbox Code Playgroud) 运行maven(3.5.2)构建Spring Boot 2.0.2.RELEASE应用程序(由Web初始化程序生成,具有Web依赖性)无法执行maven-surefire-plugin说:
错误:无法找到或加载主类org.apache.maven.surefire.booter.ForkedBooter
引起:java.lang.ClassNotFoundException:org.apache.maven.surefire.booter.ForkedBooter
为什么会这样?这是boot + surefire集成中的一个问题=一个bug?
作为参考,似乎相关的依赖关系是:
<parent>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId>
<version>2.0.2.RELEASE</version>
<relativePath/>
</parent>
...
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-test</artifactId>
<scope>test</scope>
</dependency>
...
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-web</artifactId>
</dependency>
...
<build>
<plugins>
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
</plugin>
</plugins>
</build>
Run Code Online (Sandbox Code Playgroud) Error: Could not find or load main class org.apache.maven.surefire.booter.ForkedBooter Jenkins.
Run Code Online (Sandbox Code Playgroud)
我从jenkins构建Maven项目时遇到以下错误。
我没有对我的项目进行任何更改,但是当我运行mvn clean install或mvn package
当我在 Spring Tool Suit(几乎是 Eclipse)中运行它们时,这些项目运行良好
以下是我的一个项目
arya@2OC-2OE:~/Documents/workspace-spring-tool-suite/HelperAPI$ mvn clean install
[INFO] Scanning for projects...
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building HelperAPI 0.0.1-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-clean-plugin:3.0.0:clean (default-clean) @ HelperAPI ---
[INFO] Deleting /home/arya/Documents/workspace-spring-tool-suite/HelperAPI/target
[INFO]
[INFO] --- maven-resources-plugin:3.0.2:resources (default-resources) @ HelperAPI ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 1 resource
[INFO] Copying 0 resource
[INFO]
[INFO] --- maven-compiler-plugin:3.7.0:compile (default-compile) @ HelperAPI ---
[INFO] Changes detected - recompiling the module! …Run Code Online (Sandbox Code Playgroud) 我想使用Gitlab CI自动构建我的Spring Boot项目,但是它给了我以下错误消息。我已经尝试了一些在这里找到的解决方案,但是没有任何效果适合我。当我mvn package -B在本地计算机上运行时,它可以正常运行。
[INFO]
[INFO] -------------------------------------------------------
[INFO] T E S T S
[INFO] -------------------------------------------------------
[INFO]
[INFO] Results:
[INFO]
[INFO] Tests run: 0, Failures: 0, Errors: 0, Skipped: 0
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 19.432 s
[INFO] Finished at: 2018-11-09T17:38:27Z
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.21.0:test (default-test) on project ft-backend: There are test failures.
[ERROR]
[ERROR] Please refer to /builds/festivaltinder/backend/target/surefire-reports for the individual test results.
[ERROR] Please refer to …Run Code Online (Sandbox Code Playgroud)