개발문제해결/Exception

에러 The goal you specified requires a project to execute but there is no POM

타진 2018. 3. 22. 19:57
반응형


[ERROR] The goal you specified requires a project to execute but there is no POM in this directory (D:\......................). Please verify you invoked

 Maven from the correct directory. -> [Help 1]

[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/MissingProjectException




나 같은 경우에는 SpringBoot 레퍼렌스를 읽는 중 mvn package로 정상구동되는지 확인하라고 하길래 했더니 이런 에러가 떳다.


만약 자신이 mvn install 중 이 에러를 받았다면 아래 링크를 참조하자


https://stackoverflow.com/questions/16348459/error-the-goal-you-specified-requires-a-project-to-execute-but-there-is-no-pom



내 경우에는 단순히 intellij cmd의 초기경로가 이상한 곳으로 잡혀있어서 pom.xml을 찾지 못하는 것이 원인이었다


자신의 pom.xml 파일 우클 -> show in explorer  로 경로를 알아니고


cmd 경로를 수정하여 다시 mvn package를 실행하면 해결된다.

반응형