Affects: \

I reference import-into-idea.md ,but it is fail. It took me a lot of time!

environment:

  • idea201902
  • gradle 4.8 | gradle 5.6
  • jdk 1.8
  • aspects 1.9

Various problems

` Error:(26, 34) java: 程序包org.apache.commons.logging不存在

Error:(350, 51) java: 找不到符号 符号: 变量 CoroutinesUtils 位置: 类 org.springframework.core.ReactiveAdapterRegistry.CoroutinesRegistrar

Error:(26, 38) java: 找不到符号 符号: 类 InstrumentationSavingAgent 位置: 程序包 org.springframework.instrument `

My steps

  1. down spring-framework branch of master
  2. gradlew.bat :spring-oxm:compileTestJava
  3. Import into IntelliJ (File -> New -> Project from Existing Sources -> Navigate to directory -> Select build.gradle)
  4. gradle spring-core:compileTestJava
  5. gradle spring-beans:compileTestJava
  6. gradle spring-context:compileTestJava
  7. Configuring the aspects compiler for spring-aop
  8. gradle spring-aspects :compileTestJava
  9. new mytest Module
dependencies {
    compile(project(":spring-context"))
    compile(project(":spring-beans"))
    compile(project(":spring-core"))
}
  1. my test code ,
public static void main(String[] args) {
        BeanFactory xmlBf = new XmlBeanFactory(new ClassPathResource("beanFactoryTest.xml"));
        MyTestBean myTestBean = (MyTestBean) xmlBf.getBean("myTestBean");
        System.out.println("myTestBean.Name = " + myTestBean.getName());
    }


Comment From: youngfuture

It is my first time import spring-framwork source code.I tried it many times in a few days. It is still failed! I'm going crazy.Who can give me some suessgestions! thank you very much!!!

Comment From: youngfuture

I found the problem last night. My JDK is not pure,I changed a new one.It works! Reference link

Comment From: poo0054

Hi, how did you solve it