IDEA卡在 Downloading plugins for .....

博客介绍了解决Idea一直显示Downloading plugins for...问题的方法。在windows系统下,先将archetype-catalog.xml放到.m2文件夹下,指定-DarchetypeCatalog为internal;再修改maven/conf/settings.xml,添加阿里仓库地址,添加完后再次打开IDEA更新速度加快。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

转载自:Idea一直显示Downloading plugins for...

1.由于我的是windows系统,要先去c盘用户文件夹下搜索.m2文件

2.把archetype-catalog.xml放到.m2文件夹下

archetype-catalog.xml地址:

链接:https://pan.baidu.com/s/1perHP_oIT1ZIf--vFEvB9Q 
提取码:8g60

这个是官网链接,直接另存为就可以:http://repo1.maven.org/maven2/archetype-catalog.xml

最好复制链接到迅雷去下,因为太慢了。。。。

添加archetype-catalog.xml到本地的.m2文件夹后, 还需要修改一个设置: 
指定-DarchetypeCatalog为internal, 
即可使用maven默认的archetype-catalog.xml,而不用再remote下载。 
A.点击Configue -> Settings 
这里写图片描述 
B.如下VM Options 配置 -DarchetypeCatalog=internal 
PS:注意右上角的灰字:for default project,而不是for 
current project 
这里写图片描述

3.maven/conf/settings.xml.修改该文件,在<Mirrors>标签下添加如下阿里为仓库地址:

settings.xml在.m2文件下是没有的,要去你的IDEA安装路径下找

打开后添加镜像

<mirror>
<id>alimaven</id>
<name>aliyun maven</name>
<url>http://maven.aliyun.com/nexus/content/groups/public/</url>
<mirrorOf>central</mirrorOf> 
</mirror>
 

 

 

 

Mirrors标签是带S的,可以添加多个仓库源地址。添加完,再次打开IDEA很快就更新完了。

参考链接:

https://blog.youkuaiyun.com/liuqiuhai3637/article/details/80407399

https://blog.youkuaiyun.com/shayboke/article/details/71156393

D:\software\jdk\bin\java.exe "-Dmaven.multiModuleProjectDirectory=F:\Java EE\Demo015" "-Dmaven.home=F:\Java EE\develop\apache-maven-3.3.9" "-Dclassworlds.conf=F:\Java EE\develop\apache-maven-3.3.9\bin\m2.conf" "-Dmaven.ext.class.path=D:\software\idea\IntelliJ IDEA 2021.2.2\plugins\maven\lib\maven-event-listener.jar" "-javaagent:D:\software\idea\IntelliJ IDEA 2021.2.2\lib\idea_rt.jar=53139:D:\software\idea\IntelliJ IDEA 2021.2.2\bin" -Dfile.encoding=UTF-8 -classpath "F:\Java EE\develop\apache-maven-3.3.9\boot\plexus-classworlds-2.5.2.jar" org.codehaus.classworlds.Launcher -Didea.version=2021.2.2 -s "F:\Java EE\develop\apache-maven-3.3.9\conf\settings.xml" "-Dmaven.repo.local=F:\Java EE\develop\repostory_boot" tomcat7:run [INFO] Scanning for projects... Downloading: https://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-metadata.xml Downloading: https://repo.maven.apache.org/maven2/org/codehaus/mojo/maven-metadata.xml Downloaded: https://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-metadata.xml (14 KB at 5.3 KB/sec) Downloaded: https://repo.maven.apache.org/maven2/org/codehaus/mojo/maven-metadata.xml (21 KB at 0.8 KB/sec) [INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 25.995 s [INFO] Finished at: 2025-06-03T14:40:02+08:00 [INFO] Final Memory: 9M/167M [INFO] ------------------------------------------------------------------------ [ERROR] No plugin found for prefix 'tomcat7' in the current project and in the plugin groups [org.apache.maven.plugins, org.codehaus.mojo] available from the repositories [local (F:\Java EE\develop\repostory_boot), central (https://repo.maven.apache.org/maven2)] -> [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/NoPluginFoundForPrefixException Process finished with exit code 1
06-04
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值