当前位置: 首页 > news >正文

Idea中 maven 下载jar出现证书问题

目录

1: 具体错误:

2: 忽略证书代码: 

3: 关闭所有idea, 清除缓存, 在下面添加如上忽略证书代码

4:执行 maven clean 然后刷刷新依赖

完成,撒花!!!!!!


1: 具体错误:

Could not transfer artifact org.springframework.boot:spring-boot-dependencies:pom:2.3.7.RELEASE from/to aliyunmaven (https://maven.aliyun.com/repository/public): transfer failed for https://maven.aliyun.com/repository/public/org/springframework/boot/spring-boot-dependencies/2.3.7.RELEASE/spring-boot-dependencies-2.3.7.RELEASE.pom
"C:\Program Files\Java\jdk1.8.0_202\bin\java.exe" -Dmaven.multiModuleProjectDirectory=D:\LTNEW\unicom-alarm -Djansi.passthrough=true -Dmaven.home=D:\apache-maven-3.8.2 -Dclassworlds.conf=D:\apache-maven-3.8.2\bin\m2.conf "-Dmaven.ext.class.path=D:\Program Files\JetBrains\IntelliJ IDEA 2024.1\plugins\maven\lib\maven-event-listener.jar" "-javaagent:D:\Program Files\JetBrains\IntelliJ IDEA 2024.1\lib\idea_rt.jar=64042:D:\Program Files\JetBrains\IntelliJ IDEA 2024.1\bin" -Dfile.encoding=UTF-8 -classpath D:\apache-maven-3.8.2\boot\plexus-classworlds-2.6.0.jar;D:\apache-maven-3.8.2\boot\plexus-classworlds.license org.codehaus.classworlds.Launcher -Didea.version=2024.1 -s D:\apache-maven-3.8.2\conf\settings.xml -Dmaven.repo.local=D:\apache-maven-3.8.2\Jar -DskipTests=true clean
[INFO] Scanning for projects...
Downloading from aliyunmaven: https://maven.aliyun.com/repository/public/org/springframework/boot/spring-boot-dependencies/2.3.7.RELEASE/spring-boot-dependencies-2.3.7.RELEASE.pom
[ERROR] [ERROR] Some problems were encountered while processing the POMs:
[ERROR] Non-resolvable import POM: Could not transfer artifact org.springframework.boot:spring-boot-dependencies:pom:2.3.7.RELEASE from/to aliyunmaven (https://maven.aliyun.com/repository/public): transfer failed for https://maven.aliyun.com/repository/public/org/springframework/boot/spring-boot-dependencies/2.3.7.RELEASE/spring-boot-dependencies-2.3.7.RELEASE.pom @ line 208, column 25
[ERROR] 'dependencies.dependency.version' for org.springframework.boot:spring-boot-starter-web:jar is missing. @ line 65, column 21
[WARNING] 'dependencies.dependency.scope' for org.springframework.boot:spring-boot-dependencies:pom must be one of [provided, compile, runtime, test, system] but is 'import'. @ line 76, column 20
[ERROR] 'dependencies.dependency.version' for mysql:mysql-connector-java:jar is missing. @ line 86, column 21
[ERROR] 'dependencies.dependency.version' for org.projectlombok:lombok:jar is missing. @ line 110, column 21
[ERROR] 'dependencies.dependency.version' for org.springframework.boot:spring-boot-starter-test:jar is missing. @ line 115, column 21
[ERROR] 'dependencies.dependency.version' for org.springframework.boot:spring-boot-starter-data-redis:jar is missing. @ line 153, column 21@ 
[ERROR] The build could not read 1 project -> [Help 1]
[ERROR]   
[ERROR]   The project com.chinaunicom.sh:unicom-alarm:0.0.1-SNAPSHOT (D:\LTNEW\unicom-alarm\pom.xml) has 6 errors
[ERROR]     Non-resolvable import POM: Could not transfer artifact org.springframework.boot:spring-boot-dependencies:pom:2.3.7.RELEASE from/to aliyunmaven (https://maven.aliyun.com/repository/public): transfer failed for https://maven.aliyun.com/repository/public/org/springframework/boot/spring-boot-dependencies/2.3.7.RELEASE/spring-boot-dependencies-2.3.7.RELEASE.pom @ line 208, column 25: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target -> [Help 2]
[ERROR]     'dependencies.dependency.version' for org.springframework.boot:spring-boot-starter-web:jar is missing. @ line 65, column 21
[ERROR]     'dependencies.dependency.version' for mysql:mysql-connector-java:jar is missing. @ line 86, column 21
[ERROR]     'dependencies.dependency.version' for org.projectlombok:lombok:jar is missing. @ line 110, column 21
[ERROR]     'dependencies.dependency.version' for org.springframework.boot:spring-boot-starter-test:jar is missing. @ line 115, column 21
[ERROR]     'dependencies.dependency.version' for org.springframework.boot:spring-boot-starter-data-redis:jar is missing. @ line 153, column 21
[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/ProjectBuildingException
[ERROR] [Help 2] http://cwiki.apache.org/confluence/display/MAVEN/UnresolvableModelException进程已结束,退出代码为 1

2: 忽略证书代码: 

-Dmaven.wagon.http.ssl.insecure=true -Dmaven.wagon.http.ssl.allowall=true

3: 关闭所有idea, 清除缓存, 在下面添加如上忽略证书代码

4:执行 maven clean 然后刷刷新依赖

完成,撒花!!!!!!

http://www.lryc.cn/news/335211.html

相关文章:

  • ArcGIS Server 10发布要素服务时遇到的数据库注册问题总结(一)
  • 自我介绍的HTML 页面(入门)
  • 负载均衡原理及算法
  • 【iOS ARKit】USDZ文件
  • 鹅厂实习offer
  • 极狐GitLab 如何在 helm 中恢复数据
  • Hololens2远程音视频通话与AR远程空间标注,基于OpenXR+MRTK3+WebRTC实现
  • 2024年03月CCF-GESP编程能力等级认证Scratch图形化编程二级真题解析
  • 开发语言漫谈-C#
  • 微信小程序用户登录授权指定(旧版本)
  • 电商技术揭秘十五:数据挖掘与用户行为分析
  • 云原生:5分钟了解一下Kubernetes是什么
  • 【stm32】I2C通信协议
  • 《论文阅读》构建情感共识并利用未配对数据生成共情对话 ACL 2021
  • xilinx fpga 程序固化(含sdk)
  • 更高效、更简洁的 SQL 语句编写丨DolphinDB 基于宏变量的元编程模式详解
  • Python中的sort()与sorted()用法
  • 15.队列集
  • Dubbo 集群容错
  • 杨辉三角形(蓝桥杯,acwing)
  • 计算系数(acwing,数论)
  • 阿里面试题二
  • 第9章 文件和内容管理
  • 【Erlang】【RabbitMQ】Linux(CentOS7)安装Erlang和RabbitMQ
  • pe格式从入门到图形化显示(七)-导出表
  • 图片地址生成二维码(通过前端实现)
  • window安装maven和hadoop3.1.4
  • Redis系列之主从复制集群搭建
  • spring框架介绍
  • 如果在 Ubuntu 系统中两个设备出现两个相同的端口号解决方案