第七色在线视频,2021少妇久久久久久久久久,亚洲欧洲精品成人久久av18,亚洲国产精品特色大片观看完整版,孙宇晨将参加特朗普的晚宴

為了賬號安全,請及時綁定郵箱和手機立即綁定
已解決430363個問題,去搜搜看,總會有你想問的

Travis CI Spring Boot 錯誤(Gradle 錯誤)

Travis CI Spring Boot 錯誤(Gradle 錯誤)

德瑪西亞99 2023-11-01 16:58:02
我在運行 Travis Ci 時遇到問題。我的 Spring Boot 應用程序出現(xiàn)以下錯誤。0.01s$ java -Xmx32m -versionopenjdk version "11.0.2" 2019-01-15OpenJDK 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 -versionjavac 11.0.23.37s$ ./gradlew assembleError: Could not find or load main class org.gradle.wrapper.GradleWrapperMainCaused by: java.lang.ClassNotFoundException: org.gradle.wrapper.GradleWrapperMainThe command "eval ./gradlew assemble " failed. Retrying, 2 of 3.Error: Could not find or load main class org.gradle.wrapper.GradleWrapperMainCaused by: java.lang.ClassNotFoundException: org.gradle.wrapper.GradleWrapperMainThe command "eval ./gradlew assemble " failed. Retrying, 3 of 3.Error: Could not find or load main class org.gradle.wrapper.GradleWrapperMainCaused by: java.lang.ClassNotFoundException: org.gradle.wrapper.GradleWrapperMainThe 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: javasudo: falsescript: mvn clean verify讓我知道您需要哪些文件。
查看完整描述

2 回答

?
一只甜甜圈

TA貢獻1836條經(jīng)驗 獲得超5個贊

看起來您忘記簽入 gradle/wrapper 中的文件。它應該有兩個文件gradle-wrapper.jargradle-wrapper.properties.



查看完整回答
反對 回復 2023-11-01
?
拉風的咖菲貓

TA貢獻1995條經(jīng)驗 獲得超2個贊

好吧,問題是我的 Spring-boot 應用程序同時具有 Maven 和 Gradle 文件。我相信,當我嘗試不同的東西時,我生成了 Gradew 文件,因此 Travis CI 正在尋找 Gradle。


解決方案是刪除所有 gradle 文件并重新運行 travis。我已經(jīng)更新了我的 travis.yml 如下


jdk:

    - oraclejdk8


# would just use default install/script but the ./mvnw script errors on travis

# obviously this only works for maven builds right now...

install:

    - mvn install -DskipTests=true -Dmaven.javadoc.skip=true -B -V

    - mvn cobertura:cobertura


script:

    - mvn test


dist: trusty


after_success:

  - bash <(curl -s https://codecov.io/bash) -t 


查看完整回答
反對 回復 2023-11-01
  • 2 回答
  • 0 關注
  • 156 瀏覽
慕課專欄
更多

添加回答

舉報

0/150
提交
取消
微信客服

購課補貼
聯(lián)系客服咨詢優(yōu)惠詳情

幫助反饋 APP下載

慕課網(wǎng)APP
您的移動學習伙伴

公眾號

掃描二維碼
關注慕課網(wǎng)微信公眾號