我要评分
获取效率
正确性
完整性
易理解

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

  1. 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
    
  2. Switch to the target version.
    1
    2
    cd spring-cloud-cli
    git checkout v2.2.1.RELEASE
    
  3. 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.
    1. Obtain the spring-boot-thin-launcher-1.0.22.RELEASE-exec.jar package.
      1
      wget 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
      
    2. Create a directory.
      mkdir -p /root/.m2/repository/org/springframework/boot/experimental/spring-boot-thin-launcher/1.0.22.RELEASE/
    3. 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/
      
  4. 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.