You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by jiangshachina <ji...@gmail.com> on 2006/12/01 02:22:43 UTC
Re: adds same artifacts(different version)?
Hello Andrius,
Thanks your help very much!
Now, I find that I made a mistake in my last post.
I really misunderstood Wayne's instructions.
I'll try the approach.
a cup of Java, cheers!
Sha Jiang
Andrius Ĺ abanas wrote:
>
> jiangshachina wrote:
>> Dear Wayne,
>> I also wish to use the approach you indicated.
>> But in my mind, I cannot exactly set only one artifact(e.g.
>> ehcache-1.1.jar)
>> in <exclusion >,
>> because only there are groupId and artifaceId for setting.
>> If I use the element, I may exclude all ehcache artifacts(1.1, 1.2.3,
>> ...).
>> That's my agony :(
>>
>> a cup of Java, cheers!
>> Sha Jiang
>
> Hi,
>
> Sure you can use the approach - I have the same situation, and I do this:
>
> <dependency>
> <groupId>org.acegisecurity</groupId>
> <artifactId>acegi-security</artifactId>
> <version>1.0.2</version>
> <scope>compile</scope>
> <exclusions>
> <exclusion>
> <groupId>ehcache</groupId>
> <artifactId>ehcache</artifactId>
> </exclusion>
> </exclusions>
> </dependency>
>
> <dependency>
> <groupId>net.sf.ehcache</groupId>
> <artifactId>ehcache</artifactId>
> <version>1.2.3</version>
> </dependency>
>
> It works nicely - you exclude only that specific ehcache:ehcache:1.1
> specified in acegi-security POM from transitive inclusion, but
> net.sf.ehcache:ehcache:1.2.3 is a completely unrelated artifact,
> according to Maven.
>
>
> Have fun,
>
> Andrius
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>
>
--
View this message in context: http://www.nabble.com/adds-same-artifacts%28different-version%29--tf2729513s177.html#a7631787
Sent from the Maven - Users mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org