无法使用部署在专用Bit-bucket存储库中的工件

问题描述 投票:0回答:1

我正在使用wagon-git 0.2.5版从我的私有bitbucket部署和使用工件。遵循与文档http://synergian.github.io/wagon-git/bitbucket.html中相同的步骤。

错误:

Could not resolve dependencies for project com.xxx:yyy:jar:1.0.0: The following artifacts could not be resolved: com.aaa:bbb:jar:3.0: Could not find artifact com.aaa:bbb:jar:3.0 in xxx_repo (https://api.bitbucket.org/2.0/repositories/company/xxx_repo/raw/releases)

研究:

[根据我的研究,我发现很多建议在存储库URL中出现问题,因此我更改为https://bitbucket.org/company/xxx_repo/raw/releases/通过此URL,我可以访问该存储库,但是编译失败,并显示一条错误,提示未找到zip END标头。

Compilation failure: [ERROR] Error reading /home/msuser1/.m2/repository/com/aaa/bbb/3.0/bbb-3.0.jar; zip END header not found

太多警告说校验和验证失败。

[WARNING] Could not validate integrity of download from https://bitbucket.org/company/xxx_repo/raw/artifacts/com/aaa/bbb/3.0/bbb-3.0.jar: Checksum validation failed, expected <!doctype but is 2f947caee42a20633fb9c412ew53591f64b8c4481

解决方案:

从私有位桶中使用工件的确切URL是什么?

任何人都可以提供完整的工作步骤来使用wagon-git部署和使用私有bitbucket中的工件吗?

我正在使用wagon-git 0.2.5版从我的私有bitbucket部署和使用工件。遵循与文档http://synergian.github.io/wagon-git/bitbucket ....中给出的相同步骤。

我们必须在Maven settings.xml中添加用户名,密码和HTTP基本身份验证,才能从bitbucket / Github私有存储库中提取和提取。
<servers> <server> <id>your-repo-id</id> <username>yourgithubusername</username> <password>yourgithubpassword</password> </server> <configuration> <httpHeaders> <property> <name>Authorization</name> <value>BASIC-AUTH HEADER VALUE</value> </property> </httpHeaders> </configuration> </servers> </settings>```
maven bitbucket-pipelines artifact maven-wagon-plugin wagon
1个回答
0
投票
© www.soinside.com 2019 - 2024. All rights reserved.