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

為了賬號(hào)安全,請(qǐng)及時(shí)綁定郵箱和手機(jī)立即綁定
已解決430363個(gè)問題,去搜搜看,總會(huì)有你想問的

Gradle build命令構(gòu)建基于SpringCloud項(xiàng)目,執(zhí)行到某一個(gè)子項(xiàng)目時(shí),提示程序包不存在

Gradle build命令構(gòu)建基于SpringCloud項(xiàng)目,執(zhí)行到某一個(gè)子項(xiàng)目時(shí),提示程序包不存在

明月笑刀無情 2019-01-19 00:42:03
整個(gè)項(xiàng)目是基于 spring cloud 的 父項(xiàng)目的 build.gradle 配置: group 'com.xxx.yyy' version '0.1.0' buildscript { ext { springBootVersion = '1.5.10.RELEASE' } repositories { mavenCentral() } dependencies { classpath("org.springframework.boot:spring-boot-gradle-plugin:${springBootVersion}") classpath('se.transmode.gradle:gradle-docker:1.2') } } subprojects { apply plugin: 'idea' apply plugin: 'java' apply plugin: 'docker' apply plugin: 'org.springframework.boot' sourceCompatibility = 1.8 targetCompatibility = 1.8 sourceSets { main { java.srcDir "src" } } repositories { mavenCentral() } configurations { all*.exclude module: 'spring-boot-starter-logging' all*.exclude module: 'logback-classic' } dependencyManagement { imports { mavenBom 'org.springframework.cloud:spring-cloud-dependencies:Edgware.SR3' } } dependencies { compile('org.springframework.boot:spring-boot-starter') compile('org.springframework.boot:spring-boot-starter-log4j2') compile('org.springframework.boot:spring-boot-starter-test') compile('com.fasterxml.jackson.dataformat:jackson-dataformat-yaml') } } 子項(xiàng)目的配置就比較簡(jiǎn)單了子項(xiàng)目1: group 'com.xxx.yyy' version '0.1.0' archivesBaseName = 'prj1' dependencies { compile('org.springframework.boot:spring-boot-starter-web') // ... } 子項(xiàng)目2: group 'com.xxx.yyy' version '0.1.0' archivesBaseName = 'prj2' dependencies { compile project(":prj1") } 在父項(xiàng)目目錄下,執(zhí)行 gradle build -x test 命令時(shí) > Task :prj2:compileJava ConsumerHelper.java:5: 錯(cuò)誤: 程序包c(diǎn)om.xxx.yyy.zzz不存在 請(qǐng)問這個(gè)是什么原因?qū)е?。?!?
查看完整描述

3 回答

?
滄海一幻覺

TA貢獻(xiàn)1824條經(jīng)驗(yàn) 獲得超5個(gè)贊

我這樣沒有用

查看完整回答
反對(duì) 回復(fù) 2019-03-01
  • 3 回答
  • 0 關(guān)注
  • 602 瀏覽
慕課專欄
更多

添加回答

舉報(bào)

0/150
提交
取消
微信客服

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

幫助反饋 APP下載

慕課網(wǎng)APP
您的移動(dòng)學(xué)習(xí)伙伴

公眾號(hào)

掃描二維碼
關(guān)注慕課網(wǎng)微信公眾號(hào)