ProgramingTip

Maven에서 BOM 파일을 사용하는 방법은 무엇입니까?

bestdevel 2020. 11. 14. 10:55
반응형

Maven에서 BOM 파일을 사용하는 방법은 무엇입니까?


인터넷에서 상당한 나는 연구 BOM를 해왔고 메이븐 으로 파일 을 어떻게 처리 해야하는지 쉬운 설명을 찾지 못했습니다 .

문제는 JBoss 7.1.1을 사용하고 모든 JBoss 클라이언트 jar를 pom.xml. .NET에서 사용하는 방법을 모르겠습니다 pom.xml.

도와주세요.


A bom는 소위 BOM (Bill of Materials) 여러 버전이 함께 작동하도록 여러 버전을 제공합니다. JBoss는 포함 그것의 프로젝트의 많은 BOM을 가지고 Arquillian제이 보스 AS 자체를.

maven 문서bom사용법에 대한 설명이 있습니다 .-아래에 잘 숨겨져 있습니다.

실제 예 :

다음과 같이 bom을 pom에 포함하고 있습니다.

<dependencyManagement>
    <dependencies>
        <dependency>
            <groupId>org.jboss.bom</groupId>
            <artifactId>jboss-javaee-6.0-with-tools</artifactId>
            <version>${javaee6.with.tools.version}</version>
            <type>pom</type>
            <scope>import</scope>
        </dependency>
    </dependencies>
</dependencyManagement> 

다음 bom과 같이 정의 된 경우의 버전 속성을 필요가 없습니다 .

<dependency>
    <groupId>javax.enterprise</groupId>
    <artifactId>cdi-api</artifactId>
    <scope>provided</scope>
</dependency>

참고 URL : https://stackoverflow.com/questions/14874966/how-to-use-bom-file-with-maven

반응형