美文网首页Mesos
Mesos安装-Maven仓库连接超时

Mesos安装-Maven仓库连接超时

作者: 王勇1024 | 来源:发表于2018-12-27 14:39 被阅读8次

异常描述

[ERROR] [ERROR] Some problems were encountered while processing the POMs:
[FATAL] Non-resolvable parent POM for org.apache.mesos:mesos:1.7.0: Could not transfer artifact org.apache:apache:pom:11 from/to central (https://repo.maven.apache.org/maven2): Connect to repo.maven.apache.org:443 [repo.maven.apache.org/151.101.52.215] failed: 连接超时 (Connection timed out) and 'parent.relativePath' points at wrong local POM @ line 18, column 11
 @
[ERROR] The build could not read 1 project -> [Help 1]
[ERROR]
[ERROR]   The project org.apache.mesos:mesos:1.7.0 (/home/mesos/mesos/build/src/java/mesos.pom) has 1 error
[ERROR]     Non-resolvable parent POM for org.apache.mesos:mesos:1.7.0: Could not transfer artifact org.apache:apache:pom:11 from/to central (https://repo.maven.apache.org/maven2): Connect to repo.maven.apache.org:443 [repo.maven.apache.org/151.101.52.215] failed: 连接超时 (Connection timed out) and 'parent.relativePath' points at wrong local POM @ line 18, column 11 -> [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-1.7.0.jar] 错误 1
make[1]: 离开目录“/home/mesos/mesos/build/src”

原因

Maven仓库连接超时

解决方案

查看Maven安装目录

$ whereis maven
maven: /etc/maven

进入/etc/maven目录,修改settings.xml文件

<mirror>
  <id>alimaven</id>
    <name>aliyun maven</name>
    <url>http://maven.aliyun.com/nexus/content/groups/public/</url>
  <mirrorOf>central</mirrorOf>
</mirror> 

然后重新回到mesos/build目录下执行make命令即可

相关文章

网友评论

    本文标题:Mesos安装-Maven仓库连接超时

    本文链接:https://www.haomeiwen.com/subject/uebrlqtx.html