【问题标题】:Repository layout with Ivy in Artifactory在 Artifactory 中使用 Ivy 进行存储库布局
【发布时间】:2015-01-15 16:33:52
【问题描述】:

我们正在使用 Ant+Ivy,我是 Artifactory 的新手。一个非常基本的问题是,我们总是将解析的ivy.xml 连同工件一起发布到 Ivy 存储库中,但是在 Artifactory 中,我很困惑我们应该发布ivy.xml 还是pom.xml? Artifactory 建议使用兼容 maven2 的布局,以便将来轻松迁移到 Maven。

【问题讨论】:

    标签: ivy artifactory


    【解决方案1】:

    您可以将 ivy.xml 和 pom 文件存储在 Artifactory 中,它将使您能够迁移到 maven(如果您愿意),尽管 Artifactory 完全支持 automatic conversion of layouts 从 ivy 布局到 maven2 布局,反之亦然。您也可以使用约定用户插件到generate ivy.xml out of pom.xmlvice versa

    Here are the docs on Artifactory Ivy support.

    【讨论】:

    • 感谢您的回复。由于我们所有的项目都使用 Ivy,如果我们选择使用现有的 repo 或创建新的 repo,我们使用哪种 repo 布局(maven-2-default 与 ivy-default)是否重要?
    • Ivy 布局对 Ivy 更有用,因为它允许没有 maven-metadata 文件的 Ivy 索引机制(因为顶级目录列出了所有组 ID)。附言你觉得答案有用吗?投票。它解决了你的问题吗?接受。
    猜你喜欢
    • 2014-11-26
    • 2017-04-07
    • 2012-03-15
    • 2015-02-04
    • 2012-12-22
    • 1970-01-01
    • 2016-04-03
    • 2011-08-16
    相关资源
    最近更新 更多