maven-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "KARR, DAVID" <dk0...@att.com>
Subject RE: Is it possible to deliberately have two dependencies with the same groupid, artifactid, and packaging, but different version?
Date Tue, 14 Jan 2014 22:49:55 GMT
> -----Original Message-----
> From: Barrie Treloar [mailto:baerrach@gmail.com]
> Sent: Tuesday, January 14, 2014 2:23 PM
> To: Maven Users List
> Subject: Re: Is it possible to deliberately have two dependencies with the
> same groupid, artifactid, and packaging, but different version?
> 
> On 15 January 2014 01:40, KARR, DAVID <dk068x@att.com> wrote:
> > Again, I didn't want to debate whether this is "convenient", I just wanted
> to know if Maven dependency resolution and things like the EAR plugin will
> have any trouble incorporating multiple dependencies with the same G:A, but
> different version.
> 
> David, you've been on the list long enough to see the term "If you
> fight Maven you will lose".
> That way pain lies.

I haven't heard anyone confirm conclusively that this will not work, so up to now it appears
to just be an opinion that there's something wrong with this approach.

I've also been writing software long enough to know that reality often makes theory irrelevant.

> You will have much more joy solving the problem in a way that Maven helps
> you.
> 
> Does any of Stephen's response help out?

I believe that's a different situation.

There will be a new version of this artifact every single month such that multiple versions
of the same artifact can and will be used at the same time (very soon we will be using 6 at
the same time).  It doesn't make sense to me to define a new group id or artifact id every
month, considering the only difference between two names (and their contents) will simply
be a number, representing its version number.  If the only difference is the version, then
it should be reflected in the version number, as that's the primary difference between them.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Mime
View raw message