Thank you, I will give it a shot.

Ram
On Feb 12, 2016 7:26 AM, "Jonathan Hurley" <jhur...@hortonworks.com> wrote:

> Maven looks for dependencies in your local repositories (~/.m2). When you
> have another compiled project as a dependency (which ambari-server has on
> ambari-metrics), you need to "install" this dependency in your local repo.
> In the ambari-metrics subproject folder, you'll want to do a: mvn clean
> compile package install -DskipTests
>
> The "install" part is what copies the dependencies into your local maven
> repo. Also, you'll probably need this for ambari-views as well since
> ambari-server also depends on ambari-views.
>
> On Feb 12, 2016, at 10:01 AM, Banias H <banias4sp...@gmail.com> wrote:
>
> My suggestion to get past this error is to comment out the
> <repositories>...</repositories> in ambari/pom.xml file. The error is:
> Could not find artifact org.apache.ambari:ambari-metrics-common:jar:2.2.1.0
> in oss.sonatype.org (https://oss.sonatype.org/content/groups/staging) ->
> [Help 1]
>
> However ambari-metrics-common has been suucessfully built locally:
>
> [INFO] Ambari Metrics Common .............................. SUCCESS [
> 1.724 s]
>
> Yet it is always trying to fetch from sonatype.org, which doesn't have
> ambari 2.2.1.0. If commenting out repositories block in pom file doesn't
> help, I would suggest going into ambari-metrics-common and do a "mvn clean
> install". Then do an ambari build again.
>
>
> On Fri, Feb 12, 2016 at 8:38 AM, rammohan ganapavarapu <
> rammohanga...@gmail.com> wrote:
>
>> Any one faced this issue before? please help me how to resolve this issue.
>>
>> Thanks,
>> Ram
>>
>> On Thu, Feb 11, 2016 at 9:12 PM, rammohan ganapavarapu <
>> rammohanga...@gmail.com> wrote:
>>
>>> I was able to fix that error by installing python26-devel package. Now i
>>> am getting server build error.
>>>
>>>
>>> [INFO]
>>> ------------------------------------------------------------------------
>>> [INFO] Building Ambari Server 2.2.1.0
>>> [INFO]
>>> ------------------------------------------------------------------------
>>> [INFO] Downloading:
>>> https://oss.sonatype.org/content/groups/staging/org/apache/ambari/ambari-metrics-common/2.2.1.0/ambari-metrics-common-2.2.1.0.pom
>>> [INFO] Downloading:
>>> http://repo.spring.io/milestone/org/apache/ambari/ambari-metrics-common/2.2.1.0/ambari-metrics-common-2.2.1.0.pom
>>> [INFO] Downloading:
>>> https://repository.apache.org/content/groups/staging/org/apache/ambari/ambari-metrics-common/2.2.1.0/ambari-metrics-common-2.2.1.0.pom
>>> [INFO] Downloading:
>>> https://repo.maven.apache.org/maven2/org/apache/ambari/ambari-metrics-common/2.2.1.0/ambari-metrics-common-2.2.1.0.pom
>>> [WARNING] The POM for
>>> org.apache.ambari:ambari-metrics-common:jar:2.2.1.0 is missing, no
>>> dependency information available
>>> [INFO] Downloading:
>>> https://oss.sonatype.org/content/groups/staging/org/apache/ambari/ambari-metrics-common/2.2.1.0/ambari-metrics-common-2.2.1.0.jar
>>> [INFO] Downloading:
>>> http://repo.spring.io/milestone/org/apache/ambari/ambari-metrics-common/2.2.1.0/ambari-metrics-common-2.2.1.0.jar
>>> [INFO] Downloading:
>>> https://repository.apache.org/content/groups/staging/org/apache/ambari/ambari-metrics-common/2.2.1.0/ambari-metrics-common-2.2.1.0.jar
>>> [INFO] Downloading:
>>> https://repo.maven.apache.org/maven2/org/apache/ambari/ambari-metrics-common/2.2.1.0/ambari-metrics-common-2.2.1.0.jar
>>> [INFO]
>>> [INFO]
>>> ------------------------------------------------------------------------
>>> [INFO] Skipping Ambari Main
>>> [INFO] This project has been banned from the build due to previous
>>> failures.
>>> [INFO]
>>> ------------------------------------------------------------------------
>>> [INFO]
>>> ------------------------------------------------------------------------
>>> [INFO] Reactor Summary:
>>> [INFO]
>>> [INFO] Ambari Main ........................................ SUCCESS [
>>> 3.544 s]
>>> [INFO] Apache Ambari Project POM .......................... SUCCESS [
>>> 0.259 s]
>>> [INFO] Ambari Web ......................................... SUCCESS
>>> [01:02 min]
>>> [INFO] Ambari Views ....................................... SUCCESS [
>>> 2.314 s]
>>> [INFO] Ambari Admin View .................................. SUCCESS [
>>> 39.650 s]
>>> [INFO] ambari-metrics ..................................... SUCCESS [
>>> 0.886 s]
>>> [INFO] Ambari Metrics Common .............................. SUCCESS [
>>> 1.724 s]
>>> [INFO] Ambari Metrics Hadoop Sink ......................... SUCCESS [
>>> 3.882 s]
>>> [INFO] Ambari Metrics Flume Sink .......................... SUCCESS [
>>> 2.366 s]
>>> [INFO] Ambari Metrics Kafka Sink .......................... SUCCESS [
>>> 1.515 s]
>>> [INFO] Ambari Metrics Storm Sink .......................... SUCCESS [
>>> 3.873 s]
>>> [INFO] Ambari Metrics Collector ........................... SUCCESS
>>> [01:21 min]
>>> [INFO] Ambari Metrics Monitor ............................. SUCCESS [
>>> 3.215 s]
>>> [INFO] Ambari Metrics Assembly ............................ SUCCESS
>>> [02:50 min]
>>> [INFO] Ambari Server ...................................... FAILURE [
>>> 6.231 s]
>>> [INFO] Ambari Agent ....................................... SKIPPED
>>> [INFO] Ambari Client ...................................... SKIPPED
>>> [INFO] Ambari Python Client ............................... SKIPPED
>>> [INFO] Ambari Groovy Client ............................... SKIPPED
>>> [INFO] Ambari Shell ....................................... SKIPPED
>>> [INFO] Ambari Python Shell ................................ SKIPPED
>>> [INFO] Ambari Groovy Shell ................................ SKIPPED
>>> [INFO]
>>> ------------------------------------------------------------------------
>>> [INFO] BUILD FAILURE
>>> [INFO]
>>> ------------------------------------------------------------------------
>>> [INFO] Total time: 06:24 min
>>> [INFO] Finished at: 2016-02-12T05:11:31+00:00
>>> [INFO] Final Memory: 183M/1480M
>>> [INFO]
>>> ------------------------------------------------------------------------
>>> [ERROR] Failed to execute goal on project ambari-server: Could not
>>> resolve dependencies for project org.apache.ambari:ambari-server:jar:
>>> 2.2.1.0: Could not find artifact
>>> org.apache.ambari:ambari-metrics-common:jar:2.2.1.0 in oss.sonatype.org
>>> (https://oss.sonatype.org/content/groups/staging) -> [Help 1]
>>> org.apache.maven.lifecycle.LifecycleExecutionException: Failed to
>>> execute goal on project ambari-server: Could not resolve dependencies for
>>> project org.apache.ambari:ambari-server:jar:2.2.1.0: Could not find
>>> artifact org.apache.ambari:ambari-metrics-common:jar:2.2.1.0 in
>>> oss.sonatype.org (https://oss.sonatype.org/content/groups/staging)
>>>     at
>>> org.apache.maven.lifecycle.internal.LifecycleDependencyResolver.getDependencies(LifecycleDependencyResolver.java:221)
>>>     at
>>> org.apache.maven.lifecycle.internal.LifecycleDependencyResolver.resolveProjectDependencies(LifecycleDependencyResolver.java:127)
>>>     at
>>> org.apache.maven.lifecycle.internal.MojoExecutor.ensureDependenciesAreResolved(MojoExecutor.java:245)
>>>     at
>>> org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:199)
>>>     at
>>> org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
>>>     at
>>> org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
>>>     at
>>> org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:116)
>>>     at
>>> org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:80)
>>>     at
>>> org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build(SingleThreadedBuilder.java:51)
>>>     at
>>> org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:128)
>>>     at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:307)
>>>     at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:193)
>>>     at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:106)
>>>     at org.apache.maven.cli.MavenCli.execute(MavenCli.java:863)
>>>     at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:288)
>>>     at org.apache.maven.cli.MavenCli.main(MavenCli.java:199)
>>>     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>>     at
>>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
>>>     at
>>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>>>     at java.lang.reflect.Method.invoke(Method.java:497)
>>>     at
>>> org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:289)
>>>     at
>>> org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:229)
>>>     at
>>> org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:415)
>>>     at
>>> org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:356)
>>> Caused by: org.apache.maven.project.DependencyResolutionException: Could
>>> not resolve dependencies for project org.apache.ambari:ambari-server:jar:
>>> 2.2.1.0: Could not find artifact
>>> org.apache.ambari:ambari-metrics-common:jar:2.2.1.0 in oss.sonatype.org
>>> (https://oss.sonatype.org/content/groups/staging)
>>>     at
>>> org.apache.maven.project.DefaultProjectDependenciesResolver.resolve(DefaultProjectDependenciesResolver.java:211)
>>>     at
>>> org.apache.maven.lifecycle.internal.LifecycleDependencyResolver.getDependencies(LifecycleDependencyResolver.java:195)
>>>     ... 23 more
>>> Caused by: org.eclipse.aether.resolution.DependencyResolutionException:
>>> Could not find artifact org.apache.ambari:ambari-metrics-common:jar:2.2.1.0
>>> in oss.sonatype.org (https://oss.sonatype.org/content/groups/staging)
>>>     at
>>> org.eclipse.aether.internal.impl.DefaultRepositorySystem.resolveDependencies(DefaultRepositorySystem.java:384)
>>>     at
>>> org.apache.maven.project.DefaultProjectDependenciesResolver.resolve(DefaultProjectDependenciesResolver.java:205)
>>>     ... 24 more
>>> Caused by: org.eclipse.aether.resolution.ArtifactResolutionException:
>>> Could not find artifact org.apache.ambari:ambari-metrics-common:jar:2.2.1.0
>>> in oss.sonatype.org (https://oss.sonatype.org/content/groups/staging)
>>>     at
>>> org.eclipse.aether.internal.impl.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:444)
>>>     at
>>> org.eclipse.aether.internal.impl.DefaultArtifactResolver.resolveArtifacts(DefaultArtifactResolver.java:246)
>>>     at
>>> org.eclipse.aether.internal.impl.DefaultRepositorySystem.resolveDependencies(DefaultRepositorySystem.java:367)
>>>     ... 25 more
>>> Caused by: org.eclipse.aether.transfer.ArtifactNotFoundException: Could
>>> not find artifact org.apache.ambari:ambari-metrics-common:jar:2.2.1.0 in
>>> oss.sonatype.org (https://oss.sonatype.org/content/groups/staging)
>>>     at
>>> org.eclipse.aether.connector.basic.ArtifactTransportListener.transferFailed(ArtifactTransportListener.java:39)
>>>     at
>>> org.eclipse.aether.connector.basic.BasicRepositoryConnector$TaskRunner.run(BasicRepositoryConnector.java:355)
>>>     at
>>> org.eclipse.aether.util.concurrency.RunnableErrorForwarder$1.run(RunnableErrorForwarder.java:67)
>>>     at
>>> org.eclipse.aether.connector.basic.BasicRepositoryConnector$DirectExecutor.execute(BasicRepositoryConnector.java:581)
>>>     at
>>> org.eclipse.aether.connector.basic.BasicRepositoryConnector.get(BasicRepositoryConnector.java:249)
>>>     at
>>> org.eclipse.aether.internal.impl.DefaultArtifactResolver.performDownloads(DefaultArtifactResolver.java:520)
>>>     at
>>> org.eclipse.aether.internal.impl.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:421)
>>>     ... 27 more
>>> [ERROR]
>>> [ERROR] Re-run Maven using the -X switch to enable full debug logging.
>>> [ERROR]
>>> [ERROR] For more information about the errors and possible solutions,
>>> please read the following articles:
>>> [ERROR] [Help 1]
>>> http://cwiki.apache.org/confluence/display/MAVEN/DependencyResolutionException
>>> [ERROR]
>>> [ERROR] After correcting the problems, you can resume the build with the
>>> command
>>>
>>> Ram
>>>
>>> On Thu, Feb 11, 2016 at 8:58 PM, rammohan ganapavarapu <
>>> rammohanga...@gmail.com> wrote:
>>>
>>>> Dmytro,
>>>>
>>>> Now its failing at ambari-metrics-host-monitor with below error, any
>>>> help to fix this issue?
>>>>
>>>>
>>>> [INFO] Building Ambari Metrics Monitor 2.2.1.0.0
>>>> [INFO]
>>>> ------------------------------------------------------------------------
>>>> [INFO]
>>>> [INFO] --- maven-clean-plugin:2.6:clean (default-clean) @
>>>> ambari-metrics-host-monitoring ---
>>>> [INFO] Deleting
>>>> /data/stage/apache-ambari-2.2.1-src/ambari-metrics/ambari-metrics-host-monitoring/target
>>>> [INFO] Deleting
>>>> /data/stage/apache-ambari-2.2.1-src/ambari-metrics/ambari-metrics-host-monitoring/src/main/python/psutil/build
>>>> (includes = [**/*], excludes = [])
>>>> [INFO]
>>>> [INFO] --- build-helper-maven-plugin:1.8:parse-version (parse-version)
>>>> @ ambari-metrics-host-monitoring ---
>>>> [INFO]
>>>> [INFO] --- build-helper-maven-plugin:1.8:regex-property
>>>> (regex-property) @ ambari-metrics-host-monitoring ---
>>>> [INFO]
>>>> [INFO] --- build-helper-maven-plugin:1.8:regex-property
>>>> (parse-package-version) @ ambari-metrics-host-monitoring ---
>>>> [INFO]
>>>> [INFO] --- build-helper-maven-plugin:1.8:regex-property
>>>> (parse-package-release) @ ambari-metrics-host-monitoring ---
>>>> [INFO]
>>>> [INFO] --- maven-antrun-plugin:1.7:run (psutils-compile) @
>>>> ambari-metrics-host-monitoring ---
>>>> [INFO] Executing tasks
>>>>
>>>> psutils-compile:
>>>>      [exec] running build
>>>>      [exec] running build_py
>>>>      [exec] creating
>>>> /data/stage/apache-ambari-2.2.1-src/ambari-metrics/ambari-metrics-host-monitoring/target/psutil_build
>>>>      [exec] creating
>>>> /data/stage/apache-ambari-2.2.1-src/ambari-metrics/ambari-metrics-host-monitoring/target/psutil_build/psutil
>>>>      [exec] copying psutil/__init__.py ->
>>>> /data/stage/apache-ambari-2.2.1-src/ambari-metrics/ambari-metrics-host-monitoring/target/psutil_build/psutil
>>>>      [exec] copying psutil/_pswindows.py ->
>>>> /data/stage/apache-ambari-2.2.1-src/ambari-metrics/ambari-metrics-host-monitoring/target/psutil_build/psutil
>>>>      [exec] copying psutil/_psbsd.py ->
>>>> /data/stage/apache-ambari-2.2.1-src/ambari-metrics/ambari-metrics-host-monitoring/target/psutil_build/psutil
>>>>      [exec] copying psutil/_psposix.py ->
>>>> /data/stage/apache-ambari-2.2.1-src/ambari-metrics/ambari-metrics-host-monitoring/target/psutil_build/psutil
>>>>      [exec] copying psutil/_pslinux.py ->
>>>> /data/stage/apache-ambari-2.2.1-src/ambari-metrics/ambari-metrics-host-monitoring/target/psutil_build/psutil
>>>>      [exec] copying psutil/_psosx.py ->
>>>> /data/stage/apache-ambari-2.2.1-src/ambari-metrics/ambari-metrics-host-monitoring/target/psutil_build/psutil
>>>>      [exec] copying psutil/_common.py ->
>>>> /data/stage/apache-ambari-2.2.1-src/ambari-metrics/ambari-metrics-host-monitoring/target/psutil_build/psutil
>>>>      [exec] copying psutil/_compat.py ->
>>>> /data/stage/apache-ambari-2.2.1-src/ambari-metrics/ambari-metrics-host-monitoring/target/psutil_build/psutil
>>>>      [exec] copying psutil/_pssunos.py ->
>>>> /data/stage/apache-ambari-2.2.1-src/ambari-metrics/ambari-metrics-host-monitoring/target/psutil_build/psutil
>>>>      [exec] running build_ext
>>>>      [exec] building '_psutil_linux' extension
>>>>      [exec] creating build/temp.linux-x86_64-2.6
>>>>      [exec] creating build/temp.linux-x86_64-2.6/psutil
>>>>      [exec] gcc -pthread -fno-stricpsutil/_psutil_linux.c:12:20: fatal
>>>> error: Python.h: No such file or directory
>>>>      [exec]  #include <Python.h>
>>>>      [exec]                     ^
>>>>      [exec] compilation terminated.
>>>>      [exec] t-aliasing -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2
>>>> -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64
>>>> -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -DNDEBUG -O2 -g -pipe -Wall
>>>> -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector
>>>> --param=ssp-buffer-size=4 -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv
>>>> -fPIC -I/usr/include/python2.6 -c psutil/_psutil_linux.c -o
>>>> build/temp.linux-x86_64-2.6/psutil/_psutil_linux.o
>>>>      [exec] error: command 'gcc' failed with exit status 1
>>>> [INFO]
>>>> [INFO]
>>>> ------------------------------------------------------------------------
>>>> [INFO] Skipping Ambari Main
>>>> [INFO] This project has been banned from the build due to previous
>>>> failures.
>>>> [INFO]
>>>> ------------------------------------------------------------------------
>>>> [INFO]
>>>> ------------------------------------------------------------------------
>>>> [INFO] Reactor Summary:
>>>> [INFO]
>>>> [INFO] Ambari Main ........................................ SUCCESS [
>>>> 3.627 s]
>>>> [INFO] Apache Ambari Project POM .......................... SUCCESS [
>>>> 0.254 s]
>>>> [INFO] Ambari Web ......................................... SUCCESS
>>>> [01:03 min]
>>>> [INFO] Ambari Views ....................................... SUCCESS [
>>>> 2.313 s]
>>>> [INFO] Ambari Admin View .................................. SUCCESS [
>>>> 39.598 s]
>>>> [INFO] ambari-metrics ..................................... SUCCESS [
>>>> 0.808 s]
>>>> [INFO] Ambari Metrics Common .............................. SUCCESS [
>>>> 1.618 s]
>>>> [INFO] Ambari Metrics Hadoop Sink ......................... SUCCESS [
>>>> 3.793 s]
>>>> [INFO] Ambari Metrics Flume Sink .......................... SUCCESS [
>>>> 2.320 s]
>>>> [INFO] Ambari Metrics Kafka Sink .......................... SUCCESS [
>>>> 1.492 s]
>>>> [INFO] Ambari Metrics Storm Sink .......................... SUCCESS [
>>>> 4.068 s]
>>>> [INFO] Ambari Metrics Collector ........................... SUCCESS
>>>> [01:21 min]
>>>> [INFO] Ambari Metrics Monitor ............................. FAILURE [
>>>> 0.891 s]
>>>> [INFO] Ambari Metrics Assembly ............................ SKIPPED
>>>> [INFO] Ambari Server ...................................... SKIPPED
>>>> [INFO] Ambari Agent ....................................... SKIPPED
>>>> [INFO] Ambari Client ...................................... SKIPPED
>>>> [INFO] Ambari Python Client ............................... SKIPPED
>>>> [INFO] Ambari Groovy Client ............................... SKIPPED
>>>> [INFO] Ambari Shell ....................................... SKIPPED
>>>> [INFO] Ambari Python Shell ................................ SKIPPED
>>>> [INFO] Ambari Groovy Shell ................................ SKIPPED
>>>> [INFO]
>>>> ------------------------------------------------------------------------
>>>> [INFO] BUILD FAILURE
>>>> [INFO]
>>>> ------------------------------------------------------------------------
>>>> [INFO] Total time: 03:27 min
>>>> [INFO] Finished at: 2016-02-12T04:54:51+00:00
>>>> [INFO] Final Memory: 111M/1388M
>>>> [INFO]
>>>> ------------------------------------------------------------------------
>>>> [ERROR] Failed to execute goal
>>>> org.apache.maven.plugins:maven-antrun-plugin:1.7:run (psutils-compile) on
>>>> project ambari-metrics-host-monitoring: An Ant BuildException has occured:
>>>> exec returned: 1
>>>> [ERROR] around Ant part ...<exec failonerror="true"
>>>> dir="/data/stage/apache-ambari-2.2.1-src/ambari-metrics/ambari-metrics-host-monitoring/src/main/python/psutil"
>>>> executable="/data/stage/apache-ambari-2.2.1-src/ambari-metrics/ambari-metrics-host-monitoring/../../ambari-common/src/main/unix/ambari-python-wrap">...
>>>> @ 4:287 in
>>>> /data/stage/apache-ambari-2.2.1-src/ambari-metrics/ambari-metrics-host-monitoring/target/antrun/build-psutils-compile.xml
>>>> [ERROR] -> [Help 1]
>>>> org.apache.maven.lifecycle.LifecycleExecutionException: Failed to
>>>> execute goal org.apache.maven.plugins:maven-antrun-plugin:1.7:run
>>>> (psutils-compile) on project ambari-metrics-host-monitoring: An Ant
>>>> BuildException has occured: exec returned: 1
>>>> around Ant part ...<exec failonerror="true"
>>>> dir="/data/stage/apache-ambari-2.2.1-src/ambari-metrics/ambari-metrics-host-monitoring/src/main/python/psutil"
>>>> executable="/data/stage/apache-ambari-2.2.1-src/ambari-metrics/ambari-metrics-host-monitoring/../../ambari-common/src/main/unix/ambari-python-wrap">...
>>>> @ 4:287 in
>>>> /data/stage/apache-ambari-2.2.1-src/ambari-metrics/ambari-metrics-host-monitoring/target/antrun/build-psutils-compile.xml
>>>>     at
>>>> org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:212)
>>>>     at
>>>> org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
>>>>     at
>>>> org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
>>>>     at
>>>> org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:116)
>>>>     at
>>>> org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:80)
>>>>     at
>>>> org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build(SingleThreadedBuilder.java:51)
>>>>     at
>>>> org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:128)
>>>>     at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:307)
>>>>     at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:193)
>>>>     at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:106)
>>>>     at org.apache.maven.cli.MavenCli.execute(MavenCli.java:863)
>>>>     at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:288)
>>>>     at org.apache.maven.cli.MavenCli.main(MavenCli.java:199)
>>>>     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>>>     at
>>>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
>>>>     at
>>>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>>>>     at java.lang.reflect.Method.invoke(Method.java:497)
>>>>     at
>>>> org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:289)
>>>>     at
>>>> org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:229)
>>>>     at
>>>> org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:415)
>>>>     at
>>>> org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:356)
>>>> Caused by: org.apache.maven.plugin.MojoExecutionException: An Ant
>>>> BuildException has occured: exec returned: 1
>>>> around Ant part ...<exec failonerror="true"
>>>> dir="/data/stage/apache-ambari-2.2.1-src/ambari-metrics/ambari-metrics-host-monitoring/src/main/python/psutil"
>>>> executable="/data/stage/apache-ambari-2.2.1-src/ambari-metrics/ambari-metrics-host-monitoring/../../ambari-common/src/main/unix/ambari-python-wrap">...
>>>> @ 4:287 in
>>>> /data/stage/apache-ambari-2.2.1-src/ambari-metrics/ambari-metrics-host-monitoring/target/antrun/build-psutils-compile.xml
>>>>     at
>>>> org.apache.maven.plugin.antrun.AntRunMojo.execute(AntRunMojo.java:355)
>>>>     at
>>>> org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:134)
>>>>     at
>>>> org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:207)
>>>>     ... 20 more
>>>> Caused by:
>>>> /data/stage/apache-ambari-2.2.1-src/ambari-metrics/ambari-metrics-host-monitoring/target/antrun/build-psutils-compile.xml:4:
>>>> exec returned: 1
>>>>     at
>>>> org.apache.tools.ant.taskdefs.ExecTask.runExecute(ExecTask.java:646)
>>>>     at org.apache.tools.ant.taskdefs.ExecTask.runExec(ExecTask.java:672)
>>>>     at org.apache.tools.ant.taskdefs.ExecTask.execute(ExecTask.java:498)
>>>>     at
>>>> org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
>>>>     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>>>     at
>>>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
>>>>     at
>>>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>>>>     at java.lang.reflect.Method.invoke(Method.java:497)
>>>>     at
>>>> org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
>>>>     at org.apache.tools.ant.Task.perform(Task.java:348)
>>>>     at org.apache.tools.ant.Target.execute(Target.java:390)
>>>>     at org.apache.tools.ant.Target.performTasks(Target.java:411)
>>>>     at
>>>> org.apache.tools.ant.Project.executeSortedTargets(Project.java:1399)
>>>>     at org.apache.tools.ant.Project.executeTarget(Project.java:1368)
>>>>     at
>>>> org.apache.maven.plugin.antrun.AntRunMojo.execute(AntRunMojo.java:327)
>>>>     ... 22 more
>>>> [ERROR]
>>>> [ERROR] Re-run Maven using the -X switch to enable full debug logging.
>>>> [ERROR]
>>>> [ERROR] For more information about the errors and possible solutions,
>>>> please read the following articles:
>>>> [ERROR] [Help 1]
>>>> http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException
>>>> [ERROR]
>>>> [ERROR] After correcting the problems, you can resume the build with
>>>> the command
>>>> [ERROR]   mvn <goals> -rf :ambari-metrics-host-monitoring
>>>>
>>>>
>>>> Ram
>>>>
>>>> On Thu, Feb 11, 2016 at 11:37 AM, rammohan ganapavarapu <
>>>> rammohanga...@gmail.com> wrote:
>>>>
>>>>> I tried that too still same error.
>>>>>
>>>>> Thanks
>>>>> On Feb 11, 2016 10:26 AM, "Dmitry Sen" <d...@hortonworks.com> wrote:
>>>>>
>>>>>> 2.2.1 is incorrect value for version
>>>>>>
>>>>>> try
>>>>>> mvn -B -e versions:set -DnewVersion=2.2.1.0
>>>>>>
>>>>>> BR,
>>>>>>
>>>>>> Dmytro Sen
>>>>>>
>>>>>>
>>>>>> ------------------------------
>>>>>> *From:* rammohan ganapavarapu <rammohanga...@gmail.com>
>>>>>> *Sent:* Thursday, February 11, 2016 7:56 PM
>>>>>> *To:* user@ambari.apache.org
>>>>>> *Subject:* Metrics build failure
>>>>>>
>>>>>> Hi,
>>>>>>
>>>>>> I am trying to build apache-ambari-2.2.1 from source, i am getting
>>>>>> this error for ambari-metrics project any help to resolve this would be
>>>>>> great.
>>>>>>
>>>>>> [ERROR] Failed to execute goal
>>>>>> org.codehaus.mojo:build-helper-maven-plugin:1.8:regex-property
>>>>>> (parse-package-version) on project ambari-metrics: No match to regex
>>>>>> '^([0-9]+)\.([0-9]+)\.([0-9]+)\.([0-9]+)(\.|-).*' found in '2.2.1'. ->
>>>>>> [Help 1]
>>>>>> org.apache.maven.lifecycle.LifecycleExecutionException: Failed to
>>>>>> execute goal 
>>>>>> org.codehaus.mojo:build-helper-maven-plugin:1.8:regex-property
>>>>>> (parse-package-version) on project ambari-metrics: No match to regex
>>>>>> '^([0-9]+)\.([0-9]+)\.([0-9]+)\.([0-9]+)(\.|-).*' found in '2.2.1'.
>>>>>>     at
>>>>>> org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:212)
>>>>>>     at
>>>>>> org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
>>>>>>     at
>>>>>> org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
>>>>>>     at
>>>>>> org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:116)
>>>>>>     at
>>>>>> org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:80)
>>>>>>     at
>>>>>> org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build(SingleThreadedBuilder.java:51)
>>>>>>     at
>>>>>> org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:128)
>>>>>>     at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:307)
>>>>>>     at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:193)
>>>>>>     at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:106)
>>>>>>     at org.apache.maven.cli.MavenCli.execute(MavenCli.java:863)
>>>>>>     at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:288)
>>>>>>     at org.apache.maven.cli.MavenCli.main(MavenCli.java:199)
>>>>>>     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>>>>>     at
>>>>>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
>>>>>>     at
>>>>>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>>>>>>     at java.lang.reflect.Method.invoke(Method.java:497)
>>>>>>     at
>>>>>> org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:289)
>>>>>>     at
>>>>>> org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:229)
>>>>>>     at
>>>>>> org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:415)
>>>>>>     at
>>>>>> org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:356)
>>>>>> Caused by: org.apache.maven.plugin.MojoFailureException: No match to
>>>>>> regex '^([0-9]+)\.([0-9]+)\.([0-9]+)\.([0-9]+)(\.|-).*' found in '2.2.1'.
>>>>>>     at
>>>>>> org.codehaus.mojo.buildhelper.RegexPropertyMojo.execute(RegexPropertyMojo.java:105)
>>>>>>     at
>>>>>> org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:134)
>>>>>>     at
>>>>>> org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:207)
>>>>>>     ... 20 more
>>>>>>
>>>>>>
>>>>>> Thanks,
>>>>>>
>>>>>
>>>>
>>>
>>
>
>

Reply via email to