[Jenkins]Maven Build pom.xml오류 해결

JANG SEONG SU·2022년 10월 28일
0

Spring Boot 프로젝트

목록 보기
5/5

Jenkins - Maven Build 오류

다음 그림과 같이 에러가 발생하였다.

The goal you specified requires a project to execute but there is no POM in this directory

이유는 Maven이 Build를 할 때 pom.xml의 경로를 찾지 못해서이다. 이를 해결 하기 위해서는 빌드할 때 POM의 경로를 추가해주면 된다.

다음과 같이 절대 경로를 추가하면 오류 없이 잘 빌드한다.

Pipeline 혹은 OS가 Linux환경이 아닐시에는 아래 링크를 참조하면 POM 경로를 설정할 수 있다.

https://thetechdarts.com/maven-error-in-jenkins-there-is-no-pom-in-this-directory/

profile
Software Developer Lv.0

0개의 댓글