사용자 도구

사이트 도구


java:maven:settings

차이

문서의 선택한 두 판 사이의 차이를 보여줍니다.

차이 보기로 링크

다음 판
이전 판
java:maven:settings [2011/02/14 12:12]
kwon37xi 새로 만듦
java:maven:settings [2015/11/18 13:40] (현재)
kwon37xi [Maven 설정]
줄 1: 줄 1:
 ====== Maven 설정 ====== ====== Maven 설정 ======
 +  * [[https://maven.apache.org/guides/mini/guide-configuring-maven.html|Configuring Maven Guide]]
 +  * [[https://maven.apache.org/settings.html|settings.xml reference]]
 +  * [[java:maven:centralrepository|Maven Central repository]] Mirro 참조.
 +===== 프로필 Profile =====
 +  * http://maven.apache.org/guides/introduction/introduction-to-profiles.html 참조.
   * 기본 프로필 지정 ~/.m2/settings.xml 에 다음과 같이 지정. 다중 지정 가능함.<code xml>   * 기본 프로필 지정 ~/.m2/settings.xml 에 다음과 같이 지정. 다중 지정 가능함.<code xml>
   <activeProfiles>   <activeProfiles>
     <activeProfile>프로필이름</activeProfile>     <activeProfile>프로필이름</activeProfile>
   </activeProfiles>   </activeProfiles>
 +</code>
 +  * pom.xml 에서 바로 지정은<code xml>
 +  <profile>
 +    <id>profile-1</id>
 +    <activation>
 +      <activeByDefault>true</activeByDefault>
 +    </activation>
 +    ...
 +  </profile>
 </code> </code>
  
 +===== 환경변수 =====
 +  * ''M2_HOME'' : Maven 설치 디렉토리
 +  * ''$M2_HOME/bin''에 실행파일
 +  * ''MAVEN_OPTS'' : Java 옵션을 지정할 수 있다.
 +
 +===== Local Repository 위치 변경 =====
 +''~/.m2/settings.xml''에 위치 지정.
 +<code xml>
 +<settings>
 +  <localRepository>/path/to/local/repo/</localRepository>
 +  ...
 +</settings>
 +</code>
  
java/maven/settings.1297653149.txt.gz · 마지막으로 수정됨: 2011/02/14 12:12 저자 kwon37xi