美文网首页
docker+jenkins+gitlab+springboot

docker+jenkins+gitlab+springboot

作者: 工木南ng | 来源:发表于2020-04-25 13:10 被阅读0次
    [ERROR] [ERROR] Some problems were encountered while processing the POMs:
    [FATAL] Non-resolvable parent POM for com.example:demo-api1:0.0.1-SNAPSHOT: Could not transfer artifact org.springframework.boot:spring-boot-starter-parent:pom:2.2.6.RELEASE from/to central 
    org.springframework.boot:spring-boot-starter-parent:pom:2.2.6.RELEASE from/to central ([https://repo.maven.apache.org/maven2](https://repo.maven.apache.org/maven2)): Transfer failed for [https://repo.maven.apache.org/maven2/org/springframework/boot/spring-boot-starter-parent/2.2.6.RELEASE/spring-boot-starter-parent-2.2.6.RELEASE.pom](https://repo.maven.apache.org/maven2/org/springframework/boot/spring-boot-starter-parent/2.2.6.RELEASE/spring-boot-starter-parent-2.2.6.RELEASE.pom) and 'parent.relativePath' points at no local POM @ line 5, column 10
    
    [ERROR] The build could not read 1 project -> [Help 1]
    [ERROR]   
    [ERROR]   The project com.example:demo-api1:0.0.1-SNAPSHOT (/var/jenkins_home/workspace/demo-api1/pom.xml) has 1 error
    [ERROR]     Non-resolvable parent POM for com.example:demo-api1:0.0.1-SNAPSHOT: Could not transfer artifact org.springframework.boot:spring-boot-starter-parent:pom:2.2.6.RELEASE from/to central 
    
    ([https://repo.maven.apache.org/maven2](https://repo.maven.apache.org/maven2)): Transfer failed for [https://repo.maven.apache.org/maven2/org/springframework/boot/spring-boot-starter-parent/2.2.6.RELEASE/spring-boot-starter-parent-2.2.6.RELEASE.pom](https://repo.maven.apache.org/maven2/org/springframework/boot/spring-boot-starter-parent/2.2.6.RELEASE/spring-boot-starter-parent-2.2.6.RELEASE.pom) and 'parent.relativePath' points at no local POM @ line 5, column 10: sun.security.validator.ValidatorException: No trusted certificate found -> [Help 2] [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](http://cwiki.apache.org/confluence/display/MAVEN/ProjectBuildingException) [ERROR] [Help 2] [http://cwiki.apache.org/confluence/display/MAVEN/UnresolvableModelException](http://cwiki.apache.org/confluence/display/MAVEN/UnresolvableModelException)
    
    

    一开始以为是项目配置问题,但本地clean package是正常的,项目是最基础的springboot项目,本地没有问题,一开始寻找方向定在help1中的'parent.relativePath' points at no local POM @ line 5, column 10
    但实际这个指定位置是一个标准的pom文件

    在确认help1没问题的前提下,从help2的ValidatorException: No trusted certificate found找问题,通过网上的方案:
    1.%JAVA_HOME%/jre/lib/security/cacerts出问题,
    把没问题的机子上的cacerts目录覆盖它
    2.在jenkins的maven配置中加上以下代码:
    -Dmaven.wagon.http.ssl.insecure=true -Dmaven.wagon.http.ssl.allowall=true -Dmaven.wagon.http.ssl.ignore.validity.dates=true

    image.png image.png

    解决

    相关文章

      网友评论

          本文标题:docker+jenkins+gitlab+springboot

          本文链接:https://www.haomeiwen.com/subject/uqahwhtx.html