Thursday, July 10, 2014

Maven/Ivy considered harmful (1)

Consider the repositories http://central.maven.org/maven2/org/mortbay/jetty/jetty/6.1.26/ and http://repository.jboss.org/nexus/content/groups/public/org/mortbay/jetty/jetty/6.1.26/
Both do contain a jetty-6.1.26.pom with very different contents.
Somehow the pig compile job can pick up the pom from jboss repository and using it on maven central, yielding to this weird message when compiling bigtop:

[ivy:resolve] 
[ivy:resolve] :: problems summary ::
[ivy:resolve] :::: WARNINGS
[ivy:resolve]   [FAILED     ] org.mortbay.jetty#jetty;6.1.26!jetty.zip:  (0ms)
[ivy:resolve]  ==== fs: tried
[ivy:resolve]    XXXXXXXXX/.m2/repository/org/mortbay/jetty/jetty/6.1.26/jetty-6.1.26.zip
[ivy:resolve]  ==== maven2: tried
[ivy:resolve]    http://repo2.maven.org/maven2/org/mortbay/jetty/jetty/6.1.26/jetty-6.1.26.zip
[ivy:resolve]  ==== jboss-maven2: tried
[ivy:resolve]    http://repository.jboss.com/nexus/content/groups/public/org/mortbay/jetty/jetty/6.1.26/jetty-6.1.26.zip
[ivy:resolve]  ==== apache-snapshots: tried
[ivy:resolve]    http://repository.apache.org/content/groups/snapshots-group/org/mortbay/jetty/jetty/6.1.26/jetty-6.1.26.zip
[ivy:resolve]   ::::::::::::::::::::::::::::::::::::::::::::::
[ivy:resolve]   ::              FAILED DOWNLOADS            ::
[ivy:resolve]   :: ^ see resolution messages for details  ^ ::
[ivy:resolve]   ::::::::::::::::::::::::::::::::::::::::::::::
[ivy:resolve]   :: org.mortbay.jetty#jetty;6.1.26!jetty.zip
[ivy:resolve]   ::::::::::::::::::::::::::::::::::::::::::::::
[ivy:resolve] 
I am not the only one see here for instance: Pig posting Have to look into it why http://repository.jboss.org/nexus/content/groups/public/ is used at all for resolving dependencies.