spring源码通过gradle转成myeclipse项目失败

麦秆菊 发布于 2016/10/19 17:46
阅读 372
收藏 0
求助:我把下载的spring源码转换成myeclipse项目,想跑跑具体流程,结果失败了,还望各位大神看看是什么原因FAILURE: Build failed with an exception.
* What went wrong:
A problem occurred configuring root project 'spring'.
> Could not resolve all dependencies for configuration ':classpath'.
   > Could not download sonarqube-gradle-plugin.jar (org.sonarsource.scanner.gradle:sonarqube-gradle-plugin:2.1-rc1)
      > Could not get resource 'https://plugins.gradle.org/m2/org/sonarsource/scanner/gradle/sonarqube-gradle-plugin/2.1-rc1/sonarqube-gradle-plugin-2.1-rc1.jar'.
         > Could not GET 'https://plugins.gradle.org/m2/org/sonarsource/scanner/gradle/sonarqube-gradle-plugin/2.1-rc1/sonarqube-gradle-plugin-2.1-rc1.jar'.
            > gradleware-plugins.s3.amazonaws.com
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.

BUILD FAILED

加载中
0
Feng_Yu
Feng_Yu
找不到依赖,检查一下你的build.gradle定义的仓库依赖
麦秆菊
麦秆菊
回复 @Feng_Yu : 还想请教一个问题,我通过这个gradle cleanIdea myEclipse命令来编译,他提示我Task 'myEclipse' not found in root project 'spring'. Some candidates are: 'eclipse'.这个错误信息,这个是怎么解决,我没有eclipse呢
麦秆菊
麦秆菊
回复 @Feng_Yu : 恩,谢谢您
Feng_Yu
Feng_Yu
回复 @麦秆菊 : 编译了一个多小时,测试+编译全过了。应该是默认的mavenCentral()仓库在你那边连接很慢。重试几次应该就行了。你也可以修改build.grade或者~/.gradle/init脚本,添加maven镜像仓库加速下载。具体的操作可以参考官方文档
麦秆菊
麦秆菊
@Feng_Yu 回复@Feng_Yu : git://github.com/SpringSource/Spring-framework.git,,这个就是我clone项目的源码仓库的地址
Feng_Yu
Feng_Yu
回复 @麦秆菊 : 你把build.gradle贴出来,或者直接把源码仓库地址贴出来我看看,我试试能编译不。我们用gradle已经2年了,我还算是比较熟
下一页
返回顶部
顶部