<profile>
profile 은 POM 을 하나 더 만드는 역할을 한다고 보면 쉬울 듯 하다.pom.xml 은 내용이 common 의 역할을 하고, profile 이 detail 에 해당된다. 그림으로 그리자면 아래와 같은 느낌이 된다.
그래서 profile tag 가 갖을 수 있는 tag 는 <project> 가 가지고 있는 녀석들을 대부분 갖게 된다.[ref. 1] 물론 tag 의 이름이 같은 만큼 같은 방식으로 사용하면 된다.
<profiles>
<profile>
<id>test</id>
<activation>...</activation>
<build>...</build>
<modules>...</modules>
<repositories>...</repositories>
<pluginRepositories>...</pluginRepositories>
<dependencies>...</dependencies>
<reporting>...</reporting>
<dependencyManagement>...</dependencyManagement>
<distributionManagement>...</distributionManagement>
</profile>
</profiles>
profile 내의 내용은 project 에 있는 내용이라면 중복되면 update 가 되고, 없는 내용이라면 추가되는 듯 하다.

댓글 없음:
댓글 쓰기