昨天整了一下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)
在线等···急
你的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文件版权声明:本文内容由阿里云实名注册用户自发贡献,版权归原作者所有,阿里云开发者社区不拥有其著作权,亦不承担相应法律责任。具体规则请查看《阿里云开发者社区用户服务协议》和《阿里云开发者社区知识产权保护指引》。如果您发现本社区中有涉嫌抄袭的内容,填写侵权投诉表单进行举报,一经查实,本社区将立刻删除涉嫌侵权内容。