MavenPlugins报错的解决方法,
分享于 点击 29210 次 点评:15
MavenPlugins报错的解决方法,
目录
- 背景:
- 正确解决之道:
- 反例:即没什么卵用的方法(MySelf踩坑的经历)
背景:
正确解决之道:
在自己本地Maven的安装目录中找到自己的仓库地址目录:直接搜索自己报错的插件文件,把它们删除,如图:
接着回到IDEA点击Maven刷新按钮重新加载即可:已解决
反例:即没什么卵用的方法(MySelf踩坑的经历)
找到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> <mirror> <id>central</id> <name>Maven Repository Switchboard</name> <url>http://repo1.maven.org/maven2/</url> <mirrorOf>central</mirrorOf> </mirror> <mirror> <id>repo2</id> <mirrorOf>central</mirrorOf> <name>Human Readable Name for this Mirror.</name> <url>http://repo2.maven.org/maven2/</url> </mirror> <mirror> <id>ibiblio</id> <mirrorOf>central</mirrorOf> <name>Human Readable Name for this Mirror.</name> <url>http://mirrors.ibiblio.org/pub/mirrors/maven2/</url> </mirror> <mirror> <id>jboss-public-repository-group</id> <mirrorOf>central</mirrorOf> <name>JBoss Public Repository Group</name> <url>http://repository.jboss.org/nexus/content/groups/public</url> </mirror> <mirror> <id>google-maven-central</id> <name>Google Maven Central</name> <url>https://maven-central.storage.googleapis.com </url> <mirrorOf>central</mirrorOf> </mirror> <!-- 中央仓库在中国的镜像 --> <mirror> <id>maven.net.cn</id> <name>oneof the central mirrors in china</name> <url>http://maven.net.cn/content/groups/public/</url> <mirrorOf>central</mirrorOf> </mirror>
到此这篇关于Maven Plugins报错的解决方法的文章就介绍到这了,更多相关Maven Plugins报错内容请搜索3672js教程以前的文章或继续浏览下面的相关文章希望大家以后多多支持3672js教程!
您可能感兴趣的文章:- java中gradle项目报错org.gradle .api.plugins.MavenPlugin解决办法
- maven安装、使用、配置本地仓库、idea配置maven以及解决plugins报错问题
用户点评