xmvn build issue
Amir Sanjar
v1sanjar at us.ibm.com
Thu Oct 24 14:48:18 UTC 2013
Thanks Robert, it worked, but should -o option be a default setting for
xmvn?!
I have found another issue with the same branch:
[ERROR] Failed to execute goal on project hadoop-hdfs: Could not resolve
dependencies for project org.apache.hadoop:hadoop-hdfs:jar:2.0.5-alpha:
Cannot access apache.snapshots.https (
https://repository.apache.org/content/repositories/snapshots) in offline
mode and the artifact org.apache.zookeeper:zookeeper-test:jar:tests:3.4.5
has not been downloaded from it before. -> [Help 1]
same error exists in hadoop-common, I have fixed both errors by making
bellow changes into respective pom.xmls. There is no need to define
zookeeper-test while type is test-jar.
<dependency>
<groupId>org.apache.zookeeper</groupId>
- <artifactId>zookeeper-test</artifactId>
+ <artifactId>zookeeper</artifactId>
<version>3.4.5</version>
<type>test-jar</type>
<scope>test</scope>
Best Regards
Amir Sanjar
PowerLinux Open Source Hadoop Architect
IBM Senior Software Engineer
Phone# 512-286-8393
Fax# 512-838-8858
From: Robert Rati <rrati at redhat.com>
To: Fedora Big Data SIG <bigdata at lists.fedoraproject.org>
Date: 10/24/2013 09:13 AM
Subject: Re: xmvn build issue
Sent by: bigdata-bounces at lists.fedoraproject.org
Try doing 'xmvn -o -DskipTests -DskipIT clean package'. Without the -o
you are allowing xmvn to d/l from maven respositories and use already
downloaded jars. You could be running into a version issue with tools.jar.
Rob
On 10/24/2013 10:07 AM, Amir Sanjar wrote:
> xmvn -DskipTests -DskipIT clean package
>
> Best Regards
> Amir Sanjar
>
> PowerLinux Open Source Hadoop Architect
> IBM Senior Software Engineer
> Phone# 512-286-8393
> Fax# 512-838-8858
>
>
>
> Inactive hide details for Robert Rati ---10/24/2013 07:42:10 AM---What
> is your build command? RobRobert Rati ---10/24/2013 07:42:10 AM---What
> is your build command? Rob
>
> From: Robert Rati <rrati at redhat.com>
> To: bigdata at lists.fedoraproject.org
> Date: 10/24/2013 07:42 AM
> Subject: Re: xmvn build issue
> Sent by: bigdata-bounces at lists.fedoraproject.org
>
> ------------------------------------------------------------------------
>
>
>
> What is your build command?
>
> Rob
>
> On 10/23/2013 04:56 PM, Amir Sanjar wrote:
> > fedora19-2.0.5-alpha-test
> >
> > Best Regards
> > Amir Sanjar
> >
> > PowerLinux Open Source Hadoop Architect
> > IBM Senior Software Engineer
> > Phone# 512-286-8393
> > Fax# 512-838-8858
> >
> >
> >
> > Inactive hide details for Robert Rati ---10/23/2013 02:45:49 PM---You
> > should not need to add scope or the path to tools.jar. DRobert Rati
> > ---10/23/2013 02:45:49 PM---You should not need to add scope or the
path
> > to tools.jar. Doing so on fedora will cause issues wh
> >
> > From: Robert Rati <rrati at redhat.com>
> > To: bigdata at lists.fedoraproject.org
> > Date: 10/23/2013 02:45 PM
> > Subject: Re: xmvn build issue
> > Sent by: bigdata-bounces at lists.fedoraproject.org
> >
> >
------------------------------------------------------------------------
> >
> >
> >
> > You should not need to add scope or the path to tools.jar. Doing so
on
> > fedora will cause issues when another projects wants to use a jar from
> > that build. What branch are you building off of and what is your xmvn
> > command line?
> >
> > Rob
> >
> > On 10/22/2013 03:38 PM, Amir Sanjar wrote:
> > > I used xmv.
> > >
> > > Best Regards
> > > Amir Sanjar
> > >
> > > PowerLinux Open Source Hadoop Architect
> > > IBM Senior Software Engineer
> > > Phone# 512-286-8393
> > > Fax# 512-838-8858
> > >
> > >
> > >
> > > Inactive hide details for "puntogil at libero.it" ---10/22/2013
01:53:25
> > > PM---Il 22/10/2013 20:45, Amir Sanjar ha scritto:
> >"puntogil at libero.it"
> > > ---10/22/2013 01:53:25 PM---Il 22/10/2013 20:45, Amir Sanjar ha
> > scritto: >
> > >
> > > From: "puntogil at libero.it" <puntogil at libero.it>
> > > To: bigdata at lists.fedoraproject.org
> > > Date: 10/22/2013 01:53 PM
> > > Subject: Re: xmvn build issue
> > > Sent by: bigdata-bounces at lists.fedoraproject.org
> > >
> > >
> ------------------------------------------------------------------------
> > >
> > >
> > >
> > > Il 22/10/2013 20:45, Amir Sanjar ha scritto:
> > >
> > >
> > > Update:
> > > if I add <scope> and hardcode the path to tools.jar using
> > > <systemPath>, it fixes the issue !!!
> > >
> > > <dependency>
> > > <groupId>com.sun</groupId>
> > > <artifactId>tools</artifactId>
> > > */ <scope>system</scope> <<added
> > >
> > >
> >
>
<systemPath>/usr/lib/jvm/java-1.7.0-openjdk-1.7.0.60-2.4.2.9.fc20.x86_64/lib/tools.jar</systemPath>
> > > <<added/*
> > > </dependency>
> > >
> > >
> > > but in Fedora isn't correct
> > > which command use for build hadoop
> > > use the macro? %mvn_build .... ?
> > > regards
> > >
> > >
> > >
> >
>
================================================================================================================================
> > >
> > > with fedora maven build 3.1.1-2
> > >
> > > Build error:
> > > [ERROR] Failed to execute goal on project hadoop-annotations:
> Could
> > > not resolve dependencies for project
> > > org.apache.hadoop:hadoop-annotations:jar:2.0.5-alpha: Failed to
> > > collect dependencies at com.sun:tools:jar:SYSTEM: Failed to
read
> > > artifact descriptor for com.sun:tools:jar:SYSTEM: Could not
> transfer
> > > artifact com.sun:tools:pom:SYSTEM from/to
apache.snapshots.https
> > >
> (_https://repository.apache.org/content/repositories/snapshots_): No
> > > connector factories available -> [Help 1]
> > >
> > >
> > > [xxxxx at localhost hadoop-common]$ mvn -v
> > > Apache Maven 3.1.1 (NON-CANONICAL_2013-10-22_09-01_mockbuild;
> > > 2013-10-22 04:01:59-0500)
> > > Maven home: /usr/share/maven
> > > Java version: 1.7.0_40, vendor: Oracle Corporation
> > > Java home:
> >
> /usr/lib/jvm/java-1.7.0-openjdk-1.7.0.60-2.4.2.9.fc20.x86_64/jre
> > > Default locale: en_US, platform encoding: UTF-8
> > > OS name: "linux", version: "3.11.5-302.fc20.x86_64", arch:
> "amd64",
> > > family: "unix"
> > >
> > > >>>>> xmvn -v
> > > Apache Maven 3.1.1 (NON-CANONICAL_2013-10-22_09-01_mockbuild;
> > > 2013-10-22 04:01:59-0500)
> > > Maven home: /usr/share/xmvn
> > > Java version: 1.7.0_40, vendor: Oracle Corporation
> > > Java home:
> >
> /usr/lib/jvm/java-1.7.0-openjdk-1.7.0.60-2.4.2.9.fc20.x86_64/jre
> > > Default locale: en_US, platform encoding: UTF-8
> > > OS name: "linux", version: "3.11.5-302.fc20.x86_64", arch:
> "amd64",
> > > family: "unix"
> > >
> > > Best Regards
> > > Amir Sanjar
> > >
> > > PowerLinux Open Source Hadoop Architect
> > > IBM Senior Software Engineer
> > > Phone# 512-286-8393
> > > Fax# 512-838-8858
> > >
> > >
> > >
> > > Inactive hide details for Mikolaj Izdebski ---10/22/2013
10:23:16
> > > AM---On 10/22/2013 05:19 PM, Amir Sanjar wrote: >Mikolaj
Izdebski
> > > ---10/22/2013 10:23:16 AM---On 10/22/2013 05:19 PM, Amir Sanjar
> > wrote: >
> > >
> > > From: Mikolaj Izdebski _<mizdebsk at redhat.com>_
> > > <mailto:mizdebsk at redhat.com>
> > > To: _bigdata at lists.fedoraproject.org_
> > > <mailto:bigdata at lists.fedoraproject.org>
> > > Date: 10/22/2013 10:23 AM
> > > Subject: Re: xmvn build issue
> > > Sent by: _bigdata-bounces at lists.fedoraproject.org_
> > > <mailto:bigdata-bounces at lists.fedoraproject.org>
> > >
> > >
> >
------------------------------------------------------------------------
> > >
> > >
> > >
> > > On 10/22/2013 05:19 PM, Amir Sanjar wrote:
> > > >
> > > > downloaded the latest mvn from
> > > > _http://maven.apache.org/docs/3.1.1/release-notes.html_
> > >
> > > I meant Fedora build of Maven, packaged as RPM. Available in
> > rawhide:_
> > > __http://kojipkgs.fedoraproject.org/repos/rawhide/latest/_
> > >
> > > --
> > > Mikolaj Izdebski
> > > IRC: mizdebsk
> > > _______________________________________________
> > > bigdata mailing list_
> > > __bigdata at lists.fedoraproject.org_
> > > <mailto:bigdata at lists.fedoraproject.org>_
> > > __https://admin.fedoraproject.org/mailman/listinfo/bigdata_
> > >
> > >
> > >
> > > _______________________________________________
> > > bigdata mailing list
> > > _bigdata at lists.fedoraproject.org_
> > > <mailto:bigdata at lists.fedoraproject.org>
> > > _https://admin.fedoraproject.org/mailman/listinfo/bigdata_
> > >
> > > [attachment "puntogil.vcf" deleted by Amir Sanjar/Austin/IBM]
> > > _______________________________________________
> > > bigdata mailing list
> > > bigdata at lists.fedoraproject.org
> > > https://admin.fedoraproject.org/mailman/listinfo/bigdata
> > >
> > >
> > >
> > > _______________________________________________
> > > bigdata mailing list
> > > bigdata at lists.fedoraproject.org
> > > https://admin.fedoraproject.org/mailman/listinfo/bigdata
> > >
> > _______________________________________________
> > bigdata mailing list
> > bigdata at lists.fedoraproject.org
> > https://admin.fedoraproject.org/mailman/listinfo/bigdata
> >
> >
> >
> > _______________________________________________
> > bigdata mailing list
> > bigdata at lists.fedoraproject.org
> > https://admin.fedoraproject.org/mailman/listinfo/bigdata
> >
> _______________________________________________
> bigdata mailing list
> bigdata at lists.fedoraproject.org
> https://admin.fedoraproject.org/mailman/listinfo/bigdata
>
>
>
> _______________________________________________
> bigdata mailing list
> bigdata at lists.fedoraproject.org
> https://admin.fedoraproject.org/mailman/listinfo/bigdata
>
_______________________________________________
bigdata mailing list
bigdata at lists.fedoraproject.org
https://admin.fedoraproject.org/mailman/listinfo/bigdata
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.fedoraproject.org/pipermail/bigdata/attachments/20131024/c896fdea/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: graycol.gif
Type: image/gif
Size: 105 bytes
Desc: not available
URL: <http://lists.fedoraproject.org/pipermail/bigdata/attachments/20131024/c896fdea/attachment-0001.gif>
More information about the bigdata
mailing list