<?xml version="1.0" encoding="UTF-8"?>
<!--
  ~ Copyright The WildFly Authors
  ~ SPDX-License-Identifier: Apache-2.0
  -->
<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/xsd/maven-4.0.0.xsd">
    <modelVersion>4.0.0</modelVersion>

    <parent>
        <groupId>org.wildfly.bom.builder</groupId>
        <artifactId>wildfly-client</artifactId>
        <!--
        Maintain separation between the artifact id and the version to help prevent
        merge conflicts between commits changing the GA and those changing the V.
        -->
        <version>34.0.1.Final</version>
    </parent>

    <artifactId>wildfly-ejb-client-bom-builder</artifactId>

    <packaging>pom</packaging>

    <name>WildFly BOM Builders: Client EJB Builder</name>

    <description>
        This artifact builds a bill of materials (BOM) for EJB client usage.
    </description>

    <dependencyManagement>
        <dependencies>
            <dependency>
                <groupId>org.wildfly</groupId>
                <artifactId>wildfly-standard-ee-bom</artifactId>
                <version>${ee.maven.version}</version>
                <type>pom</type>
                <scope>import</scope>
            </dependency>
        </dependencies>
    </dependencyManagement>

    <dependencies>
        <dependency>
            <groupId>org.wildfly</groupId>
            <artifactId>wildfly-ee-galleon-pack</artifactId>
            <version>${ee.maven.version}</version>
            <type>pom</type>
        </dependency>
    </dependencies>

    <build>
        <plugins>
            <plugin>
                <groupId>org.wildfly.plugins</groupId>
                <artifactId>wildfly-bom-builder-plugin</artifactId>
                <executions>
                    <execution>
                        <id>build-bom</id>
                        <goals>
                            <goal>build-bom</goal>
                        </goals>
                        <configuration>
                            <parent>
                                <groupId>org.jboss</groupId>
                                <artifactId>jboss-parent</artifactId>
                                <relativePath/>
                            </parent>
                            <bomGroupId>${bomGroupId}</bomGroupId>
                            <bomArtifactId>${bomArtifactIdPrefix}-ejb-client-bom</bomArtifactId>
                            <bomVersion>${project.version}</bomVersion>
                            <bomName>${full.dist.product.release.name} BOMs: EJB Client</bomName>
                            <bomDescription>This artifact provides a bill of materials (BOM) for remoting based EJB usage. Importing this bom into your project will give you the maven artifacts you need to perform remote EJB calls.</bomDescription>
                            <bomWithDependencies>true</bomWithDependencies>
                            <licenses>true</licenses>
                            <inheritExclusions>UNMANAGED</inheritExclusions>
                            <includeDependencies>
                                <!-- ejb client, the main artifact -->
                                <dependency>
                                    <groupId>org.jboss</groupId>
                                    <artifactId>jboss-ejb-client</artifactId>
                                </dependency>
                                <!-- replaces org.jboss.spec.javax.resource:jboss-connector-api_1.7_spec -->
                                <dependency>
                                    <groupId>jakarta.resource</groupId>
                                    <artifactId>jakarta.resource-api</artifactId>
                                </dependency>
                                <!-- http ejb client, extension of main artifact -->
                                <dependency>
                                    <groupId>org.wildfly.wildfly-http-client</groupId>
                                    <artifactId>wildfly-http-ejb-client</artifactId>
                                </dependency>
                                <!-- TODO review removal, artifact for server side ejb apps and already included by EE BOM -->
                                <dependency>
                                    <groupId>org.jboss.ejb3</groupId>
                                    <artifactId>jboss-ejb3-ext-api</artifactId>
                                </dependency>
                            </includeDependencies>
                        </configuration>
                    </execution>
                </executions>
            </plugin>
        </plugins>
    </build>
</project>
