java吧 关注:1,298,691贴子:12,838,251
  • 2回复贴,共1

关于maven使用问题

只看楼主收藏回复

下载Springboot项目后,想输入"mvn clean package"运行, “Downloading from central: https://repo.maven.apache.org/maven2/org/springframework/boot/spring-boot-starter-parent/2.3.4.RELEASE/spring-boot-starter-parent-2.3.4.RELEASE.pom” 后出现 “problem accessing trust store: DerInputStream.getLength(): lengthTag=109, too big.” 错误,网上查了查,修改Springboot版本、添加依赖、去掉加密检查(后面加上 "-Dmaven.test.skip=true -Dmaven.wagon.http.ssl.insecure=true -Dmaven.wagon.http.ssl.allowall=true -Dmaven.wagon.http.ssl.ignore.validity.dates=true" ),反正能搜到的方法都用了,问题依旧。
后来我试着把Springboot相关依赖全去掉,虽然不检查Springboot相关依赖了,但会出现 “Downloading from central: https://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-clean-plugin/2.5/maven-clean-plugin-2.5.pom” ,问题依旧。
经过分析,发现问题根源是 “problem accessing trust store: DerInputStream.getLength(): lengthTag=109, too big.” ,百度查相关关键词,没有有效解决;在其他搜索引擎搜索,也没多少;在必应英文搜索,结果更是寥寥无几……
坛友们,还有什么办法解决吗?


IP属地:河北1楼2025-05-07 15:46回复
    补充:
    这个错误也许是个突破口,但网上资料很少:
    Could not transfer artifact org.springframework.boot:spring-boot-starter-parent:pom:2.3.4.RELEASE from/to central (https://repo.maven.apache.org/maven2): java.security.NoSuchAlgorithmException: Error constructing implementation (algorithm: Default, provider: SunJSSE, class: sun.security.ssl.SSLContextImpl$DefaultSSLContext)


    IP属地:河北3楼2025-05-07 21:20
    回复