-
Jenkins | Maven Build Error, Non-resolvable parent POM▼ DevOps/젠킨스 (Jenkins) 2021. 9. 28. 11:08반응형
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을 프로젝트와 동일하게 설정하거나 더 높은 버전을 설정한다.반응형'▼ DevOps > 젠킨스 (Jenkins)' 카테고리의 다른 글
Jenkins | GitHub Push 시 자동 빌드 하기 (Webhook) (1) 2022.01.02 Jenkins | 홈 디렉터리 변경 (0) 2021.12.20 Jenkins(젠킨스) | Maven, War 빌드&배포하기 (0) 2021.09.28 리눅스(Linux) | Jenkins 기본 포트 변경하기 (0) 2021.09.27 Jenkins(젠킨스) | Gradle, Jar 빌드&배포하기 (0) 2021.08.23