윈도우에서 메이븐을 쓰다보면..

c:\Documents and Settings\User\.m2\repository

에 라이브러리 들이 들어가게 된다.

그런데 개인적으로 자바 개발시 빈칸이라든지 한글 같은 것들이

들어가는 것이 경험상 삽질을 많이 하게 되었기 때문에

대안으로 이클립스의 workplace 와 repository들은 꼭 다른 하드로 옮겨 놓곤 한다.

자 이제 그 방법

일단 c:\Documents and Settings\User\.m2 폴더에 Settings.xml 을 만든다.

나 같은 경우 maven을 받아 압축을 풀면 conf 디렉토리에 들어 있는 것을 사용했다.

<settings xmlns="http://maven.apache.org/POM/4.0.0"
  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
                      http://maven.apache.org/xsd/settings-1.0.0.xsd">
  <localRepository>C:/develop/lib/repository</localRepository>
  <interactiveMode>true</interactiveMode>
  <usePluginRegistry>false</usePluginRegistry>
  <proxies>
  </proxies>
  <servers>
  </servers>
  <mirrors>
  </mirrors>
  <profiles>
  </profiles>
</settings>
단지 중요한 건 localRepository 태그 이고

나머지는 알아서 설정하면 끝~!!

너무 단순하지만 알기 위해서는 삽질을..
크리에이티브 커먼즈 라이선스
Creative Commons License
Posted by 허혁

댓글을 달아주세요:: 네티켓은 기본, 스팸은 사절

  1. sion
    2007/04/13 11:19
    댓글 주소 수정/삭제 댓글
    좋은정보라 퍼갔습니다^^ 감사합니다.


BLOG main image
안녕하세요. 안정된 코딩, 여유로운 프로젝트, 떠오르는 코더 by 허혁

카테고리

분류 전체보기 (88)
direct (50)
indirect (21)
transmissive (10)
agenda (4)
idea (3)

달력

«   2008/07   »
    1 2 3 4 5
6 7 8 9 10 11 12
13 14 15 16 17 18 19
20 21 22 23 24 25 26
27 28 29 30 31    

최근에 달린 레몬펜 쪽지

Statistics Graph
Creative Commons License

이 저작물은 크리에이티브 커먼즈 코리아 저작자표시-비영리-동일조건변경허락 2.0 대한민국 라이선스에 따라 이용하실 수 있습니다.