<p>If there is a problem with the way jdom2 was published to maven, this might affect your stats?</p>
<p>On May 18, 2012 7:36 AM, "Rolf Lear" <<a href="mailto:jdom@tuis.net">jdom@tuis.net</a>> wrote:<br>
><br>
><br>
> Where were you for this discussion:<br>
> <a href="http://markmail.org/message/yjojwj26bwrxj5nx#query:+page:1+mid:buwh5fismpdahuoi+state:results">http://markmail.org/message/yjojwj26bwrxj5nx#query:+page:1+mid:buwh5fismpdahuoi+state:results</a><br>
><br>
> ;-)<br>
><br>
> So, the problem is as follows.... Maven imposes naming requirements for<br>
> artifacts.<br>
><br>
> 'We' decided that this is JDOM 2.0.0, not JDOM2 1.0.0, and also not JDOM2<br>
> 2.0.0, etc. Thus, the *main* download will be the jar jdom-2.0.0.jar.<br>
><br>
> This means that the maven artifact id *must* be 'jdom', not 'jdom2'.<br>
><br>
> At the time I was not aware how hard/impossible it would be to have both<br>
> jdom 1.x and 2.x sourced from maven....<br>
><br>
> Maven is the 'secondary' distribution system for JDOM. The primary JDOM<br>
> source is from <a href="http://www.jdom.org">www.jdom.org</a>. The jars downloaded from maven should be<br>
> identical to the ones from <a href="http://jdom.org">jdom.org</a>.<br>
><br>
><br>
> There are about 15k downloads a month from <a href="http://www.jdom.org">www.jdom.org</a> of 1.x versions of<br>
> JDOM.<br>
> There are about 35k downloads a month from maven-central of 1.x versions<br>
> of JDOM.<br>
><br>
> There are about 10k downloads a month from <a href="http://www.jdom.org">www.jdom.org</a> of 2.0.x versions<br>
> of JDOM<br>
> There are about 1k downloads a month from maven-central of 2.0.x versions<br>
> of JDOM.<br>
><br>
> The maven downloads show an *opposite* distribution of downloads compared<br>
> to <a href="http://www.jdom.org">www.jdom.org</a>:<br>
><br>
> Here are maven's statistics for the three months Feb, Mar, Apr:<br>
><br>
> version,count,%<br>
> "1.1","92301","0.8971452713012695"<br>
> "1.1.2","6406","0.062264904379844666"<br>
> "1.1.3","3425","0.03329024091362953"<br>
> "2.0.0","716","0.006959361489862204"<br>
> "2.0.1","35","3.4019225859083235E-4"<br>
><br>
> here's the graph....<br>
><br>
> <a href="http://chart.apis.google.com/chart?cht=p3&chs=400x400&chp=4.71&chco=326A9F|32349F|67329F|9D329F|9F326A&chtt=Downloads+From+Last%203%20Months|For+org.jdom:jdom&chds=0,92301&chd=t:92301,6406,3425,716,35&chdl=1.1|1.1.2|1.1.3|2.0.0|2.0.1">http://chart.apis.google.com/chart?cht=p3&chs=400x400&chp=4.71&chco=326A9F|32349F|67329F|9D329F|9F326A&chtt=Downloads+From+Last%203%20Months|For+org.jdom:jdom&chds=0,92301&chd=t:92301,6406,3425,716,35&chdl=1.1|1.1.2|1.1.3|2.0.0|2.0.1</a><br>
><br>
><br>
> JDOM 1.1 (released 2007) was downloaded 92K times in 3 months.<br>
> 1.1.2 (released last Aug) downloaded 6.5k times in 3 months.<br>
> 1.1.3 (released in Feb) just 3.5k times in 3 months<br>
><br>
> Note that Maven does not even have JDOM 1.1.1 (from 2009) .....<br>
><br>
> So, it shows a distinct 'inertia' in maven users. For all I know they are<br>
> not even aware that JDOM 2.x has happened.... My guess would be that 90% of<br>
> maven users do not pay attention to their code....<br>
><br>
> In a 'short while' I want to be in the position to say: "JDOM 1.x is no<br>
> longer being maintained". It is not in *my* interests to do it.... it is<br>
> essentially unchanged since 2007. If people have problems in JDOM 1.x I'm<br>
> going to want to say "Upgrade to 2.x". I am targeting about December 2012<br>
> for that....<br>
><br>
> What all this rambling boils down to is:<br>
><br>
> 1. I don't want to have to change JDOM's jar file name from jdom-2.0.x.jar<br>
> to jdom2-x.y.z.jar<br>
> 2. maven is the 'secondary' distribution system<br>
> 3. you can ask your 'dependency' code to upgrade to jdom 2.x (they should<br>
> be doing it anyway).<br>
> 4. The bell has already been rung on this... I can't un-ring this maven<br>
> problem.<br>
> 5. maven users are 'lazy' about keeping in touch with their dependencies,<br>
> and this will 'prod' them.<br>
> 6. This is all a maven problem (by design or implementation, I am not<br>
> sure)<br>
> 7. maven 'users' (including apache commons) are happy to do their own<br>
> thing anyway...<br>
> <a href="http://search.maven.org/#search|ga|1|a%3A%22org.apache.servicemix.bundles.jdom%22">http://search.maven.org/#search|ga|1|a%3A%22org.apache.servicemix.bundles.jdom%22</a><br>
> 8. maven is a PITA ..... :(<br>
><br>
> As you can tell, maven support 'requirement' has not been a happy<br>
> process.... in hindsight I probably should have just said no .... On the<br>
> other hand, now that I have the automated build system working, it is not<br>
> hard to publish to maven, as long as it conforms to JDOM's standards, I'm<br>
> OK.<br>
><br>
> Now that I have established my 'aversion' to the maven model, can you<br>
> suggest a way out of this predicament that also conforms to the JDOM<br>
> 'standard'... ? I promise to consider any suggestions....<br>
><br>
> Rolf<br>
><br>
><br>
><br>
> On Fri, 18 May 2012 08:29:28 -0400, Gary Gregory <<a href="mailto:garydgregory@gmail.com">garydgregory@gmail.com</a>><br>
> wrote:<br>
> > Hi All,<br>
> ><br>
> > For good or bad, I ended learning more than I care about Maven being the<br>
> > release manager for several Apache Commons components.<br>
> ><br>
> > Our rule in Commons is that when you change a package name, you must<br>
> change<br>
> > the Maven artifact id.<br>
> ><br>
> > My suggestion is to do this in your POM:<br>
> ><br>
> > <groupId>org.jdom</groupId><br>
> > <artifactId>jdom2</artifactId><br>
> > <version>2.0.2</version><br>
> ><br>
> > Depending on your philosophy, you could also re-publish the Maven<br>
> artifacts<br>
> > for 2.0.1. But this is usually considered bad form because the POM needs<br>
> to<br>
> > change and you would then have 2 2.0.1 version with different pom.xml in<br>
> > your sources jar.<br>
> ><br>
> > Gary<br>
> ><br>
><br>
> _______________________________________________<br>
> To control your jdom-interest membership:<br>
> <a 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>
</p>