아이디어를 컴파일에 스프링 프레임 워크 5.x를 구축하는 방법

아이디어를 컴파일에 스프링 프레임 워크 5.x를 구축하는 방법

  1. Gradle을 설치 구성(略)

  2. 다운로드 출처 : 자식 클론 https://github.com/spring-projects/spring-framework.git

  3. 아래의 프로젝트에 따라 import-into-idea.md동작 프롬프트 파일

    The following has been tested against IntelliJ IDEA 2016.2.2
    
    ## Steps
    
    _Within your locally cloned spring-framework working directory:_
    
    1. Precompile `spring-oxm` with `./gradlew :spring-oxm:compileTestJava`
    2. Import into IntelliJ (File -> New -> Project from Existing Sources -> Navigate to directory -> Select build.gradle)
    3. When prompted exclude the `spring-aspects` module (or after the import via File-> Project Structure -> Modules)
    4. Code away
    
    ## Known issues
    
    1. `spring-core` and `spring-oxm` should be pre-compiled due to repackaged dependencies.
    See `*RepackJar` tasks in the build and https://youtrack.jetbrains.com/issue/IDEA-160605).
    2. `spring-aspects` does not compile due to references to aspect types unknown to
    IntelliJ IDEA. See https://youtrack.jetbrains.com/issue/IDEA-64446 for details. In the meantime, the
    'spring-aspects' can be excluded from the project to avoid compilation errors.
    3. While JUnit tests pass from the command line with Gradle, some may fail when run from
    IntelliJ IDEA. Resolving this is a work in progress. If attempting to run all JUnit tests from within
    IntelliJ IDEA, you will likely need to set the following VM options to avoid out of memory errors:
        -XX:MaxPermSize=2048m -Xmx2048m -XX:MaxHeapSize=2048m
    4. If you invoke "Rebuild Project" in the IDE, you'll have to generate some test
    resources of the `spring-oxm` module again (`./gradlew :spring-oxm:compileTestJava`)    
    
    
    ## Tips
    
    In any case, please do not check in your own generated .iml, .ipr, or .iws files.
    You'll notice these files are already intentionally in .gitignore. The same policy goes for eclipse metadata.
    
    ## FAQ
    
    Q. What about IntelliJ IDEA's own [Gradle support](https://confluence.jetbrains.net/display/IDEADEV/Gradle+integration)?
    
    A. Keep an eye on https://youtrack.jetbrains.com/issue/IDEA-53476
    • 따라 stepsKnown issues처음 빌드에 의존을 많이 다운로드 할 수 있습니다 위해, 그것은 약간의 시간이 걸릴 수 있습니다 지시가, 그것은 인내심을 필요로, 1 ~ 2 시간이 필요할 수 있습니다 느리게.

    • 컴파일 spring-core하고 spring-oxm나중에 컴파일로 이동 spring-context, 당신은에서이 오류를 발견 할 것이다 .gradle여기에 인용 어떤 실수를 찾을 수 없다는 오류 XXX 클래스가 있기 때문에, 오류 파일, 모든 댓글은 해당 코드에 의해 해결 될 수있다.

      클래스 XXX 댓글을 달았에 .gradle 파일 오류, 주석 라인을 구축하기 위해 해당 오류 코드는 XXX 클래스는 참조를 찾을 수 없습니다

    • 새로운 module테스트

    때문에에 참고 spring-aspects구현이에 의존 aspectj추가를 소개하는 필요, 그래서 디버깅 spring-aspects모듈 콘텐츠 학생들은 직접이 모듈의 전원이 제거 될 넣을 수 없습니다.

나는에 새 프로젝트 (2019년 11월 2일 2:26) 구축 여기입니다 Github에서 모두가 참조 할 수

추천

출처www.cnblogs.com/think-in-java/p/11780427.html