gerrit - 使用 curl 的降压错误:由于协议(http)
问题描述
使用 Ubuntu-14.04LTS 系统并按照此链接中提供的说明,我正在尝试delete-project.jar
为我的 gerrit 版本 2.13 构建 gerrit 文件,但是在构建过程中它失败并出现以下错误。
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
此链接中提供的解决方法将http
协议更改为https
现在的 gerritbuck
构建,我需要在哪里修改协议?因为cat plugins/delete-project/lib/gerrit/BUCK
我看不到要修改的协议。
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,
)
请指导我修改相同的内容。提前致谢。
解决方案
从以下文件更新http
协议https
,现在它工作正常。
1) WORKSPACE
2) tools/util.py
推荐阅读
- mysql - mysql 从另一个尚不存在的视图创建视图
- codeigniter - Codeigniter 4.0.4 在共享主机上部署错误
- reactjs - TypeError: user.save is not a function.我该如何解决
- delphi - 无法在运行时添加到虚拟映像列表的菜单上显示图标
- google-apps-script - 脚本将每日备份工作表快照到其他工作表
- spring - AbstractMongoEventListener 识别更新或添加事件 spring boot mongoDb
- vue.js - 尝试使用 laravel mix 编译时出错
- java - Android Studio 加载源文件不正确(缓存问题?编码问题?)
- javascript - Discord JS 在 message.channel.send 上使用循环
- angular - Input [value] 在里面输入时将其值更改为 undefined