- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
我在使用 Artifactory v3.9.5 解决 Artifactory 问题时遇到了问题。我有以下设置:
现在,当我尝试直接获取 Artifactory 时,它工作正常(凭证已通过但此处省略):
wget http://myrepo/artifactory/gradle-snapshot/x/SNAPSHOT/maven-metadata.xml?trace
但是当我尝试通过虚拟存储库获取 Artifactory 时,它不起作用:
wget http://myrepo/artifactory/repos/x/SNAPSHOT/maven-metadata.xml?trace
wget 的输出是:
Resolving myrepo... xx.xxx.xxx.xx
Connecting to myrepo|xx.xxx.xxx.xx|:80... connected.
HTTP request sent, awaiting response... 302 Moved Temporarily
Location: http://myrepo/artifactory/repos/x/SNAPSHOT/maven-metadata.xml/ [following]
--2015-12-11 11:17:18-- http://myrepo/artifactory/repos/x/SNAPSHOT/maven-metadata.xml/
Reusing existing connection to myrepo:80.
HTTP request sent, awaiting response... 404 Not Found
2015-12-11 11:17:18 ERROR 404: Not Found.
Artifactory 只是返回 302 临时移动到同一个 URL,并添加了一个斜线,就像目录符号一样。知道为什么不能以这种方式访问虚拟存储库吗?因此,我的 Gradle 构建无法解决此依赖关系。
最佳答案
此问题的根本原因是远程存储库指向 http://mirrors.ibiblio.org/pub/mirrors/maven2 .
对此存储库的所有请求都将重定向到 http://maven.ibiblio.org/maven2/无论您使用的是哪条路径,更重要的是请求的资源是否存在。
结果是,当从虚拟存储库请求 Artifactory 时,在某个时刻 Artifactory 将尝试从该远程存储库中获取 Artifactory ,并将获得重定向到存储库根目录的 302 应答。 Artifactory 假设它获得了它正在寻找的资源(获得了 200 响应代码),但是返回的资源是一个文件夹,因此在 URL 末尾附加了/。
最好的解决方案就是删除这个远程存储库并依赖 JCenter .
如果确实需要,请使用 http://maven.ibiblio.org/maven2/将保存重定向的 URL。
关于Artifactory 在访问虚拟存储库 URL 时返回 HTTP 302,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/34221284/
我需要为我在 artifactory 中的一个 repo 协议(protocol)删除超过特定天数的 Artifactory 版本。我的意思是假设我的 artifactory url repo 是:-
我需要为我在 artifactory 中的一个 repo 协议(protocol)删除超过特定天数的 Artifactory 版本。我的意思是假设我的 artifactory url repo 是:-
我们使用的是 Artifactory 版本 4.12.2。如果我有十个本地存储库,并且我只想在五个存储库中保留最新的二十个 Artifactory ,而在其他五个存储库中则没有限制。需要建议我如何实现
我们想要两个 JFrog Artifactory 实例,一个供公司本地网络内部的用户使用(完全开放访问),另一个可以从外部使用(访问受限)。因此,我们希望第二个实例镜像第一个实例的部分(或全部)存储库
我在 Artifactory (OpenSource) 中有一些 Artifactory : 我可以使用 下载 Artifactory jfrog CLI : jfrog rt config --us
如何将特定 Artifactory 复制到另一个 Artifactory 实例? 据我所知,导出/导入功能仅适用于完整系统或完整的单个存储库复制。我也不想复制完整的 repo 协议(protocol)
我知道 artifactory 使用基于校验和的存储,并且只会存储一个 Artifactory 的一个副本,即使我以不同的名称上传多个相同的副本也是如此。 因为我有很多项目都使用匿名版本但可能是相同的
假设我有 Artifactory “mylibrary-5.2.jar”和“mylibrary-5.3.jar”,分别代表我们的项目为我们的其他项目之一创建和发布的库的 5.2 和 5.3 版本。 A
阅读本 API 指南。我的 Artifactory 版本是 4.12.2。 https://www.jfrog.com/confluence/display/RTF/Artifactory+REST+
我在玩一个全新的OOS artifactory安装。我有一个 jcenter 的远程存储库.我正在寻找一种将远程 Artifactory 手动缓存到 jcenter-cach 的方法与 artifac
我有 Artifactory Jfrog 6.16.0 Pro。我安装了插件 artifactCleanup 并针对存储库运行它。它删除了大约 500GB。下一步,我从垃圾箱中删除文件,现在它为零。最
JFrog Artifactory 支持 NuGet 源。您将如何配置 Chocolatey 以指向 Artifactory 服务器而不是 Chocolatey.org? 最佳答案 创建一个指向 Ch
Maven Publishing的新手。我们的团队已经开始使用Artifactory,我正在尝试找出如何发布到Artifactory,但使用的是自定义 Artifact ID。这是我的build.gr
我正在使用 Jfrog artifactory OSS 版本 5。我可以看到我的快照存储库太大,我想从快照存储库中删除不需要的 Artifactory 。 我想删除过去 6 个月内未下载的所有 Art
我正在使用 Jfrog artifactory OSS 版本 5。我可以看到我的快照存储库太大,我想从快照存储库中删除不需要的 Artifactory 。 我想删除过去 6 个月内未下载的所有 Art
情况是这样的,我们在公司有一个共享文件夹,当我们放置一个应用程序的安装程序时(两个文件 .sh,一个用于 bin,另一个用于 conf),这是一个手动操作。 我们正在尝试让 Jenkins 自动执行此
我目前正尝试在 Artifactory 中查询与核心项目相关的特定 Artifactory 。所有 Artifactory 都将以项目标签为前缀。示例:“proj1-core”。我使用 Artifac
我已经设置了一个 Artifactory (4.1.2) 的实例,我用它来存储 java Artifactory 。我使用如下配置的 gradle 插件将 Artifactory 推送到实例 arti
我想永久链接到Artifactory中工件的最新快照版本。如果我们使用的是1.0-SNAPSHOT,我想要一个可下载最新的1.0-SNAPSHOT JAR的URL。通过在服务器上的http://hos
当我下载,解压缩并启动artifactory.sh时,看到以下错误 2020-02-26T21:32:50.496Z [jfac ] [ERROR] [c1b4de79a3f11666] [.j.a.
我是一名优秀的程序员,十分优秀!