Compiling the spring-cloud-vault-2.2.1.RELEASE Source Code
- Download the spring-cloud-vault-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-vault.git
- Switch to the target version.
1 2
cd spring-cloud-vault git checkout v2.2.1.RELEASE
- Modify the install_vault.sh file.
1vi src/test/bash/install_vault.shChange amd64 to arm64 in the vault architecture information of line 126.

- Perform the compilation.
1./src/test/bash/install_vault.sh
- Check the size of the downloaded vault_1.2.3_linux_arm64.zip file to avoid compilation failure.
1ll download/vault_1.2.3_linux_arm64.zip - If the file size is 0, delete the file and download it again.
rm -rf download/vault_1.2.3_linux_arm64.zip wget https://releases.hashicorp.com/vault/1.2.3/vault_1.2.3_linux_arm64.zip --no-check-certificate mv vault_1.2.3_linux_arm64.zip download/
- Run the following command:
./src/test/bash/install_vault.sh
1 2
./src/test/bash/create_certificates.sh ./src/test/bash/local_run_vault.sh & ./mvnw clean install -Dgpg.skip=true

If BUILD SUCCESS is displayed, the compilation is successful.
- Check the size of the downloaded vault_1.2.3_linux_arm64.zip file to avoid compilation failure.
- After the compilation is complete, stop the vault process.
1pkill -9 vault
Parent topic: Compiling and Installing Spring Cloud