spring5 source compiler issues

1, the preparatory work to compile the source code

gradle, jdk, idea and other tools

2, spring5 source address, GitHub: https://github.com/spring-projects/spring-framework/tree/5.1.x , the way I was using clone, clone source file import gradle down, the project will automatically download dependence, where you can modify the maven gradle mirror address to Ali's image:

maven { url "http://maven.aliyun.com/nexus/content/groups/public/"}

Address domestic use can significantly improve download speed dependent

 3, depending on load after the completion of the project can build:

This is because the package will be problems in the spring-core cglib package can not find the problem, the solution: perform these two tasks

This is not because the project itself after the completion of the issue, and this is test code can be executed, I myself added a module to verify,

Add the context-dependent and core, and to inject a bean by annotationconfigapplicationcontext, then you can can occur jdk version is not compatible with the problem, I had to use a jdk1.8-0-31 version will not be compatible with the problem, replace the version after resolving the problem.

Compilation process may also produce kotlin files can not be read to the problem, then you need to add the project to another project, such as in a dependent manner: spring-core-coroutines, to note here is that you want to specify for the main, otherwise, the problem can not be in force

Currently only encountered so many problems,

Get results compiled bean

At this point the source environment to build complete! !

 

Guess you like

Origin www.cnblogs.com/angleshoot/p/11205361.html