代码之家  ›  专栏  ›  技术社区  ›  SMA

如何忽略常春藤修订号?

ivy
  •  -1
  • SMA  · 技术社区  · 14 年前

    -[revision] )在url解析程序中。
    但是它采用模块号而不是忽略修订属性。我知道它不会忽略revision属性,因为它不是空的。

     default-cache: no cached resolved revision for perltools#perltools;latest.integration
    [ivy:retrieve]      tried httP://myrepo/ivyRepository/perltools/jars/[revision]/perltools-[revision].jar
    [ivy:retrieve]  listing all in httP://myrepo/ivyRepository/perltools/jars/[revision]/perltools-[revision].jar
    [ivy:retrieve]  using privateRepo to list all in httP://myrepo/ivyRepository/perltools/jars/
    [ivy:retrieve] ApacheURLLister found URL=[httP://myrepo/ivyRepository/perltools/jars/perltools.jar].
    [ivy:retrieve]      found 1 resources
    [ivy:retrieve]  found revs: [perltools.jar]
    [ivy:retrieve] HTTP response status: 404 url=httP://myrepo/ivyRepository/perltools/jars/perltools.jar/perltools-perltools.jar.jar
    [ivy:retrieve] CLIENT ERROR: Not Found url=httP://myrepo/ivyRepository/perltools/jars/perltools.jar/perltools-perltools.jar.jar
    

    有人能解释一下为什么它把module.ext作为修订版,而我指定的修订版是最新的。

    它只是

    [http://myrepo/ivyRepository/perltools/jars//perltools.jar]
    

    2 回复  |  直到 12 年前
        1
  •  0
  •   sschuberth    12 年前

    为了忽略修订并从Jenkins服务器下载ZIP,我使用了一个解析器(In ivysettings.xml )就像

    <url name="jenkins" m2compatible="true" checksums="">
        <artifact pattern="http://jenkins:8080/job/[organization]/ws/sources/[module]/*[ext]*/[artifact].[ext]" />
    </url>
    

    和依赖关系(在 ivy.xml

    <dependency org="source-build" name="project" rev="+">
        <artifact name="project" type="zip" />
    </dependency>
    

    所以我用 + 修订为 latest.release rev="" )但在本地缓存中留下了一个尾随破折号的工件,这是我不喜欢的。

    注意,由于 bug in Ivy .

        2
  •  0
  •   Chris Dolan    14 年前

    你能用“最新集成”作为修订版吗?