Compiling the spring-cloud-cli-2.2.1.RELEASE Source Code
- Download the spring-cloud-cli-2.2.1.RELEASE source package.
1 2 3
cd /home git config --global http.sslVerify false git clone https://github.com/spring-cloud/spring-cloud-cli.git
- Switch to the target version.
1 2
cd spring-cloud-cli git checkout v2.2.1.RELEASE
- On CentOS 7.6 and openEuler 20.03, add the spring-boot-thin-launcher-1.0.22.RELEASE-exec.jar package to the library directory.
- Obtain the spring-boot-thin-launcher-1.0.22.RELEASE-exec.jar package.
1wget https://jcenter.bintray.com/org/springframework/boot/experimental/spring-boot-thin-launcher/1.0.22.RELEASE/spring-boot-thin-launcher-1.0.22.RELEASE-exec.jar - Create a directory.
mkdir -p /root/.m2/repository/org/springframework/boot/experimental/spring-boot-thin-launcher/1.0.22.RELEASE/
- Copy the obtained package to the library directory.
1\cp spring-boot-thin-launcher-1.0.22.RELEASE-exec.jar /root/.m2/repository/org/springframework/boot/experimental/spring-boot-thin-launcher/1.0.22.RELEASE/
- Obtain the spring-boot-thin-launcher-1.0.22.RELEASE-exec.jar package.
- Perform the compilation.
1 2
cd /home/spring-cloud-cli/ ./mvnw clean install -Dgpg.skip=true

If BUILD SUCCESS is displayed, the compilation is successful.
- If the error message "Caused by: java.net.UnknownHostException: repo.spring.io" is displayed when compiling and installing spring-cloud-launcher-cli, rectify the fault by following instructions in "UnknownHostException" Displayed in the spring-cloud-launcher-cli Module.
- If the error message "java.lang.AssertionError" is displayed when compiling and installing spring-cloud-launcher-cli, rectify the fault by following instructions in "AssertionError" Reported in the spring-cloud-launcher-cli Module.
- If the error message "Caused by: java.net.UnknownHostException: repo.spring.io" is displayed when compiling and installing spring-cloud-cli-integration-tests, rectify the fault by following instructions in "UnknownHostException" Reported in the spring-cloud-cli-integration-tests Module.
- If the error message "Parent proxy unreacheable (502)" is displayed when compiling and installing spring-cloud-cli-integration-tests, the network environment is faulty. Try again for multiple times.
- If a timeout error is reported for spring-cloud-cli-integration-tests, resolve the fault by following instructions in spring-cloud-cli Timeout Error.
Parent topic: Compiling and Installing Spring Cloud
