开发者社区> 问答> 正文

重装了eclipse,maven出错了,求助 - maven报错

重装了eclipse4.3自带m2e,配置了本地maven,倒入原来的maven项目

pom.xml报错了

Failure to transfer org.apache.maven:maven-archiver:pom:2.4.1 from http://10.200.1.253:8080/nexus/content/groups/groupid was cached in the local repository, resolution will not be reattempted until the update interval of groupid has elapsed or updates are forced. Original error: Could not transfer artifact org.apache.maven:maven-archiver:pom:2.4.1 from/to groupid (http://10.200.1.253:8080/nexus/content/groups/groupid): java.net.ConnectException: connection timed out to http://10.200.1.253:8080/nexus/content/groups/groupid/org/apache/maven/maven-archiver/2.4.1/maven-archiver-2.4.1.pom

“http://10.200.1.253:8080/nexus/content/groups/groupid”是我的私服仓库,这个链接用IE能访问

报的错是怎么回事?

新建maven工程,提示:

Unable to create project from archetype [org.apache.maven.archetypes:maven-archetype-webapp:RELEASE]


展开
收起
montos 2020-06-01 13:23:08 465 0
1 条回答
写回答
取消 提交回答
  • "

    <a href=""http://hi.baidu.com/danghj/item/8a18ed9984ed6588581461af"" target=""_blank"" rel=""nofollow"">http://hi.baidu.com/danghj/item/8a18ed9984ed6588581461af

    可以使用 $mvn archetype:generate -DarchetypeCatalog=internal archetypeCatalog表示插件使用的archetype元数据,默认值为remote,local,即中央仓库archetype元数据 (http://repo1.maven.org/maven2/archetype-catalog.xml)加上插件内置元数据的和 由于中央仓库的archetype太多,导致这个列表太长 因此自己指定仅用内置元数据(20个左右,好像),就可以解决你的烦恼了

    ######没懂,我需要改什么?######没懂啊 我原来的eclipse都没问题"
    2020-06-01 20:43:56
    赞同 展开评论 打赏
问答排行榜
最热
最新

相关电子书

更多
低代码开发师(初级)实战教程 立即下载
冬季实战营第三期:MySQL数据库进阶实战 立即下载
阿里巴巴DevOps 最佳实践手册 立即下载

相关镜像