ant-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Maarten Coene (JIRA)" <>
Subject [jira] Resolved: (IVY-821) An empty exclusion tag results in an IllegalArgumentException ...
Date Mon, 26 May 2008 20:03:56 GMT


Maarten Coene resolved IVY-821.

    Resolution: Fixed

Fixed in SVN trunk.
Thanks for reporting!

> An empty exclusion tag results in an IllegalArgumentException ... 
> ------------------------------------------------------------------
>                 Key: IVY-821
>                 URL:
>             Project: Ivy
>          Issue Type: Bug
>          Components: Maven Compatibility
>    Affects Versions: 2.0.0-beta-2
>            Reporter: Han Baas
>            Assignee: Maarten Coene
>             Fix For: 2.0-RC1
> At this moment i am working on a JBoss Seam project which i want to build with ant and
ivy. Ivy works fine but there is one small problem i encountered. I have a jboss-embedded-all.pom
which has an empty exclusion tag (see below). 
> <dependency>
>   <groupId>org.jboss.embedded</groupId> 
>   <artifactId>jboss-embedded</artifactId> 
>   <version>beta3</version> 
>   <exclusions>
>     <exclusion /> 
>   </exclusions>
> </dependency>
> When i try to resolve this dependency i get an IllegalArgumentException (name is null).
One could argument if an empty exclusion tag should be valid but that's a different discussion
... For the moment i have solved this problem by changing the code slightly and rebuild the
ivy project. The code i have changed can be found  in the inner class PomDependencyData (of
org.apache.ivy.plugins.parser.m2.PomReader) and is as follows (i only added the if statement).
For me this works fine ...
>  if (groupId != null && arteficatId != null) {
>     exclusions.add(ModuleId.newInstance(groupId, arteficatId));
>  }

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

View raw message