Managing Dependencies

Helidon provides a “Bill Of Materials” (BOM) to manage dependencies. This is a special Maven pom file that provides dependency management.

Using the Helidon BOM allows you to use Helidon component dependencies with a single version: the Helidon version.

The Helidon BOM POM

Add the following snippet to your pom.xml file in order to import the Helidon BOM.

Import the Helidon BOM
<dependencyManagement>
    <dependencies>
        <dependency>
            <groupId>io.helidon</groupId>
            <artifactId>helidon-bom</artifactId>
            <version>1.4.12</version>
            <type>pom</type>
            <scope>import</scope>
        </dependency>
    </dependencies>
</dependencyManagement>
Copied

Using Helidon Component Dependencies

Once you have imported the BOM, you can declare dependencies on Helidon components without specifying a version.

Component dependency
<dependency>
    <groupId>io.helidon.webserver</groupId>
    <artifactId>helidon-webserver</artifactId>
</dependency>
Copied