---
title: 编译Druid时提示libthrift依赖下载失败的解决方法
description: "编译Druid过程中提示以下信息。"
url: https://www.hikunpeng.com/document/detail/zh/kunpengbds/ecosystemEnable/Druid/kunpengdruid_02_0021.html
sourcePath: /source/zh/kunpengbds/ecosystemEnable/Druid/kunpengdruid_02_0021.html
indexId: 4436daf9e3f29179bfc39e61feafd42cb558c6fc45695975c7f742e0f678f40469
---
# 编译Druid时提示libthrift依赖下载失败的解决方法

#### 问题现象描述

编译Druid过程中提示以下信息。

```
[ERROR] Failed to execute goal com.twitter:scrooge-maven-plugin:4.11.0:testCompile (thrift-test-sources) on project druid-thrift-extensions: Execution thrift-test-sources of goal com.twitter:scrooge-maven-plugin:4.11.0:testCompile failed: Plugin com.twitter:scrooge-maven-plugin:4.11.0 or one of its dependencies could not be resolved: Failed to collect dependencies at com.twitter:scrooge-maven-plugin:jar:4.11.0 -> com.twitter:scrooge-generator_2.10:jar:4.11.0 -> org.apache.thrift:libthrift:jar:0.5.0-1: Failed to read artifact descriptor for org.apache.thrift:libthrift:jar:0.5.0-1: Could not transfer artifact org.apache.thrift:libthrift:pom:0.5.0-1 from/to maven.twttr.com
```


#### 关键过程、根本原因分析

无


#### 结论、解决方案及效果

下载maven-repo(https://github.com/pantsbuild/maven-repo)，将下载的“org/apache/thrift”目录替换本地Maven仓库thrift目录。
