Maven
#3. 메이븐 설정 파일
taehyun_kim
2017. 10. 25. 14:01
pom.xml 설정 파일
메이븐은 빌드와 관련된 정보를 프로젝트 객체 모델 ( project object model )이라는 이름으로 정의하고 있다. 위의 정의는 크게 4가지 카테고리로 나눌 수 있다.
- 프로젝트 기본 정보
- 프로젝트 이름, url 등 기본적인 설정 - 빌드 설정
- 메이븐 빌드와 관련한 기본적인 설정을 변경하기 위한 카테고리 ( #6, #7 참고 )
- 리포팅 문서 ( #9 참고) - 프로젝트 관계 설정
- 다른 라이브러리와의 관계, 프로젝트간의 관계 ( #5, #10 참고 ) - 빌드 환경
- 다양한 환경에 배포하는 것이 가능해야 한다. 이와 관련된 정보를 관리하는 곳 ( #8 참고 )
<project ...>
<build> - (3)
<plugins> ... </plugins> - (6)
</build>
<reporting> ... </reporting> - (9)
<modules> ... </modules> - (10)
<dependencies> ... </dependencies> - (5)
<dependencyManagement> ... </dependencyManagement> - (12)
<distributionManagement> ... </distributionManagement> - (11)
<pluginManagement> ... </pluginManagement> - (12)
<repositories> ... </repositories> - (5)
<pluginRepositories> ... </pluginRepositories> - (7)
<properties> ... </properties> - (5)
<profiles> ... </profiles> - (8)
</project>