ant-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Joe Bowbeer (JIRA)" <j...@apache.org>
Subject [jira] Created: (IVY-1274) extra attribute in dependency artifact ignored by resolver
Date Sat, 05 Mar 2011 05:27:45 GMT
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


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

        

Mime
View raw message