为了账号安全,请及时绑定邮箱和手机立即绑定

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下载
官方微信