Jin's Dev Story

[Spring] [WARNING]The requested profile "pom.xml" could not be activated because it does not exist. 본문

Web & Android/SpringBoot

[Spring] [WARNING]The requested profile "pom.xml" could not be activated because it does not exist.

woojin._. 2022. 9. 19. 22:10

프로젝트 Maven install 시 다음과 같은 오류가 발생하였다.

[WARNING] The requested profile "pom.xml" could not be activated because it does not exist.

이 오류의 원인을 Maven install 시 Run configuration의 pom.xml 문제로 확인되었습니다.

pom.xml 파일이 없다고 나오는데 프로젝트에는 존재합니다.

 

[해결방법]

프로젝트 우클릭 -> Properties -> Maven

1. 입력되어 있는 pom.xml 파일명을 삭제해줍니다.

 

2. 'Apply'를 누르면 이러한 화면이 뜨는데 여기서 'Yes'를 누릅니다.

 

이 과정을 한 후 실행해보면 [WARNING]이 뜨지 않는 것을 확인할 수 있습니다.