我的maven工程老是报错,不知道啥原因,该配置的都配置了 ,配置一天了求佬告知报错是这么说的:
Could not transfer artifact org.apache.maven.plugins:maven-clean-plugin:pom:2.5 from/to huaweicloud (https://mirrors.huaweicloud.com/repository/maven/): C:\Program Files\JetBrains\IntelliJ IDEA 2021.1.3\bin\D:\mavens\apache-maven-3.6.1\mvn_repo\org\apache\maven\plugins\maven-clean-plugin\2.5\maven-clean-plugin-2.5.pom.part.lock (鏂囦欢鍚嶃�佺洰褰曞悕鎴栧嵎鏍囪娉曚笉姝g‘銆�)
settings 里的仓库镜像用我这个试试
<mirrors>
<mirror>
<id>repo1</id>
<mirrorOf>central</mirrorOf>
<name>Human Readable Name 1</name>
<url>https://repo1.maven.org/maven2/</url>
</mirror>
<mirror>
<id>repo2</id>
<mirrorOf>central</mirrorOf>
<name>Human Readable Name 2</name>
<url>https://repo2.maven.org/maven2/</url>
</mirror>
<mirror>
<id>alimaven</id>
<name>aliyun maven</name>
<url>https://maven.aliyun.com/nexus/content/groups/public/</url>
<mirrorOf>central</mirrorOf>
</mirror>
</mirrors>
你配置还有问题,不能在项目打开之后配置,要在idea初始界面配置,不然它只对一个项目生效