Stema 2019-01-25 17:41 采纳率: 0%
浏览 6867
已结题

在IDEA导入Gradle项目之后一直报错

代码用的Spring Boot+ MyBatis
导入后一直报如下错误

Could not find org.springframework.boot:spring-boot-gradle-plugin:1.5.7.RELEASE.
Searched in the following locations:
    http://maven.aliyun.com/nexus/content/groups/public/org/springframework/boot/spring-boot-gradle-plugin/1.5.7.RELEASE/spring-boot-gradle-plugin-1.5.7.RELEASE.pom
    http://maven.aliyun.com/nexus/content/groups/public/org/springframework/boot/spring-boot-gradle-plugin/1.5.7.RELEASE/spring-boot-gradle-plugin-1.5.7.RELEASE.jar
Required by:
    project :

Gradle相关配置如下

apply plugin: 'java'
apply plugin: 'eclipse-wtp'
apply plugin: 'org.springframework.boot'
if (!DEVELOP_MODE.toBoolean()) {
    apply plugin: 'war'
}

group = 'com.server'
version = '0.0.1-SNAPSHOT'
sourceCompatibility = 1.8

repositories {
    maven { url 'http://maven.aliyun.com/nexus/content/groups/public/' }
}

configurations {
    providedRuntime
}

dependencies {
    compile('org.springframework.boot:spring-boot-starter-aop')
    compile('org.springframework.boot:spring-boot-starter-data-jpa')
    compile('org.springframework.boot:spring-boot-starter-jdbc')
    compile('org.springframework.boot:spring-boot-starter-web')
    compile('org.mybatis.spring.boot:mybatis-spring-boot-starter:1.3.1')
    compile "org.springframework.boot:spring-boot-starter-thymeleaf"
    runtime('mysql:mysql-connector-java')
    if (!DEVELOP_MODE.toBoolean()) {
        providedRuntime('org.springframework.boot:spring-boot-starter-tomcat')
    }
    testCompile('org.springframework.boot:spring-boot-starter-test')
}



  • 写回答

2条回答

  • devmiao 2019-01-25 23:55
    关注
    评论

报告相同问题?

悬赏问题

  • ¥15 关于#c语言#的问题:我现在在做一个墨水屏设计,2.9英寸的小屏怎么换4.2英寸大屏
  • ¥15 模糊pid与pid仿真结果几乎一样
  • ¥15 java的GUI的运用
  • ¥15 Web.config连不上数据库
  • ¥15 我想付费需要AKM公司DSP开发资料及相关开发。
  • ¥15 怎么配置广告联盟瀑布流
  • ¥15 Rstudio 保存代码闪退
  • ¥20 win系统的PYQT程序生成的数据如何放入云服务器阿里云window版?
  • ¥50 invest生境质量模块
  • ¥15 nhanes加权logistic回归,svyglm函数