<html><body><div style="color:#000; background-color:#fff; font-family:times new roman, new york, times, serif;font-size:12pt"><div><span>+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.</span><span> While there are ways around this -- namely, using OSGi -- the most practical way otherwise is to change artifact name.</span></div><div><span><br></span></div><div><span>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.</span></div><div><span>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.<br></span></div><br>This is a particularly nasty problem for "low level" libraries, projects, which are added as transitive dependencies.<br><br>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.<br><br><span></span><div><span>-+ Tatu +-<br></span></div><div><br></div>  <div style="font-family: times new roman, new york, times, serif; font-size: 12pt;"> <div style="font-family: times new roman, new york, times, serif; font-size: 12pt;"> <div dir="ltr"> <font face="Arial" size="2"> <hr size="1">  <b><span style="font-weight:bold;">From:</span></b> Mattias Jiderhamn <mj-lists@expertsystems.se><br> <b><span style="font-weight: bold;">To:</span></b>  <br><b><span style="font-weight: bold;">Cc:</span></b> jdom-interest@jdom.org <br> <b><span style="font-weight: bold;">Sent:</span></b> Friday, May 18, 2012 4:24 AM<br> <b><span style="font-weight:
 bold;">Subject:</span></b> Re: [jdom-interest] V2.x not usable next to V1.x<br> </font> </div> <br>
<div id="yiv1351776271">
  

    
  
  <div>
    <span style="font-size:8pt;"><span style="color:#EC7328;font-family:Pristina, Arial, Helvetica, Verdana;
font-size:12pt;"></span>
      
    </span>
    <div class="yiv1351776271moz-signature">
      <div style="font-family:Arial, Helvetica, Verdana, sans-serif;font-size:10pt;">
      </div>
    </div>
    JDOM 2 should have used an artifactId separate from that of JDOM 1
    (just like the package is renamed to allow for parallell versions).<br>
    <br>
    For example<br>
    <br>
        <groupId>org.jdom</groupId><br>
        <artifactId>jdom2</artifactId><br>
        <version>2.0.1</version><br>
                <br>
     </Mattias><br>
    <br>
    ----- Original Message -----
    <br>
    Subject: Re: [jdom-interest] V2.x not usable next to V1.x
    <br>
    Date: Fri, 18 May 2012 06:55:24 -0400
    <br>
    From: Rolf Lear <a rel="nofollow" class="yiv1351776271moz-txt-link-rfc2396E" ymailto="mailto:jdom@tuis.net" target="_blank" href="mailto:jdom@tuis.net"><jdom@tuis.net></a>
    <br>
    <br>
    Hi Gary.
    <br>
    <br>
    I am not a Maven expert.... and there is not a huge amount of Maven
    <br>
    *owner* expertise on this list (we have a number of maven *users*,
    but <br>
    not many people who 'publish'). I have learned enough to 'publish'
    to <br>
    maven, but I do not even *use* it.
    <br>
    <br>
    As such, our maven 'support' may be broken.
    <br>
    <br>
    But.... this is a limitation of maven.... not the way we deploy it.
    <br>
    <br>
    Can you show us how we should do it differently?
    <br>
    <br>
    For your information though, have you seen these sorts of
    questions.... <br>
    ? <br>
http://stackoverflow.com/questions/9308366/copy-two-versions-of-same-jar-using-maven
    <br>
    <br>
    Rolf
    <br>
    <br>
    On 17/05/2012 11:21 PM, Gary Gregory wrote:
    <br>
    > Hello JDOM,
    <br>
    >
    <br>
    > I cannot use both v2 and v1 in the same Maven or Ivy project
    because
    <br>
    > both use the same id in Maven repositories like Maven Central.
    <br>
    >
    <br>
    > I want to use v2 in my app but 3rd party jars I use depends on
    v1.
    <br>
    >
    <br>
    > Gary
    <br>
    > _______________________________________________
    <br>
    > To control your jdom-interest membership:
    <br>
    >
    http://www.jdom.org/mailman/options/jdom-interest/youraddr@yourhost.com
    <br>
    >
    <br>
    <br>
    _______________________________________________
    <br>
    To control your jdom-interest membership:
    <br>
<a rel="nofollow" class="yiv1351776271moz-txt-link-freetext" target="_blank" href="http://www.jdom.org/mailman/options/jdom-interest/youraddr@yourhost.com">http://www.jdom.org/mailman/options/jdom-interest/youraddr@yourhost.com</a>
    <br>
    <br>
    <br>
    <pre class="yiv1351776271moz-signature">-- 

  </Mattias></pre>
  </div>

</div><br>_______________________________________________<br>To control your jdom-interest membership:<br><a href="http://www.jdom.org/mailman/options/jdom-interest/youraddr@yourhost.com" target="_blank">http://www.jdom.org/mailman/options/jdom-interest/youraddr@yourhost.com</a><br><br> </div> </div>  </div></body></html>