You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@ant.apache.org by "Maarten Coene (JIRA)" <ji...@apache.org> on 2008/05/26 22:03:56 UTC

[jira] Resolved: (IVY-821) An empty exclusion tag results in an IllegalArgumentException ...

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

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: https://issues.apache.org/jira/browse/IVY-821
>             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.