Artifactory 如何管理 Ivy 描述符

发布于 2025-01-07 09:11:51 字数 788 浏览 2 评论 0 原文

我正在尝试第一次启动并运行 Artifactory(OSS 版本),并成功创建了一个存储库并向其部署了一个工件(joda-time-2.0)作为测试。

但是当谈到 Ivy 模块描述符(XML 文件)时,我有点困惑:

  • 我应该给 XML 文件命名什么?我使用的默认工件模式是 [org]/[module]/[baseRev](-[folderItegRev])/[type]s/[module](-[classifier])-[baseRev](- [fileItegRev]).[ext] 提示 Artifactory 将我的 joda JAR 存储到 myRepo/joda-time/joda-time/2.0;模块模式为 [org]/[module]/[baseRev](-[folderItegRev])/[type]s/ivy-[baseRev](-[fileItegRev]).xml,所以应该我的描述符被命名为ivy-2.0.xml
  • Artifactory 不应该将 joda-time-2.0.jar 存储在 myRepo/joda/joda-time/2.0/ 下吗?既然 joda 是组织,而不是 joda-time?我该如何改变这个?
  • 如何将 Ivy 文件上传到存储库?如果我将文件命名为 ivy-2.0.xml 那么 Artifactory 如何知道将其放置在 JODA 目录中?

提前致谢!

I'm trying to get Artifactory (OSS version) up-and-running for the first time and have successfully created a repo and deployed an artifact (joda-time-2.0) to it as a test.

But when it comes to the Ivy module descriptors (XML files), I'm a little confused:

  • What should I name the XML files? The default artifact pattern I'm using is [org]/[module]/[baseRev](-[folderItegRev])/[type]s/[module](-[classifier])-[baseRev](-[fileItegRev]).[ext] which prompted Artifactory to store my joda JAR to myRepo/joda-time/joda-time/2.0; the module pattern is [org]/[module]/[baseRev](-[folderItegRev])/[type]s/ivy-[baseRev](-[fileItegRev]).xml, so should my descriptor be named ivy-2.0.xml?
  • Shouldn't Artifactory have stored joda-time-2.0.jar under myRepo/joda/joda-time/2.0/? Since joda is the org, not joda-time? How do I change this?
  • How do I upload the Ivy file into the repo? If I name the file ivy-2.0.xml then how will Artifactory know to place it in the JODA directory?

Thanks in advance!

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

赠我空喜 2025-01-14 09:11:51

在 Arifactory 中配置存储库时,您可以选择各种布局(包括预定义的布局)。 此处了解更多相关信息。我强烈建议即使在使用 Ivy 时也使用 Maven2 布局,它将允许构建工具互操作性并更有效地使用 Artifactory,例如 GAVC 搜索 仅适用于具有 Maven2 布局的存储库。 m2 布局与 Ivy 完美配合。

You can select various layout (inc. predefined ones) when configuring your repository in Arifactory. Read more about it here. I'd strongly recommend using Maven2 layout even when working with Ivy, it will allow build tools interoperability and using Artifactory more efficently, e.g. GAVC search works only for repositories with Maven2 layout. The m2 layout works perfect with Ivy.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文