Questions tagged [maven-bom]

Maven BOM (bill of materials) is a pattern for collectively managing the versions of multiple dependencies into your project.

For Maven based project which have several artifacts which don't follow single versioning schema vendors may supply recommended dependency via prepared dependency file in dependencyManagement section.

Refer to official docs for example.

Common example of Maven BOM supplied by Spring project:

<dependencyManagement>
    <dependencies>
        <dependency>
            <groupId>org.springframework</groupId>
            <artifactId>spring-framework-bom</artifactId>
            <version>${spring.version}</version>
            <scope>import</scope>
            <type>pom</type>
        </dependency>
        <dependency>
            <groupId>org.springframework.data</groupId>
            <artifactId>spring-data-releasetrain</artifactId>
            <version>${spring-data.version}</version>
            <scope>import</scope>
            <type>pom</type>
        </dependency>
        <dependency>
            <groupId>org.springframework.security</groupId>
            <artifactId>spring-security-bom</artifactId>
            <version>${spring-security.version}</version>
            <scope>import</scope>
            <type>pom</type>
        </dependency>
    </dependencies>
</dependencyManagement>
95 questions
0
votes
1 answer

Using different JBoss BOM in profiles

I have a general question about the usage of the BOM from JBoss and WildFly. Is the a way to build a project for both JBoss 7 and WildFly 10 using a different profile? I tried to copy the BOM definition from WildFly into a profile like…
The End
  • 709
  • 3
  • 18
0
votes
0 answers

Does Maven's dependency type expand out to type + classifier?

Follow up question to the List of possible classifiers and types in dependencies. The accepted answer points at the Maven reference guide type: Corresponds to the dependant artifact's packaging type. This defaults to jar. While it usually…
Shane Gannon
  • 6,770
  • 7
  • 41
  • 64
0
votes
1 answer

Why including bom doesn't work?

I found something doesn't work that I expected to work. I imported the org.glassfish.jersey:jersey-bom in my dependencyManagement section. org.glassfish.jersey
Jin Kwon
  • 20,295
  • 14
  • 115
  • 184
0
votes
0 answers

Transitive dependency with a bom

I have a project named P1 which is a spring-boot project. The pom has already a parent pom, so I decided to use springboot with a bom.