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