| exclude a transitive (maven) dependency [message #505871] | 
Tue, 05 January 2010 07:17   | 
 
Eclipse User  | 
 | 
 | 
   | 
 
Originally posted by: pajai.extrabright.com 
 
Hi everybody, 
 
When specifying a maven dependency in a pom.xml, it is possible to  
exclude certain transitive dependencies using the following syntax: 
 
     <dependency> 
       <groupId>sample.group</groupId> 
       <artifactId>sample-artifactB</artifactId> 
       <version>1</version> 
        <exclusions> 
          <exclusion> 
            <groupId>sample.group</groupId> 
            <artifactId>sample-artifactAB</artifactId> 
          </exclusion> 
        </exclusions> 
     </dependency> 
 
(Meaning: sample-artifactB has a transitive dependency  
sample-artifactAB, that I want maven to ignore). 
 
It seems that Buckminster does not take into account that exclusion  
statement, and tries to fetch sample-artifactAB anyway. Is it the case? 
 
Is there another way, so that I can specify (for instance in a cspex) to  
exclude transitive dependencies of some kind? 
 
Thanks in advance. 
Cheers, 
 
Patrick
 |  
 |  
  | 
 | 
 | 
Powered by 
FUDForum. Page generated in 0.04128 seconds