You are viewing a plain text version of this content. The canonical link for it is here.
Posted to ivy-commits@incubator.apache.org by "Johannes Stamminger (JIRA)" <ji...@apache.org> on 2007/06/26 11:32:27 UTC

[jira] Commented: (IVY-537) Eviction fails for libs not providing their ivy configuration and providing artifacts named different between lib versions

    [ https://issues.apache.org/jira/browse/IVY-537?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12508151 ] 

Johannes Stamminger commented on IVY-537:
-----------------------------------------

I'm quite sure to have located this problems cause: in fr.jayasoft.ivy.IvyNode#loadData(String, boolean) at the very end there is a call

addDependencyArtifactsIncludes(_rootModuleConf, getDependencyArtifactsIncludes(getParentConf());

This should be done only if the current node is not evicted:

        if (!isEvicted(_rootModuleConf)) {
            DependencyDescriptor dd = getDependencyDescriptor(getParent());
            if (dd != null) {
                addDependencyArtifactsIncludes(_rootModuleConf, getDependencyArtifactsIncludes(getParentConf()));
            }
        }


> Eviction fails for libs not providing their ivy configuration and providing artifacts named different between lib versions
> --------------------------------------------------------------------------------------------------------------------------
>
>                 Key: IVY-537
>                 URL: https://issues.apache.org/jira/browse/IVY-537
>             Project: Ivy
>          Issue Type: Bug
>          Components: Core
>    Affects Versions: 1.4.1
>            Reporter: Johannes Stamminger
>         Attachments: ivy-lib-eviction.zip
>
>
> With moduleA referencing libX-1.0 with:
>         <dependency name="libX" rev="1.0" org="COTS" conf="compile, 
> development, deployment">
>             <artifact name="libX" conf="compile"/>
>             <artifact name="LICENSE" type="license" ext="txt" 
> conf="deployment"/>
>             <artifact name="libX" type="source" ext="src.jar" 
> conf="development"/>
>         </dependency>
> and another module referencing same libX but in version 2.0 by way of:
>         <dependency name="libX" rev="2.0" org="COTS" conf="compile, 
> development, deployment">
>             <artifact name="libX" conf="compile"/>
>             <artifact name="libX" type="license" ext="jar.license" 
> conf="deployment"/>
>             <artifact name="libX" type="source" ext="src.jar" 
> conf="development"/>
>         </dependency>
> the eviction of libX-1.0 fails (note the different namings for the license 
> artifact).

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.