다음 그림과 같이 에러가 발생하였다.
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/