Azure Artifact发布因包含"+"的工件版本而失败 [英] Azure Artifact Publishing Fails for Artifact Version Containing '+'

查看:69
本文介绍了Azure Artifact发布因包含"+"的工件版本而失败的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我一直试图将Java模块(jar)的工件发布到Azure Artifact,并收到错误404.经过一段时间的调试,我意识到我的语义版本破坏了URL.

I have been trying to publish an artifact of a java module (jar) to Azure Artifact and was getting an error 404. After debugging for a while i have realised my semantic version was breaking the URL.

1.0.2-beta1 + 20191202

+表示元数据是语义版本语法的一部分.同时,他+破坏了Azure创建的用于上传工件的URL.

The + indicates meta data as part of the semantic version syntax. At the same time he + breaks the URL that Azure creates to upload the artifact.

以下是Azure创建的URL的示例:

Here is a sample of the URL that Azure creates:

版本中的加号导致404错误发生.

The pluses in the version are causing a 404 error to happen.

似乎是一种缺少的功能,但是如果有解决方法,同时确实可以解决,将不胜感激.

Seems like a missing feature but would appreciate if there is a workaround meanwhile this is actually addressed.

推荐答案

Azure Artifact Publishing的包含"+"的工件版本失败

Azure Artifact Publishing Fails for Artifact Version Containing '+'

恐怕目前尚无此类解决方案/解决方法来解决此问题.

I am afraid there is no such solution/workaround to resolve this issue at this moment.

如果我在URL中使用 + 发布工件,则会遇到相同的404错误.花很长时间,但直到我找到

I got the same 404 error if I Publish Artifact with + in the URL. Take long time but did not find any solution/workaround for this issue until I found this ticket:

Azure工件工程答复:

The Azure Artifacts Engineering replied:

由于我们服务的网络堆栈中的技术限制,我们无法目前支持URL路径中的+号.因此,我们目前不在某些包类型中支持SemVer构建元数据(+后缀),例如Maven.

Due to technical limitations in our service's web stack, we cannot currently support + signs in URL paths. As such, we do not currently support SemVer build metadata (+ suffix) in some package types such as Maven.

如果要继续使用Azure Artifacts,我必须接受此技术限制.

I have to accept this technical limitation if I want to continue using Azure Artifacts.

希望这对您有所帮助.

这篇关于Azure Artifact发布因包含"+"的工件版本而失败的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆