亚洲在线久爱草,狠狠天天香蕉网,天天搞日日干久草,伊人亚洲日本欧美

為了賬號安全,請及時綁定郵箱和手機立即綁定

web中 依賴repository 報錯!

14:37:44: Executing task 'build'...



FAILURE: Build failed with an exception.


* Where:

Build file 'E:\imooc-code\todolist\repository\build.gradle' line: 10


* What went wrong:

A problem occurred evaluating project ':repository'.

> Project with path ':model' could not be found in project ':repository'.


* Try:

Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.


* Get more help at https://help.gradle.org


BUILD FAILED in 0s

Project with path ':model' could not be found in project ':repository'.

Open File

14:37:44: Task execution finished 'build'.


正在回答

2 回答

> Project with path ':model' could not be found in project ':repository'. 這個不是說出來了嗎?

最好把你的配置貼出來

0 回復 有任何疑惑可以回復我~
#1

春生啊 提問者

這個多項目,我用的是gradle來構建的。本身對于gradle不太熟悉,多項目構建一些包不能傳遞。 最終我還是改成了單項目構建。
2018-09-02 回復 有任何疑惑可以回復我~
#2

春生啊 提問者 回復 春生啊 提問者

我明天把這個gradle項目配置貼出來
2018-09-02 回復 有任何疑惑可以回復我~
buildscript?{
????ext?{
????????springBootVersion?=?'1.5.4.RELEASE'
//????????springBootVersion?=?'2.0.4.RELEASE'
????????projectJdk?=?'1.8'
????????projectGroup?=?'com.security'
????????projectVersion?=?'0.0.1'
????????projectName?=?'securitydemo'
????????mavenUrl?=?"http://192.168.0.14/nexus/repository/maven-public/";
????}
????repositories?{
????????mavenLocal()
????????maven?{?url?=?mavenUrl?}
????????mavenCentral();

????????maven?{?url?"http://repo.spring.io/milestone"?}
????}
????dependencies?{
????????classpath("org.springframework.boot:spring-boot-gradle-plugin:${springBootVersion}")
????}
}
apply?plugin:?'java'
apply?plugin:?'idea'
apply?plugin:?'war'
apply?plugin:?'org.springframework.boot'
apply?plugin:?'io.spring.dependency-management'
apply?plugin:?'maven-publish'

group?=?projectGroup
version?=?projectVersion
sourceCompatibility?=?projectJdk
repositories?{
????mavenLocal()
????maven?{?url?=?mavenUrl?}
????maven?{?url?"http://repo.spring.io/milestone"?}
}
dependencies?{
????compile('org.springframework.boot:spring-boot-starter-web')
????compile('org.springframework.boot:spring-boot-starter-aop')
????compile("org.apache.tomcat.embed:tomcat-embed-jasper")
????compile('org.springframework.boot:spring-boot-starter-thymeleaf')
????testCompile('org.springframework.boot:spring-boot-starter-test')

????//?導入spring?security的依賴
????compile('org.springframework.boot:spring-boot-starter-security')
????compile?group:?'org.thymeleaf.extras',?name:?'thymeleaf-extras-springsecurity4',?version:?'3.0.2.RELEASE'


????compile('com.alibaba:druid-spring-boot-starter:1.1.10')
????compile("org.mybatis.spring.boot:mybatis-spring-boot-starter:1.3.2")
????compile("mysql:mysql-connector-java:8.0.11")
????compile("com.github.pagehelper:pagehelper-spring-boot-starter:1.2.5")
????compile("org.springframework.boot:spring-boot-devtools")
????compile("tk.mybatis:mapper-spring-boot-starter:2.0.3")
????compile("org.mybatis.generator:mybatis-generator-core:1.3.7")
????compile?group:?'commons-lang',?name:?'commons-lang',?version:?'2.6'
????compile?group:?'commons-beanutils',?name:?'commons-beanutils',?version:?'1.9.3'
????compile?group:?'com.google.code.gson',?name:?'gson',?version:?'2.8.5'
????compile?'com.github.joschi.jackson:jackson-datatype-threetenbp:2.6.4'
????compile?group:?'org.apache.httpcomponents',?name:?'httpclient',?version:?'4.5.6'
????compile('org.springframework.social:spring-social-web:1.1.0.RELEASE')

//????compile?'org.springframework.social:spring-social-config:1.1.6.RELEASE'??//????compile?'org.springframework.social:spring-social-facebook:2.0.3.RELEASE'

//????compile?'org.springframework.social:spring-social-security:1.1.6.RELEASE'
????compile?'org.springframework.social:spring-social-security:1.1.4.RELEASE'

????/*security?*/
????compile?'org.springframework.social:spring-social-config:1.1.6.RELEASE'
????compile?'org.springframework.social:spring-social-security:1.1.6.RELEASE'
????compile?'org.springframework.social:spring-social-core:1.1.6.RELEASE'
????compile?'org.springframework.social:spring-social-web:1.1.6.RELEASE'


}


0 回復 有任何疑惑可以回復我~

舉報

0/150
提交
取消

web中 依賴repository 報錯!

我要回答 關注問題
微信客服

購課補貼
聯系客服咨詢優惠詳情

幫助反饋 APP下載

慕課網APP
您的移動學習伙伴

公眾號

掃描二維碼
關注慕課網微信公眾號