Re: V2.x not usable next to V1.x
Rolf Lear <[email protected]> Fri, 18 May 2012 14:24:56 -0400
| Newsgroups | gmane.comp.java.jdom.general |
|---|---|
| Message-ID | <[email protected]> |
Tatu 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 assist? All in all, I think it is fair to blame maven here. Rolf On Fri, 18 May 2012 11:10:50 -0700 (PDT), Tatu Saloranta <[email protected]> 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 exactly > this reason.While there are ways around this -- namely, using OSGi -- the > 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 to > use JDOM 2. Or most likely, both. > > This is a particularly nasty problem for "low level" libraries, projects, > 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 <[email protected]> > To: > Cc: [email protected] > 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 <[email protected]> > > 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.... > ? > http://stackoverflow.com/questions/9308366/copy-two-versions-of-same-jar-using-maven > > > 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: >> > http://www.jdom.org/mailman/options/jdom-interest/[email protected] >> > > _______________________________________________ > To control your jdom-interest membership: > http://www.jdom.org/mailman/options/jdom-interest/[email protected] _______________________________________________ To control your jdom-interest membership: http://www.jdom.org/mailman/options/jdom-interest/[email protected]