maven - 处理 Artifactory Maven 存储库 URL 重定向
问题描述
通过 jfrog artifactory version: 4.14.0 仪表板,添加远程 maven 存储库时,可以在一个 url 上浏览存储库,但下载在不同的 url 上。
从该服务下载文件不会解析为 https://nexus.pentaho.org/service/rest/repository/browse/omni/pentaho-library/libfonts/5.0.1-stable/libfonts-5.0.1-stable。罐
兑换:
https://nexus.pentaho.org/service/rest/repository/browse/omni/
至
https://nexus.pentaho.org/repository/omni/
查看了诸如此 https://github.com/jfrog/artifactory-user-plugins/blob/master/download/modifyNuGetDownload/modifyNuGetDownload.groovy之类的用户插件,但是这些更改了基本 url 之后的路径,而不是存储库 url 本身
有没有办法提供自定义存储库 url 来下载文件?
解决方案
推荐阅读
- c# - JSON.NET 从字符串中获取特定项目
- corda - Corda - 从 ServiceHub 获取状态机馈送
- java - 在 C 中创建新的头文件与在 Java 中创建类有何不同?
- php - 我如何在 PHP 中连接 MongoDB 在线云
- amazon-web-services - Aws - 使用 oom javascript 构建失败
- python - 使用 Python 语音识别时的说话人分类
- c++ - 冒泡排序的 C++ 问题
- python - 为什么 geopandas 中的线图在显示分层时会忽略绘图顺序
- c# - 无法在核心身份的 ApplicationUser 中保留关系
- windows - git-lfs .gitattributes 文件:奇怪的 unicode 字符