彻底解决Could not transfer artifact org.apache.maven.plugins问题
2023-09-11 14:16:27 时间
彻底解决Could not transfer artifact org.apache.maven.plugins问题
之前自己的maven一直下载不了,看过好多博客问题也没法解决,最后自己综合慢慢解决了,现分享一下自己的解决办法:
1、首先保证你的settings配置没问题
这里打开File - settings进行路径配置,选择自己的maven路径进行设置。
2、maven中的settings.xml文件中的镜像资源配置
<mirror>
<id>alimaven</id>
<name>aliyun maven</name>
<url>http://maven.aliyun.com/nexus/content/repositories/central/</url>
<mirrorOf>central</mirrorOf>
</mirror>
<!-- junit镜像地址 -->
<mirror>
<id>junit</id>
<name>junit Address/</name>
<url>http://jcenter.bintray.com/</url>
<mirrorOf>central</mirrorOf>
</mirror>
配置阿里云的镜像资源。
此时一般问题可以解决,若果不能,请继续:
3、在解压的maven文件夹下将conf文件夹中的settings.xml和toolchains.xml复制过来如图
4、更改idea中的settings设置,解决证书等问题
向File - settings中的maven - importing中添加这句
-Dmaven.wagon.http.ssl.insecure=true -Dmaven.wagon.http.ssl.allowall=true
能够解决证书问题,如图所示:
到这里基本就ok了如果还不行,再向File - settings中的maven - Runner中添加这句话:
-Dmaven.wagon.http.ssl.insecure=true -Dmaven.wagon.http.ssl.allowall=true -Dmaven.wagon.http.ssl.ignore.validity.dates=true -DarchetypeCatalog=internal
如图所示:
我的问题就是这样解决的,反正maven这个东西和网络也有很大的关系,我之前用的时候没有这个问题,最后出现的时候会让你头疼到疯掉。
最后祝你们好运,能够快速解决!
本人新人一枚,如果有问题,欢迎各位大佬指教,谢谢!
相关文章
- 【maven】IDEA:存在jar包,pom.xml文件没报错,但是Maven-Project-Dependencies有红线报错
- Retrying task after failure: Waiting for lock. org.apache.iceberg.hive.HiveTableOperations$WaitingForLockException: Waiting for lock.
- Apache静态编译与动态编译详解
- Zsh(oh-my-zsh)的Maven自动提示插件(zsh-maven-complection)
- 【Maven】Maven之使用maven快照版本机制进行多项目依赖开发
- Apache Prefork、Worker和Event三种MPM分析
- Apache中 RewriteRule 规则参数介绍
- 解决apache启动错误"httpd:Could not reliably determine
- apache虚拟主机的学习与应用
- Apache Storm 衍生项目 & Apache Flink初接触
- Apache 开机自启动脚本设置
- Apache Kudu 读后感
- copy-maven-plugin - where is it configured - Maven原理探究
- Maven plugin - maven-dependency-plugin
- Apache关闭目录浏览
- Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.1:compile 解决办法
- 使用Maven编译项目遇到——“maven编码gbk的不可映射字符”解决办法
- Maven自定义上传第三方包到3rd party(第三方无依赖jar和本地扩展类加入maven统一管理)
- 【异常】Maven构建出错,Could not transfer artifact xxx from/to central (https://repo.maven.apache.org/maven2)
- 【异常】IDEA中Maven插件提示异常Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin
- Maven插件系列之spring-boot-maven-plugin
- Failed to execute goal org.apache.maven.plugins:maven-resources-plugin:3.2.0:resources和如何修改idea的默认编码
- 2022最新版超详细的Maven下载配置教程、IDEA中集成maven(包含图解过程)、以及导入项目时jar包下载不成功的问题解决
- 使用Maven编译项目遇到——“maven编码gbk的不可映射字符”解决办法
- Apache虚拟主机配置
- maven项目建立pom.xml报无法解析org.apache.maven.plugins:maven-resources-plugin:2.4.3
- Maven deploy 报错: Failed to execute goal org.apache.maven.plugins:maven-deploy-plugin:deploy (default-deploy) on project Failed to retrieve remote metadata /maven-metadata.xml
- Root cause: BlockMissingException【查看修复HDFS中丢失的块】ORG.APACHE.HADOOP.HDFS.BLOCKMISSINGEXCEPTION: COULD