首页 > 解决方案 > 处理 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/

从该服务下载文件不会解析为 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/repository/omni/pentaho-library/libfonts/5.0.1-stable/libfonts-5.0.1-stable.jar

兑换:

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 来下载文件?

标签: mavenrepositorypentahoartifactorynexus

解决方案


推荐阅读