首先編譯報錯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錯