事情的起因是在写代码的途中突然发现pom.xml无缘无故报错:
Failure to transfer org.codehaus.plexus:plexus-archiver:pom:4.2.2 from http://maven.aliyun.com/nexus/content/groups/
public/ was cached in the local repository, resolution will not be reattempted until the update interval of alimaven has
elapsed or updates are forced. Original error: Could not transfer artifact org.codehaus.plexus:plexus-archiver:pom:4.2.2
from/to alimaven (http://maven.aliyun.com/nexus/content/groups/public/): maven.aliyun.com
然后我上网查询了一下,试了两个方法:
以及:
在maven 的setting.xml文件中找到<mirrors>添加如下内容
<mirror>
<id>alimaven</id>
<mirrorOf>central</mirrorOf>
<name>aliyun maven</name>
<url>http://maven.aliyun.com/nexus/content/repositories/central/</url>
</mirror>
<!-- 阿里云仓库 -->
Maven设置添加阿里云仓库, 然后重启ecplise,更新项目
这两种方法都试过了,但更严重了,现在我不管导入的项目还是新建的项目都有问题
正常情况下项目名应该是这样的:
但我项目全是:
还改不回来,甚至内容的maven都没有了
心态有点小炸,求大神帮助~
重点是现在导入的项目还是新建的项目都有问题
影不影响使用,pom.xml你应该点进去看看究竟报了什么错,很多时候是因为将依赖粘贴到pom文件中含有空格