Idea使用gradle编译报错


首先编译报错log4j:
Errors occurred while build effective model from F:\work\maven_work\repository\log4j\log4j\1.2.16\log4j-1.2.16.pom:
'build.plugins.plugin[io.spring.gradle.dependencymanagement.org.apache.maven.plugins:maven-antrun-plugin].dependencies.dependency.scope' for junit:junit:jar must be one of [compile, runtime, system] but is 'test'. in log4j:log4j:1.2.16


换多次版本后最终换成4.8版本,这时仍然报log4j错


最终在gradle下init.d下增加init.gradle文件,其中maven url指向本地maven仓库,idea的gradle配置gradle user home为init.d文件夹位置,项目能够启动,不过仍然报log4j错


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM