<project xmlns="http://maven.apache.org/POM/4.0.0"
         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
    <modelVersion>4.0.0</modelVersion>
    <groupId>{{groupId}}</groupId>
    <parent>
        <groupId>io.helidon.applications</groupId>
        <artifactId>helidon-mp</artifactId>
        <version>{{{helidonVersion}}}</version>
        <relativePath/>
    </parent>
    <artifactId>{{artifactId}}</artifactId>
    <name>{{artifactId}}</name>
    {{#appDescription}}
        <description>{{.}}</description>
    {{/appDescription}}
    <version>{{artifactVersion}}</version>
    <packaging>jar</packaging>

    <properties>
{{#openApiNullable}}
        <version.jackson.databind.nullable>0.2.6</version.jackson.databind.nullable>
{{/openApiNullable}}
    </properties>

    <dependencies>
        <dependency>
            <groupId>io.helidon.microprofile.bundles</groupId>
            <artifactId>helidon-microprofile-core</artifactId>
        </dependency>
        <dependency>
            <groupId>io.helidon.microprofile.cdi</groupId>
            <artifactId>helidon-microprofile-cdi</artifactId>
        </dependency>
        <dependency>
            <groupId>{{x-helidon-rootJavaEEDepPrefix}}.enterprise</groupId>
            <artifactId>{{x-helidon-rootJavaEEDepPrefix}}.enterprise.cdi-api</artifactId>
        </dependency>
        <dependency>
            <groupId>{{x-helidon-rootJavaEEDepPrefix}}.ws.rs</groupId>
            <artifactId>{{x-helidon-rootJavaEEDepPrefix}}.ws.rs-api</artifactId>
        </dependency>
{{#openApiNullable}}
        <dependency>
            <groupId>org.openapitools</groupId>
            <artifactId>jackson-databind-nullable</artifactId>
            <version>${version.jackson.databind.nullable}</version>
        </dependency>
{{/openApiNullable}}
{{#jackson}}
        <dependency>
            <groupId>org.glassfish.jersey.media</groupId>
            <artifactId>jersey-media-json-jackson</artifactId>
        </dependency>
{{/jackson}}
{{#jsonb}}
        <dependency>
            <groupId>org.glassfish.jersey.media</groupId>
            <artifactId>jersey-media-json-binding</artifactId>
        </dependency>
        <dependency>
            <groupId>{{x-helidon-rootJavaEEDepPrefix}}.json.bind</groupId>
            <artifactId>{{x-helidon-rootJavaEEDepPrefix}}.json.bind-api</artifactId>
        </dependency>
{{/jsonb}}
        <dependency>
            <groupId>org.junit.jupiter</groupId>
            <artifactId>junit-jupiter-api</artifactId>
            <scope>test</scope>
        </dependency>
{{^x-helidon-useMpTesting}}
        <dependency>
            <groupId>io.helidon.microprofile.tests</groupId>
            <artifactId>helidon-microprofile-tests-junit5</artifactId>
            <scope>test</scope>
        </dependency>
{{/x-helidon-useMpTesting}}
{{#x-helidon-useMpTesting}}
        <dependency>
            <groupId>io.helidon.microprofile.testing</groupId>
            <artifactId>helidon-microprofile-testing-junit5</artifactId>
            <scope>test</scope>
        </dependency>
{{/x-helidon-useMpTesting}}
    </dependencies>

    <build>
        <plugins>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-dependency-plugin</artifactId>
                <executions>
                    <execution>
                        <id>copy-libs</id>
                    </execution>
                </executions>
            </plugin>
            <plugin>
{{^x-helidon-useSmallRyeJandexPlugin}}
                <groupId>org.jboss.jandex</groupId>
                <artifactId>jandex-maven-plugin</artifactId>
{{/x-helidon-useSmallRyeJandexPlugin}}
{{#x-helidon-useSmallRyeJandexPlugin}}
                <groupId>io.smallrye</groupId>
                <artifactId>jandex-maven-plugin</artifactId>
{{/x-helidon-useSmallRyeJandexPlugin}}
                <executions>
                    <execution>
                        <id>make-index</id>
                    </execution>
                </executions>
            </plugin>
        </plugins>
    </build>
</project>
