maven,BUILD FAILURE

弧线之内 发布于 2015/11/06 10:37
阅读 1K+
收藏 0

【开源中国 APP 全新上线】“动弹” 回归、集成大模型对话、畅读技术报告”

昨天整了一下maven,今天又出了问题

    

第一个··为什么我的目录结构跟别人的一样。模板选的是apache的web模板

第二个  报错  

[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 3:00.137s
[INFO] Finished at: Fri Nov 06 10:09:23 CST 2015
[INFO] Final Memory: 7M/121M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-archetype-plugin:2.4:generate (default-cli) on project standalone-pom: Execution default-cli of goal org.apache.maven.plugins:maven-archetype-plugin:2.4:generate failed: Plugin org.apache.maven.plugins:maven-archetype-plugin:RELEASE or one of its dependencies could not be resolved: The following artifacts could not be resolved: org.apache.maven.archetype:archetype-registry🏺2.4, net.sourceforge.jchardet:jchardet🏺1.0: Could not transfer artifact org.apache.maven.archetype:archetype-registry🏺2.4 from/to central (http://repo.maven.apache.org/maven2): Connection to http://repo.maven.apache.org refused: Connection timed out: connect -> [Help 1]
[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/PluginResolutionException
[ERROR] Maven execution terminated abnormally (exit code 1)



在线等···急

加载中
0
范老司
范老司
你的idea版本是多少?你安装的Maven的版本又是多少?是否配置了Maven在Intell IDEA中?
范老司
范老司
回复 @弧线之内 : 这些文件你不用管,这是idea自动产生和管理的
弧线之内
弧线之内
idea是14.0.3,maven是3.1.1,把maven配置到idea上了
0
弧线之内
弧线之内
该评论暂时无法显示,详情咨询 QQ 群:点此入群
弧线之内
弧线之内
这个是配置
0
日久生情
日久生情

通过maven-archetype-plugin去创建项目骨架的时候,网络连接失败。

Connection to http://repo.maven.apache.org refused

实际上,你连项目骨架都没有创建成功。

error log已经非常明显了,为什么不喜欢看呢?

日久生情
日久生情
回复 @弧线之内 : 简单的说,你换一个国内的maven repository
弧线之内
弧线之内
我看了。。我是想知道如何解决,网络连接失败我要如何再重载一次?我现在只是把原来的项目删掉,再建立新的项目,可是有其它的办法吗? 另外··为什么我的目录结构不对啊,为什么会有那么多的xml文件
OSCHINA
登录后可查看更多优质内容
返回顶部
顶部