Re: V2.x not usable next to V1.x
Gary Gregory <[email protected]> Fri, 18 May 2012 08:29:28 -0400
| Newsgroups | gmane.comp.java.jdom.general |
|---|---|
| Message-ID | <CACZkXPzY2BEaS-0FQ_EkQ9g3jX8Qu-rXELQtiaTyBz_V7AOjOw@mail.gmail.com> |
Hi All, For good or bad, I ended learning more than I care about Maven being the release manager for several Apache Commons components. Our rule in Commons is that when you change a package name, you must change the Maven artifact id. My suggestion is to do this in your POM: <groupId>org.jdom</groupId> <artifactId>jdom2</artifactId> <version>2.0.2</version> Depending on your philosophy, you could also re-publish the Maven artifacts for 2.0.1. But this is usually considered bad form because the POM needs to change and you would then have 2 2.0.1 version with different pom.xml in your sources jar. Gary On Fri, May 18, 2012 at 6:55 AM, Rolf Lear <[email protected]> wrote: > 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<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]<http://www.jdom.org/mailman/options/jdom-interest/[email protected]> >> >> > -- E-Mail: [email protected] | [email protected] JUnit in Action, 2nd Ed: <http://goog_1249600977>http://bit.ly/ECvg0 Spring Batch in Action: <http://s.apache.org/HOq>http://bit.ly/bqpbCK Blog: http://garygregory.wordpress.com Home: http://garygregory.com/ Tweet! http://twitter.com/GaryGregory _______________________________________________ To control your jdom-interest membership: http://www.jdom.org/mailman/options/jdom-interest/[email protected]