Jenkins | Maven Build Error, Non-resolvable parent POM
Downloading: http://repo.maven.apache.org/maven2/org/springframework/boot/spring-boot-starter-parent/2.4.0/spring-boot-starter-parent-2.4.0.pom [ERROR] The build could not read 1 project -> [Help 1] [ERROR] [ERROR] The project com.podo.boot:USERS:0.0.1-SNAPSHOT (/var/lib/jenkins/workspace/podo/pom.xml) has 1 error [ERROR] Non-resolvable parent POM: Could not transfer artifact org.springframework.boot:spring-boot-starter-parent:pom:2.4.0 from/to central (http://repo.maven.apache.org/maven2): Failed to transfer file: http://repo.maven.apache.org/maven2/org/springframework/boot/spring-boot-starter-parent/2.4.0/spring-boot-starter-parent-2.4.0.pom. Return code is: 501 , ReasonPhrase:HTTPS Required. and 'parent.relativePath' points at no local POM @ line 5, column 10 -> [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[ERROR] [Help 2] http://cwiki.apache.org/confluence/display/MAVEN/UnresolvableModelException
Build step 'Invoke top-level Maven targets' marked build as failure Finished: FAILURE
Jenkins에서 Maven 프로젝트 빌드 시 위와 같은 에러 메시지가 나타날 경우
프로젝트의 Maven Version과 Jenkins 프로젝트의 Maven Version 을 확인하고
Jenkins Maven Version을 프로젝트와 동일하게 설정하거나 더 높은 버전을 설정한다.