【问题标题】:Sourceforge org property for Ivy and NexusIvy 和 Nexus 的 Sourceforge 组织属性
【发布时间】:2010-12-08 14:07:22
【问题描述】:

尝试使用以下设置时:

<dependency org="net.sourceforge.artifact" name="artifact" rev="2.0"/>

和:

<artifact pattern="http://localhost/nexus/content/repositories/releases/[module]/[artifact]/[revision]/[artifact]-[revision].[ext]" />

Nexus 期望

http:// ... net/sourceforge/artifact/artifact/revision/artifact.ext

但是 net 和 sourceforge 像这样被完全删除了:

http:// ... artifact/artifact/revision/artifact.ext

【问题讨论】:

  • 我在下面添加了答案。在上面的示例中,由于使用了错误的解析器,Ivy 在 URL 中丢弃了 net 和 sourceforge。

标签: java maven-2 ivy nexus


【解决方案1】:

在这种情况下使用的正确解析器是找到 here 的 IBiblio 解析器。它将正确地将组织名称中的句点转换为正确的 url。

【讨论】:

    猜你喜欢
    • 2013-07-29
    • 2015-03-11
    • 2012-04-29
    • 2011-07-03
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2018-04-02
    • 2012-04-24
    相关资源
    最近更新 更多