Home > Back-end >  Docker Jenkins springboot parent. RelativePath points at no local POM Non - resolva
Docker Jenkins springboot parent. RelativePath points at no local POM Non - resolva

Time:09-27

, good, I use ubuntu18, install the docker, using Jenkins mirror by gitlab pull project, do a springbbot automated continuous deployment, project is a hellow world project, the local operation no problem, but Jenkins has been unable to deployment is successful, Jenkins error below

 [INFO] Scanning for the projects... 
Downloading from the nexus - aliyun: http://maven.aliyun.com/nexus/content/groups/public/org/springframework/boot/spring-boot-starter-parent/2.2.6.RELEASE/spring-boot-starter-parent-2.2.6.RELEASE.pom
[ERROR] [ERROR] Some of the problems were encountered while processing the POMs just:
[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 nexus-aliyun (http://maven.aliyun.com/nexus/content/groups/public): Transfer failed for http://maven.aliyun.com/nexus/content/groups/public/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 - & gt; [1] Help
[ERROR]
[ERROR] The project com. Example: demo - api1:0.0.1 - The SNAPSHOT (/var/jenkins_home/workspace/demo - api1/pom. XML) from 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 nexus-aliyun (http://maven.aliyun.com/nexus/content/groups/public): Transfer failed for http://maven.aliyun.com/nexus/content/groups/public/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 -> [2] Help
[ERROR]
[ERROR] To see the full stack trace of the errors, re - run Maven have 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, both please read the following articles:
[ERROR] [1] Help http://cwiki.apache.org/confluence/display/MAVEN/ProjectBuildingException
[ERROR] [2] Help http://cwiki.apache.org/confluence/display/MAVEN/UnresolvableModelException


Do you have big encountered such a problem?

CodePudding user response:

The following is the project of pom. The XML file, monomer architecture project
 & lt; ? The XML version="1.0" encoding="utf-8"?> 
Xsi: schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd" & gt;
4.0.0 & lt;/modelVersion>

Org. Springframework. Boot
Spring - the boot - starter - parent
2.2.6. RELEASE
Pom. Xml

Com. Example
Demo - api1 & lt;/artifactId>
0.0.1 - SNAPSHOT
Demo - api1 & lt;/name>
The Demo project for Spring Boot


1.8 & lt;/Java. Version>




Org. Springframework. Boot
Spring - the boot - starter - web



Org. Springframework. Boot
Spring - the boot - starter - test
Test


Org. Junit. Vintage
Junit - vintage - engine




IO. Springfox
Springfox - swagger2 & lt;/artifactId>
2.5.0 & lt;/version>



IO. Springfox
Springfox swagger - ui
2.5.0 & lt;/version>




Boot


The SRC/main/java

& lt; Include>/* * *. Properties



The SRC/main/resources




Org. Springframework. Boot
nullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnull
  • Related