首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >‘'mvn install’无法工作并在尝试下载时显示错误

‘'mvn install’无法工作并在尝试下载时显示错误
EN

Stack Overflow用户
提问于 2011-01-17 04:26:29
回答 2查看 9.5K关注 0票数 1

我使用的是maven 3.0.2版本。

mvn --version在命令行上工作得很好,但是当我尝试使用mvn install时,它不能工作&显示以下错误。

代码语言:javascript
复制
Z:\dev\hector rantav>mvn install
[INFO] Scanning for projects...
Downloading: http://repo1.maven.org/maven2/junit/junit/3.8.2/junit-3.8.2.jar
[ERROR] The build could not read 1 project -> [Help 1]
[ERROR]
[ERROR]   The project me.prettyprint:hector:0.7.0-24-SNAPSHOT (Z:\dev\hector ran
tav\pom.xml) has 1 error
[ERROR]     Unresolveable build extension: Plugin org.apache.maven.scm:maven-scm
-manager-plexus:1.3 or one of its dependencies could not be resolved: Could not
transfer artifact junit:junit:jar:3.8.2 from/to central (http://repo1.maven.org/
maven2): Error transferring file: repo1.maven.org: Unknown host repo1.maven.org
-> [Help 2]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e swit
ch.
[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 rea
d the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/ProjectBuildin
gException
[ERROR] [Help 2] http://cwiki.apache.org/confluence/display/MAVEN/PluginResoluti
onException

请告诉我如何解决这个问题。

EN

回答 2

Stack Overflow用户

回答已采纳

发布于 2011-01-17 04:46:34

代理的使用是一个因素,希望这能有所帮助:Maven Guide to Using Proxies

如果您的代理需要NTLM身份验证,则可能还需要cntlm

票数 4
EN

Stack Overflow用户

发布于 2011-05-25 00:05:06

http://repo1.maven.org/maven2/存储库经常停机,因此可能您当时只是运气不佳。

票数 2
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/4707834

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档