ant-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Xavier Hanin (JIRA)" <j...@apache.org>
Subject [jira] Resolved: (IVY-902) Maven Snapshot resolution does not work with dual resolver
Date Mon, 15 Sep 2008 07:33:44 GMT

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

Xavier Hanin resolved IVY-902.
------------------------------

       Resolution: Invalid
    Fix Version/s:     (was: 2.0-RC1)
         Assignee: Xavier Hanin

The problem is not the dual resolver, it's the url resolver used for artifacts. SNAPSHOT dependencies
are currently supported only by ibiblio resolver (which should really be renamed to maven
resolver IMO). So if you do sg like this:
{code}
<ivysettings>
    <settings defaultResolver="main" validate="false"/>
    <resolvers>
        <dual name="main">
            <ibiblio name="ivy" m2compatible="true" root="http://snapshots.jboss.org/maven2"/>
			<ibiblio name="artifact" m2compatible="true" root="http://snapshots.jboss.org/maven2"/>
        </dual>
    </resolvers>
</ivysettings>
{code}

it works as expected. Hence I mark this issue as resolved invalid. And if you do not cover
all your use cases with that, feel free to discuss it on the mailing list, we'll see if SNAPSHOT
support is possible in other resolvers (but it would require maven-metadata.xml support too,
which is not easy in generic resolvers).

> Maven Snapshot resolution does not work with dual resolver
> ----------------------------------------------------------
>
>                 Key: IVY-902
>                 URL: https://issues.apache.org/jira/browse/IVY-902
>             Project: Ivy
>          Issue Type: Bug
>          Components: Maven Compatibility
>            Reporter: Hans Dockter
>            Assignee: Xavier Hanin
>            Priority: Blocker
>
> Here is an example for an unsucessful retrieval of a snapshot dependency when using a
dual resolver. The same example works fine, if only the IBiblio resolver is used.
> {code:xml}
> <ivysettings>
>     <settings defaultResolver="main" validate="false"/>
>     <resolvers>
>         <dual name="main">
>             <ibiblio name="ivy" m2compatible="true" root="http://snapshots.jboss.org/maven2"/>
>             <url name="artifact" m2compatible="true">
>                 <artifact pattern="http://snapshots.jboss.org/maven2/[module]/[revision]/[artifact]-[revision].[ext]"/>
>             </url>
>         </dual>
>     </resolvers>
> </ivysettings>
> {code}
> {code:xml}
> <ivy-module version="2.0">
>     <info organisation="apache" module="hello-ivy"/>
>     <dependencies>
>         <dependency org="jboss.jbossws-common" name="jbossws-common" rev="1.0.5-SNAPSHOT"/>
>     </dependencies>
> </ivy-module>
> {code}

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


Mime
View raw message