开发者社区> 问答> 正文

maven,BUILD FAILURE?报错

昨天整了一下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)



在线等···急

展开
收起
爱吃鱼的程序员 2020-06-10 11:21:42 1211 0
1 条回答
写回答
取消 提交回答
  • https://developer.aliyun.com/profile/5yerqm5bn5yqg?spm=a2c6h.12873639.0.0.6eae304abcjaIB

    你的idea版本是多少?你安装的Maven的版本又是多少?是否配置了Maven在IntellIDEA中?回复<aclass='referer'target='_blank'>@弧线之内:这些文件你不用管,这是idea自动产生和管理的idea是14.0.3,maven是3.1.1,把maven配置到idea上了<imgsrc="http://static.oschina.net/uploads/space/2015/1106/105600_cfIP_2357858.png"alt="">这个是配置

    通过<spanstyle="font-family:'MicrosoftYaHei',Verdana,sans-serif,SimSun;font-size:14px;line-height:22px;background-color:#FFFFFF;">maven-archetype-plugin去创建项目骨架的时候,网络连接失败。

    <spanstyle="font-family:'MicrosoftYaHei',Verdana,sans-serif,SimSun;font-size:14px;line-height:22px;background-color:#FFFFFF;">Connectiontohttp://repo.maven.apache.orgrefused

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

    <spanstyle="font-size:10pt;line-height:1.5;">errorlog已经非常明显了,为什么不喜欢看呢?

    回复<aclass='referer'target='_blank'>@弧线之内:简单的说,你换一个国内的mavenrepository我看了。。我是想知道如何解决,网络连接失败我要如何再重载一次?我现在只是把原来的项目删掉,再建立新的项目,可是有其它的办法吗?另外··为什么我的目录结构不对啊,为什么会有那么多的xml文件

    2020-06-10 11:21:57
    赞同 展开评论 打赏
问答排行榜
最热
最新

相关电子书

更多
Build Your Next ApacheSparkJob 立即下载
Project Fortis 立即下载
低代码开发师(初级)实战教程 立即下载

相关镜像