Sunday, December 26, 2010

Maven 3.0 does not support *Maven* 1.0 (legacy) repository

Today I was frustrated by this :

Maven 3.x no longer supports repositories using <layout>legacy</layout>. Users that need to access repositories created with Maven 1.x are advised to use a repository manager that is capable of providing a Maven 2.x compatible view of the legacy repository.

WHAT???

Sonatype could simply change their suggestion to "Users that need to access repositories created with Maven 1.x are advised to use Apache Ivy."

I understand the need to force users to use the new technology, but not by disabling access to older technology without providing a practical alternative. At least wait for your competitors to stop supporting your legacy product before you yourself do it.

java.net Maven 1 repository contains artifacts that I need at times, now I have to hunt the artifacts or do workarounds that was simply solved using repository layout=legacy. Argh!

15 comments:

  1. If you are using JEE5 APIs only, you can use equivalent Geronimo artifacts (http://repo2.maven.org/maven2/org/apache/geronimo/specs/)

    ReplyDelete
  2. I don't think it's unreasonable to deprecate the Maven 1 repo layout after two major releases. Couldn't you just upload the artefacts you want to a local Nexus/Artefactory repo? It's not much work and you only have to do it once.

    ReplyDelete
  3. @Anonymous : thanks.. that's one way of hunting things :)

    @Ricardo : I **could**. It's really not about whether something is possible or impossible. Deprecating is OK, blocking access is not.

    Imagine if your latest browser (Firefox, Chrome, Safari, whatever) refuses to open old, broken, HTML pages then tells you "if you want to open pre-HTML4 pages that are not W3C valid, please install a proxy server that converts HTML pages on the fly to valid HTML4 pages".

    Maven is a tool, it might have recommendations but *I* am the master, not the tool. If I want to do something even it isn't recommended, I want to tell Maven what I want instead of Maven telling me what I should do.

    Apache Ivy wins in this regard, now if Ivy can do it why Maven can't? Ivy even supports even more resolvers than Maven does, they seem to have no problem supporting legacy Maven repos.

    ReplyDelete
  4. There is a workaround: use maven proxy like nexus or artifactory.

    ReplyDelete
  5. Apache Ivy can because they to help users keep using what they know instead of forcing users to change their tools. We tried Maven once and it was a waste of time everything has to be the way Maven wants it to be otherwise it does not work. Apache Ant/Ivy it is more flexible.

    ReplyDelete
  6. Apache Ivy RS Goldcan easily because they to assist consumers keep in doing what they understand rather than making customers to change his or her tools. We tried Expert as soon as and yes it was a total waste all things have to be just how Expert would like so that it is normally this doesn't perform.WOW Gold Apache Ant/Ivy it's much more flexible.

    ReplyDelete
  7. Your current minute card is definitely beautiful -- along with what a attractive gift. Just about any lady would be happy to receive this specific.
    Appreciate your an individual ideas. Buy RS Money
    cheap GW2 Gold

    ReplyDelete
  8. Do you believe that Dec. 21th 2012 is the end of the world? Wow, it's very horrific. What do you want to spent those days? Have you made the full preparation for the escaping. As long as to me, I do nothing but looking for cheap diablo 3 gold. I wonder if any store will cut the price or even sent free gold to customers before the doomsday. So if you are a diablo 3 fan too, hurry up to buy diablo 3 gold.

    ReplyDelete
  9. hey, i have been looking for this kind of informative articles for such a long time, and i am really lucky to find out your work here.It is useful when i do that by myself or could make me know more clear on dealing with these issues. buy runescape gold , runescape gold

    ReplyDelete
  10. I understand the need to force users to use the new technology, but not by disabling access to older technology without providing a practical alternative. At least wait for your competitors to stop supporting your legacy product before you yourself do it.
    swtor gold
    buy swtor gold
    cheap swtor gold
    tor credits
    buy tor credits
    cheap tor credits

    ReplyDelete
  11. Apache Ivy wins in this regard, now if Ivy can do it why Maven can't? Ivy even supports even more resolvers than Maven does, they seem to have no problem supporting legacy Maven repos.guild wars 2 gold
    buy guild wars 2 gold
    cheap guild wars 2 gold
    cheapest guild wars 2 gold
    guild wars 2 gold for sale

    ReplyDelete
  12. Thanks. I always enjoy reading your posts - they are always humorous and intelligent.You can learn more: China tour packages | China travel packages | China Travel Agency

    ReplyDelete
  13. The best place to study Chinese online is in China. However, we understand that it isn't always possible to move here to study Chinese language. The next best thing is to study with our experienced teachers in a virtual classroom. Online students enjoy the same excellent way of mandarin Chinese online lessons and custom designed courseware that we provide for our face to face clients.

    ReplyDelete
  14. Nice article, thanks for the information. It's very complete information. I will bookmark for next reference
    jaring futsal | jaring golf | jaring pengaman proyek |
    jaring pengaman bangunan | jaring pengaman gedung
    http://www.jual-jaring.blogspot.com/
    http://www.agen-jaring.blogspot.com/
    http://www.pancasamudera-safetynet.blogspot.com/
    http://www.toko-jaring.blogspot.com/
    http://www.pusat-jaring.blogspot.com/
    http://jualjaringpengaman.blogspot.com/
    https://pancasamudera.wordpress.com/
    https://pasangjaringfutsal.wordpress.com/
    https://jualtambangmurah.wordpress.com/
    https://tokojaring.wordpress.com/
    https://jualjaringfutsal.wordpress.com/
    https://jaringfutsal.wordpress.com/


    ReplyDelete