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

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

2. 切换到指定版本。

```
cd spring-cloud-openfeign
git checkout v2.2.1.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，参考编译Spring Boot时提示Failed during checkstyle execution的解决方法解决。
