You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ambari.apache.org by Scott Creeley <sc...@redhat.com> on 2015/03/26 15:14:29 UTC

Build Error - Any Ideas

Hi Everyone,
Been a few months and I haven't build latest 2.0.0 trunk yet, did something change or anyone else run into this?


[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 1:06.240s
[INFO] Finished at: Thu Mar 26 08:59:33 GMT-05:00 2015
[INFO] Final Memory: 41M/1262M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal on project ambari-server: Could not resolve dependencies for project org.apache.ambari:ambari-server:jar:2.0.0-1: Could not find artifact org.apache.ambari:ambari-metrics-common:jar:2.0.0-1 in oss.sonatype.org (https://oss.sonatype.org/content/groups/staging) -> [Help 1]
[ERROR] 


I can run previous builds fine...so I'm only affected on 2.0.0

thanks,
Scott

Re: Build Error - Any Ideas

Posted by Dmitro Lysnichenko <dl...@hortonworks.com>.
Also, there is dev wiki with instructions 
https://cwiki.apache.org/confluence/display/AMBARI/Ambari+Development

On 26/03/2015 04:19 PM, Dmitro Lysnichenko wrote:
> or try first mvn clean install -pl ambari-metrics/ambari-metrics-common
> On 26/03/2015 04:17 PM, Dmitro Lysnichenko wrote:
>> Hi
>>
>> Try something like
>>
>> mvn clean package rpm:rpm -pl 
>> ambari-agent,ambari-views,ambari-web,ambari-server,ambari-admin,ambari-metrics/ambari-metrics-common 
>> -DskipTests -Dfindbugs.skip -Drat.ignoreErrors -Dpython.ver="python 
>> >= 2.6" -Preplaceurl -Dstack.distribution=HDP
>>
>> On 26/03/2015 04:14 PM, Scott Creeley wrote:
>>> Hi Everyone,
>>> Been a few months and I haven't build latest 2.0.0 trunk yet, did 
>>> something change or anyone else run into this?
>>>
>>>
>>> [INFO] BUILD FAILURE
>>> [INFO] 
>>> ------------------------------------------------------------------------ 
>>>
>>> [INFO] Total time: 1:06.240s
>>> [INFO] Finished at: Thu Mar 26 08:59:33 GMT-05:00 2015
>>> [INFO] Final Memory: 41M/1262M
>>> [INFO] 
>>> ------------------------------------------------------------------------ 
>>>
>>> [ERROR] Failed to execute goal on project ambari-server: Could not 
>>> resolve dependencies for project 
>>> org.apache.ambari:ambari-server:jar:2.0.0-1: Could not find artifact 
>>> org.apache.ambari:ambari-metrics-common:jar:2.0.0-1 in 
>>> oss.sonatype.org (https://oss.sonatype.org/content/groups/staging) 
>>> -> [Help 1]
>>> [ERROR]
>>>
>>>
>>> I can run previous builds fine...so I'm only affected on 2.0.0
>>>
>>> thanks,
>>> Scott
>>
>


Re: Build Error - Any Ideas

Posted by Dmitro Lysnichenko <dl...@hortonworks.com>.
or try first mvn clean install -pl ambari-metrics/ambari-metrics-common
On 26/03/2015 04:17 PM, Dmitro Lysnichenko wrote:
> Hi
>
> Try something like
>
> mvn clean package rpm:rpm -pl 
> ambari-agent,ambari-views,ambari-web,ambari-server,ambari-admin,ambari-metrics/ambari-metrics-common 
> -DskipTests -Dfindbugs.skip -Drat.ignoreErrors -Dpython.ver="python >= 
> 2.6" -Preplaceurl -Dstack.distribution=HDP
>
> On 26/03/2015 04:14 PM, Scott Creeley wrote:
>> Hi Everyone,
>> Been a few months and I haven't build latest 2.0.0 trunk yet, did 
>> something change or anyone else run into this?
>>
>>
>> [INFO] BUILD FAILURE
>> [INFO] 
>> ------------------------------------------------------------------------
>> [INFO] Total time: 1:06.240s
>> [INFO] Finished at: Thu Mar 26 08:59:33 GMT-05:00 2015
>> [INFO] Final Memory: 41M/1262M
>> [INFO] 
>> ------------------------------------------------------------------------
>> [ERROR] Failed to execute goal on project ambari-server: Could not 
>> resolve dependencies for project 
>> org.apache.ambari:ambari-server:jar:2.0.0-1: Could not find artifact 
>> org.apache.ambari:ambari-metrics-common:jar:2.0.0-1 in 
>> oss.sonatype.org (https://oss.sonatype.org/content/groups/staging) -> 
>> [Help 1]
>> [ERROR]
>>
>>
>> I can run previous builds fine...so I'm only affected on 2.0.0
>>
>> thanks,
>> Scott
>


Re: Build Error - Any Ideas

Posted by Dmitro Lysnichenko <dl...@hortonworks.com>.
Hi

Try something like

mvn clean package rpm:rpm -pl 
ambari-agent,ambari-views,ambari-web,ambari-server,ambari-admin,ambari-metrics/ambari-metrics-common 
-DskipTests -Dfindbugs.skip -Drat.ignoreErrors -Dpython.ver="python >= 
2.6" -Preplaceurl -Dstack.distribution=HDP

On 26/03/2015 04:14 PM, Scott Creeley wrote:
> Hi Everyone,
> Been a few months and I haven't build latest 2.0.0 trunk yet, did something change or anyone else run into this?
>
>
> [INFO] BUILD FAILURE
> [INFO] ------------------------------------------------------------------------
> [INFO] Total time: 1:06.240s
> [INFO] Finished at: Thu Mar 26 08:59:33 GMT-05:00 2015
> [INFO] Final Memory: 41M/1262M
> [INFO] ------------------------------------------------------------------------
> [ERROR] Failed to execute goal on project ambari-server: Could not resolve dependencies for project org.apache.ambari:ambari-server:jar:2.0.0-1: Could not find artifact org.apache.ambari:ambari-metrics-common:jar:2.0.0-1 in oss.sonatype.org (https://oss.sonatype.org/content/groups/staging) -> [Help 1]
> [ERROR]
>
>
> I can run previous builds fine...so I'm only affected on 2.0.0
>
> thanks,
> Scott


Re: Build Error - Any Ideas

Posted by Jonathan Hurley <jh...@hortonworks.com>.
Ambari Metrics (ambari-metrics) is a new depedency for Ambari Server. It’s similar in build to Ambari Views in that it’s part of the source hierarchy, but you need the JAR built and “installed” in maven.

If you’re building at the top level of Ambari, you should be able to do a “mvn compile package install” to get this put into your ~/.m2 directory. If you’re just building ambari-server, you’ll want to do the “mvn compile package install” in ambari-metrics first to ensure that the JARs are available.

> On Mar 26, 2015, at 10:14 AM, Scott Creeley <sc...@redhat.com> wrote:
> 
> Hi Everyone,
> Been a few months and I haven't build latest 2.0.0 trunk yet, did something change or anyone else run into this?
> 
> 
> [INFO] BUILD FAILURE
> [INFO] ------------------------------------------------------------------------
> [INFO] Total time: 1:06.240s
> [INFO] Finished at: Thu Mar 26 08:59:33 GMT-05:00 2015
> [INFO] Final Memory: 41M/1262M
> [INFO] ------------------------------------------------------------------------
> [ERROR] Failed to execute goal on project ambari-server: Could not resolve dependencies for project org.apache.ambari:ambari-server:jar:2.0.0-1: Could not find artifact org.apache.ambari:ambari-metrics-common:jar:2.0.0-1 in oss.sonatype.org (https://oss.sonatype.org/content/groups/staging) -> [Help 1]
> [ERROR] 
> 
> 
> I can run previous builds fine...so I'm only affected on 2.0.0
> 
> thanks,
> Scott


RE: Build Error - Any Ideas

Posted by Myroslav Papyrkovskyy <mp...@hortonworks.com>.
Hello. Are you building whole project?
mvn clean package from root dir will work as is.

I guess you are running partial build for ambari-server, in such case you should add ambari-metrics/ambari-metrics to projects list (-pl or --projects).
So final command should be something like:
mvn clean package -pl ambari-views,ambari-admin,ambari-metrics/ambari-metrics-common,ambari-server

--
Regards,
Myroslav Papirkovskyy

________________________________________
Від: Scott Creeley <sc...@redhat.com>
Надіслано: 26 березня 2015 р. 16:14
Кому: ambari-dev@apache.org
Тема: Build Error - Any Ideas

Hi Everyone,
Been a few months and I haven't build latest 2.0.0 trunk yet, did something change or anyone else run into this?


[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 1:06.240s
[INFO] Finished at: Thu Mar 26 08:59:33 GMT-05:00 2015
[INFO] Final Memory: 41M/1262M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal on project ambari-server: Could not resolve dependencies for project org.apache.ambari:ambari-server:jar:2.0.0-1: Could not find artifact org.apache.ambari:ambari-metrics-common:jar:2.0.0-1 in oss.sonatype.org (https://oss.sonatype.org/content/groups/staging) -> [Help 1]
[ERROR]


I can run previous builds fine...so I'm only affected on 2.0.0

thanks,
Scott

Re: Build Error - Any Ideas

Posted by Scott Creeley <sc...@redhat.com>.
Ah, thanks Yusaku!  I missed that on the wiki


----- Original Message -----
From: "Yusaku Sako" <yu...@hortonworks.com>
To: dev@ambari.apache.org, ambari-dev@apache.org
Sent: Thursday, March 26, 2015 1:48:17 PM
Subject: Re: Build Error - Any Ideas

Hi Scott,

The wiki showing the build procedure has been updated recently:
https://cwiki.apache.org/confluence/display/AMBARI/Ambari+Development

The additional steps added are:
#Note: The ambari-metrics project is not wired up to the main ambari
project. However there is a dependency on ambari-metrics-common to build
the ambari-server RPM.
#Hence you also need to set ambari-metrics project version as well.
pushd ambari-metrics
mvn versions:set -DnewVersion=${AMBARI_VERSION}
popd


Please let me know if you continue to see issues.


Yusaku


On 3/26/15 7:14 AM, "Scott Creeley" <sc...@redhat.com> wrote:

>Hi Everyone,
>Been a few months and I haven't build latest 2.0.0 trunk yet, did
>something change or anyone else run into this?
>
>
>[INFO] BUILD FAILURE
>[INFO] 
>------------------------------------------------------------------------
>[INFO] Total time: 1:06.240s
>[INFO] Finished at: Thu Mar 26 08:59:33 GMT-05:00 2015
>[INFO] Final Memory: 41M/1262M
>[INFO] 
>------------------------------------------------------------------------
>[ERROR] Failed to execute goal on project ambari-server: Could not
>resolve dependencies for project
>org.apache.ambari:ambari-server:jar:2.0.0-1: Could not find artifact
>org.apache.ambari:ambari-metrics-common:jar:2.0.0-1 in oss.sonatype.org
>(https://oss.sonatype.org/content/groups/staging) -> [Help 1]
>[ERROR] 
>
>
>I can run previous builds fine...so I'm only affected on 2.0.0
>
>thanks,
>Scott


Re: Build Error - Any Ideas

Posted by Yusaku Sako <yu...@hortonworks.com>.
Hi Scott,

The wiki showing the build procedure has been updated recently:
https://cwiki.apache.org/confluence/display/AMBARI/Ambari+Development

The additional steps added are:
#Note: The ambari-metrics project is not wired up to the main ambari
project. However there is a dependency on ambari-metrics-common to build
the ambari-server RPM.
#Hence you also need to set ambari-metrics project version as well.
pushd ambari-metrics
mvn versions:set -DnewVersion=${AMBARI_VERSION}
popd


Please let me know if you continue to see issues.


Yusaku


On 3/26/15 7:14 AM, "Scott Creeley" <sc...@redhat.com> wrote:

>Hi Everyone,
>Been a few months and I haven't build latest 2.0.0 trunk yet, did
>something change or anyone else run into this?
>
>
>[INFO] BUILD FAILURE
>[INFO] 
>------------------------------------------------------------------------
>[INFO] Total time: 1:06.240s
>[INFO] Finished at: Thu Mar 26 08:59:33 GMT-05:00 2015
>[INFO] Final Memory: 41M/1262M
>[INFO] 
>------------------------------------------------------------------------
>[ERROR] Failed to execute goal on project ambari-server: Could not
>resolve dependencies for project
>org.apache.ambari:ambari-server:jar:2.0.0-1: Could not find artifact
>org.apache.ambari:ambari-metrics-common:jar:2.0.0-1 in oss.sonatype.org
>(https://oss.sonatype.org/content/groups/staging) -> [Help 1]
>[ERROR] 
>
>
>I can run previous builds fine...so I'm only affected on 2.0.0
>
>thanks,
>Scott