dependency exclusion with wildward does not work

2014-09-15 Thread Jackie Xiao
Dear

I just started using maven ant task, and one issue I found today was, when the 
pom contains wildward exclusion, seems the artifacts won't be excluded.

My script snippet below:

Ant:
artifact:dependencies filesetId=ls.jar.all
  pom file=ls-jar-all.pom.xml /
/artifact:dependencies

Ls-jar-all.pom.xml:
dependency
  groupIdorg.apache.cxf/groupId
  artifactIdcxf-bundle/artifactId
  version2.1/version
  exclusions
exclusion
groupIdorg.apache.abdera/groupId
artifactId*/artifactId
/exclusion
exclusion
groupIdorg.apache.geronimo.specs/groupId
  artifactId*/artifactId
  /exclusion
/exclusions

While changing wildcard to individual artifactIds, the exclusion works. (the 
wildward pom works when using maven)

Any suggestions, thanks

Thanks
Best Regards

Jackie Xiao | eAS-CM | eBaoTech | Cell: (+86) 136 4185 4318

This e-mail and any attachments thereto are intended for the sole use of the 
recipient(s) named above and may contain confidential and/or privileged 
material. Any use of the information contained herein (including, but not 
limited to, total or partial reproduction, communication, or dissemination in 
any form) by persons other than the intended recipient(s) is prohibited. If you 
received this in error, please contact the sender immediately and delete the 
material from any computer.


RE: dependency exclusion with wildward does not work

2014-09-15 Thread Martin Gainty



 From: jackie.x...@ebaotech.com
 To: users@maven.apache.org
 Subject: dependency exclusion with wildward does not work
 Date: Mon, 15 Sep 2014 11:19:33 +
 
 Dear
 
 I just started using maven ant task, and one issue I found today was, when 
 the pom contains wildward exclusion, seems the artifacts won't be excluded.
 
 My script snippet below:
 
 Ant:
 artifact:dependencies filesetId=ls.jar.all
   pom file=ls-jar-all.pom.xml /
 /artifact:dependencies
 
 Ls-jar-all.pom.xml:
 dependency
   groupIdorg.apache.cxf/groupId
   artifactIdcxf-bundle/artifactId
   version2.1/version
   exclusions
 exclusion
 groupIdorg.apache.abdera/groupId
 artifactId*/artifactId
 /exclusion
 exclusion
 groupIdorg.apache.geronimo.specs/groupId
   artifactId*/artifactId
   /exclusion
 /exclusions
 
 While changing wildcard to individual artifactIds, the exclusion works. (the 
 wildward pom works when using maven)

MGsince your problem is manifested in ANT only and not maven you will need to 
post this email to u...@ant.apache.org
MGhttp://ant.apache.org/mail.html
MGRegards
 
 Any suggestions, thanks
 
 Thanks
 Best Regards
 
 Jackie Xiao | eAS-CM | eBaoTech | Cell: (+86) 136 4185 4318
 
 This e-mail and any attachments thereto are intended for the sole use of the 
 recipient(s) named above and may contain confidential and/or privileged 
 material. Any use of the information contained herein (including, but not 
 limited to, total or partial reproduction, communication, or dissemination in 
 any form) by persons other than the intended recipient(s) is prohibited. If 
 you received this in error, please contact the sender immediately and delete 
 the material from any computer.