Hello_Mysmallworld
Hello_Mysmallworld
2020-10-17 21:00

创建Springboot初始化项目,Maven报错无法找到有效证书

错误总结

就是创建springboot初始化项目都引入不了依赖

##错误页面截图
图片说明

mvn compile报错信息

[ERROR] Plugin org.apache.maven.plugins:maven-compiler-plugin:3.8.1 or one of its dependencies could not be resolved: Failed to read artifact descriptor for org.apache.maven.plugins:maven-compiler-plugin:jar:3.8.1: Could not transfer artifact org.apache.maven:maven-parent:pom:33 from/to alimaven (http://maven.aliyun.com/nexus/content/groups/public/): PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target -> [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/PluginResolutionException

尝试过的解决方法

https://blog.csdn.net/qq_39326472/article/details/104405691#%E4%B8%89%E3%80%81%E4%B8%8B%E8%BD%BD%E9%98%BF%E9%87%8C%E7%BD%91%E7%AB%99%E7%9A%84%E8%B5%84%E6%A0%BC%E8%AF%81%E4%B9%A6%EF%BC%8C%E5%AE%89%E8%A3%85%E5%88%B0jdk

这里面的我都尝试过了,java导入信任证书也无效,改变镜像文件也无效,设置mvn vm属性的时候,倒是可以通过maven的livestyle里面的插件下载依赖,但是刷新标记的按钮(reload all maven project)还是无效,还是会报无效证书的错误,
有没有大佬帮个忙解决一下,提点建议也行。

  • 点赞
  • 写回答
  • 关注问题
  • 收藏
  • 复制链接分享
  • 邀请回答

相关推荐