ant-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Maarten Coene (JIRA)" <>
Subject [jira] Resolved: (IVY-1275) Dependency exclude with a regexp can exclude the target artifact
Date Wed, 16 Mar 2011 22:32:29 GMT


Maarten Coene resolved IVY-1275.

    Resolution: Not A Problem
      Assignee: Maarten Coene

This behaviour is correct according to the <exclude> documentation which is saying:
'It enables to restrict the artifacts required, by excluding artifacts being published by
the dependency or any of its transitive dependencies'.

I guess you'll have to change your exclude regular expression to be more specific about what
to exclude. When you want to exclude all spring-*.jar files, except for the spring-security-core.jar,
you could use the following:

<dependency org="" name="spring-security-core" rev="3.0.2.RELEASE">
    <exclude name="spring-(?!security-core).*" matcher="regexp"/>


> Dependency exclude with a regexp can exclude the target artifact
> ----------------------------------------------------------------
>                 Key: IVY-1275
>                 URL:
>             Project: Ivy
>          Issue Type: Bug
>          Components: Core
>    Affects Versions: 2.2.0
>            Reporter: Andy Kriger
>            Assignee: Maarten Coene
> Setup a depedency like
> <dependency org="" name="spring-security-core" rev="3.0.2.RELEASE">
>             <include name="spring-security-.*" matcher="regexp"/>
>             <exclude name="spring-.*" matcher="regexp"/>
>         </dependency>
> You will exclude spring-security-core as well as the spring related dependencies of spring-security.
Include/exclude should not affect the target dependency only the dependencies of the target

This message is automatically generated by JIRA.
For more information on JIRA, see:

View raw message