maven-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Reto Habl├╝tzel <>
Subject Re: maven-ear-plugin silently overrides libraries
Date Fri, 07 Feb 2014 14:43:04 GMT
Sure, but exclusions don't do the trick if you need both of them, do they?
I am talking about completely independent libraries that happen to have the
same artifactId.

Those were actually both libraries of mine and I could obviously fix this
issue rather simply, but I was just thinking that it would be helpful to
have at least a warning or something from maven - regardless of the IDE.

- Reto

On Fri, Feb 7, 2014 at 3:33 PM, Ron Wheeler

> If your IDE supports Maven (Eclipse/STS for example), you will see the
> conflict in the dependency hierarchy view and you can fix it with the right
> exclusions.
> It is almost always worth a quick look through the dependency hierarchy
> view if you use a lot of third party libraries.
> Not everyone updates their dependencies when they build a shareable
> library.
> You can sometimes get some pretty old versions of things dragged in with
> the latest version of otherwise well-written libraries.
> Exclusions need to be added to get what you want in your artifacts.
> Ron
> On 07/02/2014 9:21 AM, Reto Habl├╝tzel wrote:
>> Hi there,
>> I built an ear using the maven-ear-plugin (version 2.6).
>> The ear is configured such that it includes two libraries into the lib
>> folder, both with the same artifactId as well as the same version, but a
>> different groupId. Now if I simply call 'mvn package' only the first one
>> is
>> included, but no warning whatsoever appears. Only once I turn on debugging
>> (mvn --debug package), I see one subtle message:
>> [DEBUG] Skipping artifact [] as it is already up to
>> date
>> at [lib/bar-1.0.jar]
>> Wouldn't it make sense to either include the groupId in the filename or at
>> least make a check (that includes the groupId) beforehand if there are any
>> conflicts?
>> Cheers,
>> Reto
> --
> Ron Wheeler
> President
> Artifact Software Inc
> email:
> skype: ronaldmwheeler
> phone: 866-970-2435, ext 102
> ---------------------------------------------------------------------
> To unsubscribe, e-mail:
> For additional commands, e-mail:

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message