[ 
https://issues.apache.org/jira/browse/IVY-1274?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Joe Bowbeer updated IVY-1274:
-----------------------------

    Attachment: extra_attr.zip

unzip and exec "ant all" to see that project1's artifact is resolved by 
project2.

> extra attribute in dependency artifact ignored by resolver
> ----------------------------------------------------------
>
>                 Key: IVY-1274
>                 URL: https://issues.apache.org/jira/browse/IVY-1274
>             Project: Ivy
>          Issue Type: Bug
>          Components: Core
>    Affects Versions: 2.2.0
>         Environment: Ant-1.8.2 / Windows7
>            Reporter: Joe Bowbeer
>            Priority: Minor
>         Attachments: extra_attr.zip
>
>
> A dependency declared on an explicit artifact with an extra attribute is 
> resolved regardless of the value of the extra attribute.
> Given the modules below and the default settings, sprocket can retrieve the 
> artifact that widget published to the local repo even though the requested 
> data value is different than the value published: two vs. one.
> {noformat}
> <ivy-module
>     version="2.0"
>     xmlns:e="http://ant.apache.org/ivy/extra";
>     xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
>     xsi:noNamespaceSchemaLocation="http://ant.apache.org/ivy/schemas/ivy.xsd";>
>     <info
>         organisation="acme"
>         module="widget" />
>     <publications>
>         <artifact
>             name="artifact"
>             type="txt"
>             e:data="one" />
>     </publications>
>     <dependencies />
> </ivy-module>
> {noformat}
> {noformat}
> <ivy-module
>     version="2.0"
>     xmlns:e="http://ant.apache.org/ivy/extra";
>     xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
>     xsi:noNamespaceSchemaLocation="http://ant.apache.org/ivy/schemas/ivy.xsd";>
>     <info
>         organisation="acme"
>         module="sprocket" />
>     <dependencies>
>         <dependency
>             name="widget"
>             rev="latest.integration">
>             <artifact
>                 name="artifact"
>                 type="txt"
>                 e:data="two" />
>         </dependency>
>     </dependencies>
> </ivy-module>
> {noformat}

-- 
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to