[
https://issues.apache.org/jira/browse/IVY-1274?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Maarten Coene resolved IVY-1274.
--------------------------------
Resolution: Not A Problem
Assignee: Maarten Coene
I tried your example, but I think the problem is that you don't use [data] in
your artifact patterns, so Ivy cannot see the difference between the 'one' and
the 'two' artifact. Please use the ivy-user mailinglist if you need more help
configuring your artifact patterns.
Please reopen if you still believe it's a bug.
> 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
> Assignee: Maarten Coene
> 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