maven-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Allan Ramirez <arami...@exist.com>
Subject Re: How to disable transitive dependency?
Date Sat, 19 Nov 2005 00:50:58 GMT
Hi,

add the <exclusions> tag to your <dependency>
and put the artifacts you want to exclude.

<dependency>
<groupId>acegisecurity</groupId>
<artifactId>acegi-security</artifactId>
<version>0.9.0</version>
<scope>runtime</scope>
<exclusions>
  <exclusion>
     <groupId>groupId-of-the-artifact</groupId>
     <artifactId>artifactId-of-the-artifact</artifactId>
  </exclusion>
</exclusions>
</dependency>

regards,
-allan

Eric Jacob wrote:

>But what about acegi-security-0.9.0.jar? I need it in my webapp.
>
>Thanks.
>
>Eric
>
>On 11/18/05, Pablo <pablo@tiger.com.pl> wrote:
>  
>
>>Eric Jacob wrote:
>>
>>    
>>
>>>Hi,
>>>
>>>Putting the following dependency results in 72 jars downloaded in
>>>WEB-INF/lib!
>>>
>>><dependency>
>>><groupId>acegisecurity</groupId>
>>><artifactId>acegi-security</artifactId>
>>><version>0.9.0</version>
>>><scope>runtime</scope>
>>></dependency>
>>>
>>>
>>>      
>>>
>>Hi
>>
>>If you set <scope>provided</scope> then these dependencies will not be
>>included in /WEB-INF/lib
>>
>>Cheers
>>Pablo
>>
>>---------------------------------------------------------------------
>>To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
>>For additional commands, e-mail: users-help@maven.apache.org
>>
>>
>>    
>>
>
>  
>
>------------------------------------------------------------------------
>
>No virus found in this incoming message.
>Checked by AVG Free Edition.
>Version: 7.1.362 / Virus Database: 267.13.3/174 - Release Date: 11/17/2005
>  
>


Mime
View raw message