---
title: 编译spring-cloud-security-2.2.0.RELEASE源码
description: "1. 下载spring-cloud-security-2.2.0.RELEASE源码。"
url: https://www.hikunpeng.com/document/detail/zh/kunpengwebs/ecosystemEnable/SpringCloud/kunpengspringcloudhoxton_02_0024.html
sourcePath: /source/zh/kunpengwebs/ecosystemEnable/SpringCloud/kunpengspringcloudhoxton_02_0024.html
indexId: 61eb8524a118b8407597708df3edb5de48fe70241d5a248351ece7d9e71abf4088
---
# 编译spring-cloud-security-2.2.0.RELEASE源码

1. 下载spring-cloud-security-2.2.0.RELEASE源码。
  1 2 3 cd /home git config --global http.sslVerify false git clone https://github.com/spring-cloud/spring-cloud-security.git

2. 切换到指定版本。
  1 2 cd spring-cloud-security git checkout v2.2.0.RELEASE

3. 执行编译。
  1 ./mvnw clean install -Dgpg.skip=true

  若显示BUILD SUCCESS，则编译通过。

  如果编译报错“Some problems were encountered while processing the POMs”，则执行下面命令编译。 mvn clean install -Dgpg.skip=true 编译过程中会因checkstyle-plugin报错，参考编译Spring Boot时提示Failed during checkstyle execution的解决方法。
