Rate This Document
Findability
Accuracy
Completeness
Readability

Compiling the spring-cloud-netflix-2.2.1.RELEASE Source Code

  1. Download the spring-cloud-netflix-2.2.1.RELEASE source code.
    1
    2
    3
    cd /home
    git config --global http.sslVerify false
    git clone https://github.com/spring-cloud/spring-cloud-netflix.git
    
  2. Switch to the target version.
    1
    2
    cd spring-cloud-netflix
    git checkout v2.2.1.RELEASE
    
  3. Go to the spring-cloud-netflix-hystrix-contract directory and compile the spring-cloud-netflix-hystrix-contract module.
    1
    2
    cd spring-cloud-netflix-hystrix-contract
    ../mvnw clean install -B -Dgpg.skip=true
    

    Go to the spring-cloud-netflix-hystrix-contract directory to perform compilation only when the spring-cloud-netflix-hystrix-contract module is required. In this case, you can use the scripts/build.sh script in the project for compilation. The script contains the -Pdocs parameter, which calls Asciidoctor to convert README.adoc to HTML5 or other formats. However, the automatically pulled ruby may cause conversion exceptions. It is recommended that the -Pdocs parameter be deleted if related documents such as README are not modified and compilation is not required. You can use the preceding command.

  4. Return to the source code directory and perform compilation.
    1
    2
    cd ..
    ./mvnw clean install -B -Dgpg.skip=true
    

    If checkstyle-plugin detects that the Javadoc comment is missing in AutoConfiguration.java, the compilation is interrupted. Rectify the fault by following instructions in "Failed during checkstyle execution" Displayed When Compiling Spring Boot.

    If BUILD SUCCESS is displayed, the compilation is successful.