<?xml version="1.0" encoding="UTF-8"?>
<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 https://maven.apache.org/xsd/maven-4.0.0.xsd">
    <modelVersion>4.0.0</modelVersion>
    <parent>
        <groupId>[=groupId]</groupId>
        <artifactId>[=artifactId]-parent</artifactId>
        <version>[=version]</version>
        <relativePath>../pom.xml</relativePath>
    </parent>

    <artifactId>[=artifactId]</artifactId>
[#if nameBase?? ]    <name>[=namePrefix][=nameBase][=nameSegmentDelimiter]Runtime</name>
[/#if]

    <dependencies>
[#if additionalRuntimeDependencies?size > 0 ]
[#list additionalRuntimeDependencies as dep]
        <dependency>
            <groupId>[=dep.groupId]</groupId>
            <artifactId>[=dep.artifactId]</artifactId>
[#if !bomPathSet ]            <version>[=dep.version]</version>
[/#if]
[#if dep.type?? ]            <type>[=dep.type]</type>
[/#if]
[#if dep.classifier?? ]            <type>[=dep.classifier]</type>
[/#if]
[#if dep.scope?? ]            <type>[=dep.scope]</type>
[/#if]
        </dependency>
[/#list]
[/#if]
    </dependencies>

    <build>
        <plugins>
            <plugin>
                <groupId>io.quarkus</groupId>
                <artifactId>quarkus-bootstrap-maven-plugin</artifactId>
[#if !assumeManaged ]                <version>[=quarkusVersion]</version>
                <executions>
                    <execution>
                        <goals>
                            <goal>extension-descriptor</goal>
                        </goals>
                        <phase>compile</phase>
                        <configuration>
                            <deployment>[=r"$"]{project.groupId}:[=r"$"]{project.artifactId}-deployment:[=r"$"]{project.version}
                            </deployment>
                        </configuration>
                    </execution>
                </executions>
[/#if]
            </plugin>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-compiler-plugin</artifactId>
                <configuration>
                    <annotationProcessorPaths>
                        <path>
                            <groupId>io.quarkus</groupId>
                            <artifactId>quarkus-extension-processor</artifactId>
                            <version>[=quarkusVersion]</version>
                        </path>
                    </annotationProcessorPaths>
                </configuration>
            </plugin>
        </plugins>
    </build>
</project>
