首先编译报错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错