构建Mesos时出错 [英] Error when building Mesos

查看:135
本文介绍了构建Mesos时出错的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我一直在尝试在CentOS 7上构建Apache Mesos. 当我运行make时,出现以下错误:

I've been trying to build Apache Mesos on CentOS 7. When I run make I get the following error:

Downloading: https://repo.maven.apache.org/maven2/org/apache/apache/11/apache-11.pom
[ERROR] [ERROR] Some problems were encountered while processing the POMs:
[FATAL] Non-resolvable parent POM for org.apache.mesos:mesos:0.28.2: Could not transfer artifact org.apache:apache:pom:11 from/to central (https://repo.maven.apache.org/maven2): repo.maven.apache.org: unknown error and 'parent.relativePath' points at no local POM @ line 18, column 11
 @
[ERROR] The build could not read 1 project -> [Help 1]
[ERROR]
[ERROR]   The project org.apache.mesos:mesos:0.28.2 (/home/mesos-0.28.2/build/src/java/mesos.pom) has 1 error
[ERROR]     Non-resolvable parent POM for org.apache.mesos:mesos:0.28.2: Could not transfer artifact org.apache:apache:pom:11 from/to central (https://repo.maven.apache.org/maven2): repo.maven.apache.org: unknown error and 'parent.relativePath' points at no local POM @ line 18, column 11: Unknown host repo.maven.apache.org: unknown error -> [Help 2]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[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/ProjectBuildingException
[ERROR] [Help 2] http://cwiki.apache.org/confluence/display/MAVEN/UnresolvableModelException
make[1]: *** [java/target/mesos-0.28.2.jar] Error 1
make[1]: Leaving directory `/home/mesos-0.28.2/build/src'
make: *** [all-recursive] Error 1

有人可以在这里指出问题吗?

Could someone point out the problem here?

推荐答案

问题已解决.

打开文件/home/mesos-0.28.2/build/src/java/mesos.pom,在下面的节中,添加更多行:<relativePath>../../apache-11.pom</relativePath>:

Open file /home/mesos-0.28.2/build/src/java/mesos.pom, in section bellow, add more line: <relativePath>../../apache-11.pom</relativePath>:

<parent>
    <groupId>org.apache</groupId>
    <artifactId>apache</artifactId>
    <version>11</version>
    <relativePath>../../apache-11.pom</relativePath>     # Add this line
</parent>

这篇关于构建Mesos时出错的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆