---
title: 编译spring-cloud-commons-2.2.1.RELEASE源码
description: "1. 下载spring-cloud-commons-2.2.1.RELEASE源码。"
url: https://www.hikunpeng.com/document/detail/zh/kunpengwebs/ecosystemEnable/SpringCloud/kunpengspringcloudhoxton_02_0011.html
sourcePath: /source/zh/kunpengwebs/ecosystemEnable/SpringCloud/kunpengspringcloudhoxton_02_0011.html
indexId: 24522d4f82e842664a8e42ce33377eb6402b5ff3ca0196b970d63b0ed9b9cba888
---
# 编译spring-cloud-commons-2.2.1.RELEASE源码

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

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

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

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

  CentOS 7.6&openEuler 20.03系统下如果编译遇到错误信息ModifiedClassPathRunnerOverridesTests，参考spring-cloud-commons Maven库问题的解决方法进行配置。 编译过程可能会因checkstyle-plugin报错，参考编译Spring Boot时提示Failed during checkstyle execution的解决方法解决。
