开发者社区 问答 正文

maven 新建项目报错 急急急?报错

Multiple annotations found at this line:

- Execution default-testResources of goal org.apache.maven.plugins:maven-resources-plugin:

2.5:testResources failed: Plugin org.apache.maven.plugins:maven-resources-plugin:2.5 or one of its 

dependencies could not be resolved: Failure to transfer org.apache.maven.shared:maven-filtering🏺1.0 

from http://repo.maven.apache.org/maven2 was cached in the local repository, resolution will not be 

reattempted until the update interval of central has elapsed or updates are forced. Original error: Could not 

transfer artifact org.apache.maven.shared:maven-filtering🏺1.0 from/to central (http://

repo.maven.apache.org/maven2): No response received after 60000 (org.apache.maven.plugins:maven-

resources-plugin:2.5:testResources:default-testResources:process-test-resources)

- Execution default-resources of goal org.apache.maven.plugins:maven-resources-plugin:2.5:resources 

failed: Plugin org.apache.maven.plugins:maven-resources-plugin:2.5 or one of its dependencies could not be 

resolved: Failure to transfer org.apache.maven.shared:maven-filtering🏺1.0 from http://

repo.maven.apache.org/maven2 was cached in the local repository, resolution will not be reattempted until 

the update interval of central has elapsed or updates are forced. Original error: Could not transfer artifact 

org.apache.maven.shared:maven-filtering🏺1.0 from/to central (http://repo.maven.apache.org/maven2): 

No response received after 60000 (org.apache.maven.plugins:maven-resources-plugin:2.5:resources:default-

resources:process-resources)

展开
收起
爱吃鱼的程序员 2020-06-20 17:30:01 514 分享 版权
1 条回答
写回答
取消 提交回答
  • https://developer.aliyun.com/profile/5yerqm5bn5yqg?spm=a2c6h.12873639.0.0.6eae304abcjaIB

    maven有错误的话首先就是先cleanclean不行在删掉本地仓库

    1.清空本地仓库~/.m2/repository/中的jar文件

    2.创建maven命令是否有错误,参考官网命令

    3.推荐教程<atarget="_blank"rel="nofollow">http://maven.oschina.net/help.html

    2020-06-20 17:30:17
    赞同 展开评论