在哪里可以找到 Artifactory 存储库的 Ivy 描述符
我正在通过 Artifactory 设置我的第一个“托管”Ivy 存储库,并且想知道是否必须为我部署的每个工件手写所有 Ivy 描述符(XML)。
这将是痛苦。
在这些情况下,“真正的”回购管理员会做什么?手写吗?编写脚本来为您生成它们?是否有相当于 Maven 中央存储库的 Ivy,我可以从中复制描述符?如果我访问 http://mvnrepository.com/ 并搜索 JAR,我会看到它有一个“Ivy”选项卡位于“Maven”旁边,但它只包含
元素,而不是 Ivy 需要的整个
XML 实例。
I'm setting up my first "managed" Ivy repository via Artifactory and am wondering if I have to hand-write all the Ivy descriptors (XMLs) for each artifact I deploy.
This would be painful.
What do "real" repo admins do in these situations? Hand-write them? Wrtie scripts to generate them for you? Is there the Ivy equivalent to Maven Central Repository where I can just copy down descriptors from? If I go to http://mvnrepository.com/ and search for a JAR I see it has an "Ivy" tab next to the "Maven" one, but it just contains the <dependency/>
element, not the entire <ivy-module>
XML instance that Ivy needs.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
重读您的问题后,我意识到我回答了其他问题:) 对此感到抱歉。
您可以执行多种操作:
After rereading your question I realized that I answered something else :) Sorry about that.
There are number of things you can do:
您不需要任何其他工具。只需浏览 Artifactory 树,找到您需要的依赖项。在“常规”面板上查找“依赖项声明”部分。从下拉列表中选择“常春藤”。将会出现ivy依赖声明。将鼠标指向它。将出现“查看源代码”、“复制到剪贴板”和“打印”按钮。选择复制。现在您的剪贴板中已包含正确的声明。
You don't need any other tool. Just browse Artifactory tree, find the dependency you need. On the General panel look for Dependency Declaration section. Select "Ivy" from drop-down list. Ivy dependency declaration will appear. Point your mouse to it. "View source", "Copy to clipboard" and "Print" buttons will appear. Select copy. Now you have the correct declaration in you clipboard.
您可以使用
ivy:install
< /a> ant 目标可以轻松地从其他存储库导入模块:其中
${from}
是在ivy.settings.file
中定义的解析器的名称。You can use the
ivy:install
ant target to easily import modules from other repositories:Where
${from}
is the name of a resolver defined in yourivy.settings.file
.