gpt4 book ai didi

java - Travis CI Spring Boot 错误(Gradle 错误)

转载 作者:行者123 更新时间:2023-12-01 23:07:40 24 4
gpt4 key购买 nike

我在运行 Travis Ci 时遇到问题。我的 Spring Boot 应用程序遇到以下错误。

0.01s$ java -Xmx32m -version
openjdk version "11.0.2" 2019-01-15
OpenJDK Runtime Environment 18.9 (build 11.0.2+9)
OpenJDK 64-Bit Server VM 18.9 (build 11.0.2+9, mixed mode)
$ javac -J-Xmx32m -version
javac 11.0.2
3.37s$ ./gradlew assemble
Error: Could not find or load main class org.gradle.wrapper.GradleWrapperMain
Caused by: java.lang.ClassNotFoundException: org.gradle.wrapper.GradleWrapperMain
The command "eval ./gradlew assemble " failed. Retrying, 2 of 3.
Error: Could not find or load main class org.gradle.wrapper.GradleWrapperMain
Caused by: java.lang.ClassNotFoundException: org.gradle.wrapper.GradleWrapperMain
The command "eval ./gradlew assemble " failed. Retrying, 3 of 3.
Error: Could not find or load main class org.gradle.wrapper.GradleWrapperMain
Caused by: java.lang.ClassNotFoundException: org.gradle.wrapper.GradleWrapperMain
The command "eval ./gradlew assemble " failed 3 times.
The command "./gradlew assemble" failed and exited with 1 during .
Your build has been stopped.

.travis.yml 文件

language: java
sudo: false
script: mvn clean verify

让我知道您需要哪些文件。

最佳答案

您似乎忘记 checkin gradle/wrapper 中的文件。它应该有两个文件 gradle-wrapper.jargradle-wrapper.properties

关于java - Travis CI Spring Boot 错误(Gradle 错误),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/58393867/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com