maven에서 repository에 settings.xml이 없을 때 본문
maven에서 repository에 settings.xml이 없을 때
- 2021. 1. 18. 22:13
728x90
일반적으로 maven이 설치가 되면 자동적으로
C:\Users\super\.m2\ 폴더 안에
settings.xml 이 포함되어 있다.
하지만 어떤 이유에선지는 모르겠지만 이 파일이 없는 경우가 있는데
이 경우에는 추가로 생성이 필요하다.
우선 settings.xml 이라는 파일을 하나 생성하고
아래 내용을 추가한다.
<settings xmlns="http://maven.apache.org/SETTINGS/1.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0
http://maven.apache.org/xsd/settings-1.0.0.xsd">
<localRepository>${user.home}/.m2/repository</localRepository>
</settings>
이렇게 하면 이클립스 > Preference > Maven 에서 확인이 된다.
물론 다른 경로로 바꾸고 싶다면 얼마든지 가능하다.
반응형
'프로그램 > JAVA' 카테고리의 다른 글
Apache Web Server에서 docroot 쪽 폴더 중 manual 폴더가 인지 되지 않을때 (0) | 2021.01.20 |
---|---|
spring:message 메시지 properties 사용 (0) | 2021.01.19 |
오류 발생 unsupported major.minor version 51.0 tomcat 6 또는 7 (0) | 2021.01.18 |
[JSP] 다국어 처리 : Local클래스 이용하기 (0) | 2021.01.18 |
Maven의 pom에 대한 dependency를 찾고 가져오는 방법 (0) | 2021.01.17 |
RECENT COMMENT