미니옵빠의 code stubs

Eclipse에서 maven build 시 The specified user settings file does not exist 오류 발생할 경우 본문

Tools/Maven

Eclipse에서 maven build 시 The specified user settings file does not exist 오류 발생할 경우

미니옵빠 2010. 2. 16. 19:17
Eclipse에서 주로 M2Eclipse plugin을 이용하여 maven을 사용하게 됩니다.
그런데 M2Eclipse를 최초 설치하고, maven으로 빌드를 하려고 하면 다음과 같은 에러가 발생하는 경우가 종종 있습니다.

[ERROR] Error executing Maven.
[ERROR] The specified user settings file does not exist: C:\Documents and Settings\user\.m2\settings.xml

이 때는 아래의 내용을 가지는 settings.xml 파일을 새로 만들어서, 본인 PC의 maven local repository root에 넣어주시면 됩니다.


참고로, local repository는 주로

[윈도]
C:\Documents and Settings\사용자 ID\.m2

[Linux]
~/.m2

가 됩니다.