Kirill Riabov created IVY-1550:
----------------------------------

             Summary: Resolve report provides chain resolver name instead of 
specific used resolver name
                 Key: IVY-1550
                 URL: https://issues.apache.org/jira/browse/IVY-1550
             Project: Ivy
          Issue Type: Bug
          Components: Core
    Affects Versions: 2.2.0
            Reporter: Kirill Riabov


Example of ivysetting file:

{noformat}
<ivysettings>
    <settings defaultResolver="repository" validate="false"/>
    <resolvers>
        <chain name="repository">            
            <ibiblio name="custom1" m2compatible="true" 
root="https://nexusrep1.com/repository/>
            <ibiblio name="custom2" m2compatible="true" 
root="https://nexusrep2.com/repository/>
        </chain>
    </resolvers>
</ivysettings>
{noformat}

After regular resolve report contains actual resolver and artresolver names 
("custom1" or "custom2").
After resolve with useCacheOnly="true" resolver and artresolver are set to 
"cache" for all resolved modules.
If after that I do regular resolve (useCacheOnly="false"), all resolvers and 
artresolvers are set to "repository". And the only way I found to get actual 
resolver and artresolvers in report is to clean repository cache and do resolve 
again. 
Ivy saves chain resolver name to module properties file in cache instead of the 
name of specific resolver which found and downloaded artifacts. This happens 
every time when resolver and artifact.resolver specified in module properties 
file in cache are not found (for example, "cache").




--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to