编译失败 org.springframework.build.compile.CompilerConventionsPlugin
来源:2-2 Spring源码的下载和编译
![](http://img1.sycdn.imooc.com/user/5c3542c9000160bf09600960-100-100.jpg)
00豆浆油条00
2020-04-07
老师,同学们好,小弟 编译源码的时候遇到下面的问题。如果知道怎么解决的小伙伴,麻烦指点一下。感谢!!!
主要提示,Could not find implementation class 'org.springframework.build.compile.CompilerConventionsPlugin' for plugin .XX 详细说明如下(使用的命令是debug输出:gradlew.bat :spring-oxm:compileTestJava --debug)
21:06:48.168 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] FAILURE: Build failed with an exception. 21:06:48.168 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] 21:06:48.168 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] * Where: 21:06:48.168 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] Build file 'D:\workspace\IDEA\springframework5.2.0.release\build.gradle' line: 320 21:06:48.168 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] 21:06:48.168 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] * What went wrong: 21:06:48.168 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] A problem occurred evaluating root project 'spring'. 21:06:48.169 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] > Could not find implementation class 'org.springframework.build.compile.CompilerConventionsPlugin' for plugin 'org.springframework.build.compile' specified in jar:file:/C:/Users/Mark%20Yi/.gradle/caches/jars-3/542fd93fcd8747fe9749943bd6a6bade/buildSrc.jar!/META-INF/gradle-plugins/org.springframework.build.compile.properties. 21:06:48.169 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] 21:06:48.169 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] * Try: 21:06:48.169 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] Run with --stacktrace option to get the stack trace. Run with --scan to get full insights. 21:06:48.169 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] 21:06:48.169 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] * Get more help at https://help.gradle.org 21:06:48.169 [ERROR] [org.gradle.internal.buildevents.BuildResultLogger] 21:06:48.169 [ERROR] [org.gradle.internal.buildevents.BuildResultLogger] BUILD FAILED in 2s
在cmd或者IDEA都是这个报错,我网络上也没找到合适的答案。
IDEA中报错提示
320行的代码如下
我的版本
JDK 1.8.0_131,jdk1.8.0_92,jdk1.8.0_102 这三个版本都是试过了
Apache Maven 3.6.3
IntelliJ IDEA 2019.3.4 (Ultimate Edition)
5回答
-
00豆浆油条00
提问者
2020-04-08
总于解决了:
背景:我的源码是从慕课网中的git仓库拉下来的,该仓库的buildSrc文件(异常信息中的buildSrc.jar应该是从这个文件生成的)和github对比是少了文件的。我不确定是否这个原因导致的。
解决:从GitHub下载源码,但是真的慢了。我是从QQ群里下载的,是可以编译通过的。
120 -
00豆浆油条00
提问者
2020-04-10
补充慕课网的仓库和github仓库的buildSrc不同的地方
地址:
慕课网的仓库:https://git.imooc.com/coding-420/springframework5.2.0.RELEASE/src/master/buildSrc
github的仓库:https://github.com/spring-projects/spring-framework/tree/v5.2.0.RELEASE/buildSrc
212022-07-25 -
慕瓜8810454
2020-11-24
顶顶顶顶
00 -
翔仔
2020-04-09
感谢同学的分享,感觉是build.gradle配置不对得原因
012020-04-10 -
00豆浆油条00
提问者
2020-04-07
本课程中类似的问题,但是没有找到解决的答案:
https://coding.imooc.com/learn/questiondetail/175274.html
https://coding.imooc.com/learn/questiondetail/178297.html
00
相似问题