[jdom-interest] V2.x not usable next to V1.x

Rolf Lear jdom at tuis.net
Fri May 18 11:24:56 PDT 2012


That's a pretty strong opinion.

three things.

there is nothing stopping you from using JDOM 1.x and 2.x at the same
time. You can easily put both jars in your classpath.... it is *maven* that
is stopping you from doing that.
I am only allowed to have one group-id - it is the oss-sonatype nexus that
stops me from doing adding more.
if this all seems 'a very bad idea', why did you not prevent this problem
from happening when I asked numerous times for experienced maven users to

All in all, I think it is fair to blame maven here.


On Fri, 18 May 2012 11:10:50 -0700 (PDT), Tatu Saloranta
<cowtowncoder at yahoo.com> wrote:
> +1 to this -- I think it is a very bad idea for a major backwards
> incompatible version to use the same artifact name OR group id for
> this reason.While there are ways around this -- namely, using OSGi --
> most practical way otherwise is to change artifact name.
> I do not think Maven is to blame for this: while Maven can help in
> detecting the problem -- assuming that major version upgrade represents
> incompatible changes, which is not given for all projects either -- one
> will still get into trouble for transitive dependencies.
> Problem is much more fundamental than package dependency or repository
> system, and will either bite users, or prevent other libs from upgrading
> use JDOM 2. Or most likely, both.
> This is a particularly nasty problem for "low level" libraries,
> which are added as transitive dependencies.
> Blaming Maven here is not very productive, it's just a messenger. At the
> same time, if the version is out, well, shit has hit the fan.
> -+ Tatu +-
> ________________________________
>  From: Mattias Jiderhamn <mj-lists at expertsystems.se>
> To: 
> Cc: jdom-interest at jdom.org 
> Sent: Friday, May 18, 2012 4:24 AM
> Subject: Re: [jdom-interest] V2.x not usable next to V1.x
> JDOM 2 should have used an artifactId separate from that of JDOM 1 (just
> like the package is renamed to allow for parallell versions).
> For example
>     <groupId>org.jdom</groupId>
>     <artifactId>jdom2</artifactId>
>     <version>2.0.1</version>
>  </Mattias>
> ----- Original Message ----- 
> Subject: Re: [jdom-interest] V2.x not usable next to V1.x 
> Date: Fri, 18 May 2012 06:55:24 -0400 
> From: Rolf Lear <jdom at tuis.net> 
> Hi Gary. 
> I am not a Maven expert.... and there is not a huge amount of Maven 
> *owner* expertise on this list (we have a number of maven *users*,
>     but 
> not many people who 'publish'). I have learned enough to 'publish'
>     to 
> maven, but I do not even *use* it. 
> As such, our maven 'support' may be broken. 
> But.... this is a limitation of maven.... not the way we deploy it. 
> Can you show us how we should do it differently? 
> For your information though, have you seen these sorts of
>     questions.... 
> ? 
> Rolf 
> On 17/05/2012 11:21 PM, Gary Gregory wrote: 
>> Hello JDOM, 
>> I cannot use both v2 and v1 in the same Maven or Ivy project
>     because 
>> both use the same id in Maven repositories like Maven Central. 
>> I want to use v2 in my app but 3rd party jars I use depends on
>     v1. 
>> Gary 
>> _______________________________________________ 
>> To control your jdom-interest membership: 
> _______________________________________________ 
> To control your jdom-interest membership: 
> http://www.jdom.org/mailman/options/jdom-interest/youraddr@yourhost.com

More information about the jdom-interest mailing list