<?xml version="1.0" encoding="UTF-8"?>
<!--
  ~ JBoss, Home of Professional Open Source
  ~ Copyright 2018, Red Hat, Inc., and individual contributors as indicated
  ~ by the @authors tag.
  ~
  ~ Licensed under the Apache License, Version 2.0 (the "License");
  ~ you may not use this file except in compliance with the License.
  ~ You may obtain a copy of the License at
  ~
  ~ http://www.apache.org/licenses/LICENSE-2.0
  ~
  ~ Unless required by applicable law or agreed to in writing, software
  ~ distributed under the License is distributed on an "AS IS" BASIS,
  ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  ~ See the License for the specific language governing permissions and
  ~ limitations under the License.
  -->

<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</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>32.0.0.Final</version>
    </parent>

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

    <packaging>pom</packaging>

    <name>WildFly BOMs: EJB Client 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>org.wildfly</bomGroupId>
                            <bomArtifactId>wildfly-ejb-client-bom</bomArtifactId>
                            <bomVersion>${project.version}</bomVersion>
                            <bomName>WildFly 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>
