Has anyone else had success getting the Coludera repository to work with
Maven to resolve the MRunit artifacy? I'm trying to enable resolution from
through the pom.xml instead of settings.xml because the settings approach
isn't portable for a project like mahout.
I have the following stanzas in my pom.xml file:
<repositories>
<repository>
<id>cloudera</id>
<url>http://repository.cloudera.com/artifactory/repo</url>
</repository>
</repositories>
And later on in the dependencies section:
<dependency>
<groupId>com.cloudera</groupId>
<artifactId>hadoop-mrunit</artifactId>
<version>0.20.1+152</version>
<scope>test</scope>
</dependency>
Maven attempts to download the artifact via the URL:
http://repository.cloudera.com/artifactory/repo/com/cloudera/hadoop-mrunit/0.20.1+152/hadoop-mrunit-0.20.1+152.jar
It can't because the artifact actually exists at:
http://repository.cloudera.com/artifactory/repo/com.cloudera/hadoop-mrunit/0.20.1+152/hadoop-mrunit-0.20.1+152.jar
('com.cloudera' not 'com/cloudera' -- maven translates groupId's into paths
in the repo).
If I'm not mssing something obvious here, I think this may be an issue on
their side. I can always follow up to Ted's original question with this on
Cloudera's customer support site. Alternately, could we deploy MRunit in the
mahout maven repo somewhere? It would be handy to have in place.
FWIW, it appears that MRunit is a part of the official hadoop tree too,
maybe it is in one of their repos somewhere.
http://svn.apache.org/viewvc/hadoop/mapreduce/trunk/src/contrib/mrunit/
Drew
On Fri, Jan 8, 2010 at 11:30 PM, zhao zhendong <[email protected]>wrote:
> +1 for me.
>
> On Sat, Jan 9, 2010 at 5:23 AM, Ted Dunning <[email protected]> wrote:
>
> > I asked a question about MRUnit and got an answer:
> >
> > Aaron<
> >
> http://getsatisfaction.com/people/aaron_213335?utm_content=profile_link&utm_medium=email&utm_source=reply_notification
> > >,
> > an employee of Cloudera, replied to *Is MRUnit available as a jar on any
> > maven repo?<
> >
> http://getsatisfaction.com/cloudera/topics/is_mrunit_available_as_a_jar_on_any_maven_repo?utm_content=topic_link&utm_medium=email&utm_source=reply_notification
> > >
> > *, a question about Cloudera.
> > Yes. Cloudera exposes CDH as a maven repository, with all the contrib
> > modules exposed. See
> > http://repository.cloudera.com/artifa...<
> >
> http://repository.cloudera.com/artifactory/repo/com.cloudera/hadoop-mrunit/0.20.1+152/
> > >
> > - Aaron
> >
> > This raises the question: should we just whack the pom to add the MRUnit
> > dependency?
> >
> > --
> > Ted Dunning, CTO
> > DeepDyve
> >
>
>
>
> --
> -------------------------------------------------------------
>
> Zhen-Dong Zhao (Maxim)
>
> <><<><><><><><><><>><><><><><>>>>>>
>
> Department of Computer Science
> School of Computing
> National University of Singapore
>
> ><><><><><><><><><><><><><><><><<<<
> Homepage:http://zhaozhendong.googlepages.com
> Mail: zhaozhendong at gmail dot com
> >>>>>>><><><><><><><><<><>><><<<<<<
>