我正在尝试第一次启动并运行 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!
发布评论
评论(1)
在 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.