首页
学习
活动
专区
圈层
工具
发布
首页
学习
活动
专区
圈层
工具
MCP广场
社区首页 >问答首页 >使用curl时出现降压错误:由于协议(Http)

使用curl时出现降压错误:由于协议(Http)
EN

Stack Overflow用户
提问于 2021-03-16 19:02:45
回答 1查看 31关注 0票数 0

使用Ubuntu-14.04LTS系统,并按照此Link中提供的说明,我正在尝试为我的gerrit版本-2.13构建gerrit delete-project.jar文件,但是在构建过程中失败,并出现以下错误。

代码语言:javascript
运行
复制
Download http://repo1.maven.org/maven2/com/google/inject/guice/4.1.0/guice-4.1.0.jar error using curl: Command '['curl', '--proxy-anyauth', '-ksfo', '/root/.gerritcodereview/buck-cache/downloaded-artifacts/guice-4.1.0.jar-eeb69005da379a10071aa4948c48d89250febb07', 'http://repo1.maven.org/maven2/com/google/inject/guice/4.1.0/guice-4.1.0.jar']' returned non-zero exit status 22 

Download http://repo1.maven.org/maven2/com/googlecode/javaewah/JavaEWAH/0.7.9/JavaEWAH-0.7.9-sources.jar error using curl: Command '['curl', '--proxy-anyauth', '-ksfo', '/root/.gerritcodereview/buck-cache/downloaded-artifacts/javaewah-0.7.9-src.jar-dd7152dbfe349ce0d4e311f5bf2fd91935e22f77', 'http://repo1.maven.org/maven2/com/googlecode/javaewah/JavaEWAH/0.7.9/JavaEWAH-0.7.9-sources.jar']' returned non-zero exit status 22

在此Link中提供的解决方法是,http协议现在针对gerrit buck build更改为https,我需要在哪里修改协议?因为cat plugins/delete-project/lib/gerrit/BUCK,我看不到要修改的协议。

代码语言:javascript
运行
复制
include_defs('//bucklets/maven_jar.bucklet')

VER = '2.13.9'
REPO = MAVEN_CENTRAL

maven_jar(
  name = 'plugin-api',
  id = 'com.google.gerrit:gerrit-plugin-api:' + VER,
  sha1 = 'a9b00025900f68c1f86036ea07591a2876b10c37',
  attach_source = False,
  repository = REPO,
  license = 'Apache2.0',
)

maven_jar(
  name = 'acceptance-framework',
  id = 'com.google.gerrit:gerrit-acceptance-framework:' + VER,
  sha1 = '53a6e2baca19303bbf3967b861cf9814323c31f6',
  license = 'Apache2.0',
  attach_source = False,
  repository = REPO,
)

请指导我对其进行修改。提前谢谢。

EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2021-03-16 19:51:49

从下面的文件将http协议更新为https,现在它工作正常。

代码语言:javascript
运行
复制
1) WORKSPACE 
2) tools/util.py 
票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/66653897

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档