Ivy
  1. Ivy
  2. IVY-1091

Resolve|Cachepath: resolve in mode inline does not work for cachepath

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: 2.1.0-RC1, 2.3.0-RC1
    • Fix Version/s: 2.1.0-RC2
    • Component/s: None
    • Labels:
      None

      Description

      I cannot resolve an artifact with the "inline" option and use the resolved information with "cachepath". For some reason the resolve is not known to cachepath and cachepath tries to "resolve" again using the default options and default ivy.dep.file.

      1. log.txt
        10 kB
        Klaas Prause
      2. build.xml
        0.7 kB
        Klaas Prause

        Activity

        Klaas Prause created issue -
        Hide
        Maarten Coene added a comment -

        Could you provide your build.xml and the ant verbose output?
        I don't see a reason why the inline option would not work with cachepath.

        Maarten

        Show
        Maarten Coene added a comment - Could you provide your build.xml and the ant verbose output? I don't see a reason why the inline option would not work with cachepath. Maarten
        Hide
        Klaas Prause added a comment -

        A test buildfile and the log output for this error. The interesting part is:
        [ivy:resolve] report for oro#oro-caller;working default produced in /tmp/oro-oro-caller-default.xml
        [ivy:resolve] resolve done (57ms resolve - 4ms download)
        Overriding previous definition of property "ivy.version"
        [ivy:cachepath] no resolved descriptor found: launching default resolve

        Show
        Klaas Prause added a comment - A test buildfile and the log output for this error. The interesting part is: [ivy:resolve] report for oro#oro-caller;working default produced in /tmp/oro-oro-caller-default.xml [ivy:resolve] resolve done (57ms resolve - 4ms download) Overriding previous definition of property "ivy.version" [ivy:cachepath] no resolved descriptor found: launching default resolve
        Klaas Prause made changes -
        Field Original Value New Value
        Attachment build.xml [ 12410459 ]
        Attachment log.txt [ 12410460 ]
        Hide
        Maarten Coene added a comment -

        Thanks for the info, I see the problem now.

        As a workaround, could you try the following?
        <ivy:resolve organisation="oro" module="oro" revision="2.0.8" inline="true" keep="true"/>

        Maarten

        Show
        Maarten Coene added a comment - Thanks for the info, I see the problem now. As a workaround, could you try the following? <ivy:resolve organisation="oro" module="oro" revision="2.0.8" inline="true" keep="true"/> Maarten
        Hide
        Klaas Prause added a comment -

        It works with the "keep" option. By the way the keep option is not documented.

        Klaas

        Show
        Klaas Prause added a comment - It works with the "keep" option. By the way the keep option is not documented. Klaas
        Hide
        Maarten Coene added a comment -

        I've added more information about the keep attribute to the Ivy documentation.

        Maarten

        Show
        Maarten Coene added a comment - I've added more information about the keep attribute to the Ivy documentation. Maarten
        Maarten Coene made changes -
        Status Open [ 1 ] Resolved [ 5 ]
        Assignee Maarten Coene [ maartenc ]
        Fix Version/s 2.1.0-RC2 [ 12314062 ]
        Resolution Fixed [ 1 ]
        Klaas Prause made changes -
        Status Resolved [ 5 ] Closed [ 6 ]

          People

          • Assignee:
            Maarten Coene
            Reporter:
            Klaas Prause
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development