use*_*856 12 maven apache-cloudstack
我在ubuntu上安装cloudstack,它使用maven来解决它的依赖关系.运行命令时出现以下错误mvn -P deps
[ERROR] The build could not read 1 project -> [Help 1]
[ERROR]
[ERROR] The project org.apache.cloudstack:cloudstack:4.2.0 (/home/cloud/apache-cloudstack-4.2.0-src/pom.xml) has 1 error
[ERROR] Non-resolvable parent POM: Could not transfer artifact org.apache:apache:pom:11 from/to central (http://repo.maven.apache.org/maven2): repo.maven.apache.org: Name or service not known and 'parent.relativePath' points at wrong local POM @ line 14, column 11: Unknown host repo.maven.apache.org: Name or service not known -> [Help 2]
[ERROR]
Run Code Online (Sandbox Code Playgroud)
我已经搜索了错误并在pom.xml中尝试了一些更改,但我没有得到解决方案.我不知道导致错误的是什么.
任何建议或最轻微的帮助都将得到承认.谢谢.
Don*_*rty 16
这是一个网络问题:
您的构建计算机无法访问http://repo.maven.apache.org/maven2
wget在命令行使用以检查您是否可以访问该网站.例如
root@mgmtserver:~/cm# wget http://repo.maven.apache.org/maven2
--2013-10-14 16:33:24-- http://repo.maven.apache.org/maven2
Resolving repo.maven.apache.org (repo.maven.apache.org)... 185.31.19.184, 185.31.19.185
Connecting to repo.maven.apache.org (repo.maven.apache.org)|185.31.19.184|:80... connected.
HTTP request sent, awaiting response... 301 Moved Permanently
Location: http://central.maven.org/maven2/ [following]
--2013-10-14 16:33:24-- http://central.maven.org/maven2/
Resolving central.maven.org (central.maven.org)... 185.31.19.184, 185.31.19.185
Reusing existing connection to repo.maven.apache.org:80.
HTTP request sent, awaiting response... 200 OK
Length: 967 [text/html]
Saving to: `maven2'
100%[=====================================================>] 967 --.-K/s in 0s
2013-10-14 16:33:24 (74.4 MB/s) - `maven2' saved [967/967]
Run Code Online (Sandbox Code Playgroud)
wget可能失败的原因:
背景:
Apache CloudStack的POM.xml继承了Apache Software Foundation Parent POM的预定义值.因此,Maven构建首先从网络位置下载所需的POM,Maven将其本地存储在Maven存储库中,这是一种本地缓存.
最后的评论:
如果你很好奇,下载POM的来源就在这里.
| 归档时间: |
|
| 查看次数: |
30909 次 |
| 最近记录: |