<?xml version="1.0" encoding="UTF-8"?>
<!--
  ~ JBoss, Home of Professional Open Source
  ~ Copyright 2022, 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-ee-builder</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>33.0.2.Final</version>
    </parent>

    <packaging>pom</packaging>

    <artifactId>wildfly-ee-with-tools-builder</artifactId>

    <name>WildFly BOMs: EE with Tools Builder</name>
    <description>This artifact builds a bill of materials (BOM) for WildFly EE with Deployment and Testing Tools</description>

    <dependencyManagement>
        <dependencies>

            <!-- imports the related server's test BOM -->
            <dependency>
                <groupId>org.wildfly</groupId>
                <artifactId>wildfly-standard-test-bom</artifactId>
                <version>${ee.maven.version}</version>
                <type>pom</type>
                <scope>import</scope>
            </dependency>
        </dependencies>
    </dependencyManagement>

    <build>
        <pluginManagement>
            <plugins>
                <!-- The WildFly plugin deploys your war to a local WildFly container -->
                <!-- To use, set the JBOSS_HOME environment variable and
                    run: mvn package wildfly:deploy -->
                <plugin>
                    <groupId>org.wildfly.plugins</groupId>
                    <artifactId>wildfly-maven-plugin</artifactId>
                </plugin>
            </plugins>
        </pluginManagement>
        <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>${project.groupId}</groupId>
                                <artifactId>wildfly-ee</artifactId>
                                <version>${project.version}</version>
                                <relativePath/>
                            </parent>
                            <bomGroupId>${project.groupId}</bomGroupId>
                            <bomArtifactId>wildfly-ee-with-tools</bomArtifactId>
                            <bomVersion>${project.version}</bomVersion>
                            <bomName>WildFly BOMs: EE with Tools</bomName>
                            <bomDescription>Dependency Management for WildFly EE with Deployment and Testing Tools.</bomDescription>
                            <licenses>true</licenses>
                            <inheritExclusions>NONE</inheritExclusions>
                            <includeTransitives>false</includeTransitives>
                            <includeDependencies>
                                <dependency>
                                    <groupId>com.h2database</groupId>
                                    <artifactId>h2</artifactId>
                                </dependency>
                                <dependency>
                                    <groupId>junit</groupId>
                                    <artifactId>junit</artifactId>
                                </dependency>
                                <dependency>
                                    <groupId>org.apache.httpcomponents</groupId>
                                    <artifactId>httpclient</artifactId>
                                </dependency>
                                <!-- Arquillian support for JBoss WildFly container -->
                                <dependency>
                                    <groupId>org.wildfly.arquillian</groupId>
                                    <artifactId>wildfly-arquillian-common</artifactId>
                                </dependency>
                                <!-- Note: Managed version of container allows Arquillian to control startup and shutdown of the container -->
                                <dependency>
                                    <groupId>org.wildfly.arquillian</groupId>
                                    <artifactId>wildfly-arquillian-container-managed</artifactId>
                                </dependency>
                                <!-- Note: Remote version of container allows Arquillian to connect to already running container -->
                                <dependency>
                                    <groupId>org.wildfly.arquillian</groupId>
                                    <artifactId>wildfly-arquillian-container-remote</artifactId>
                                </dependency>
                                <dependency>
                                    <groupId>org.jboss.arquillian.container</groupId>
                                    <artifactId>arquillian-container-test-spi</artifactId>
                                </dependency>
                                <dependency>
                                    <groupId>org.jboss.arquillian.junit</groupId>
                                    <artifactId>arquillian-junit-container</artifactId>
                                </dependency>
                                <dependency>
                                    <groupId>org.jboss.arquillian.junit5</groupId>
                                    <artifactId>arquillian-junit5-container</artifactId>
                                </dependency>
                                <dependency>
                                    <groupId>org.jboss.arquillian.protocol</groupId>
                                    <artifactId>arquillian-protocol-servlet-jakarta</artifactId>
                                </dependency>
                                <dependency>
                                    <groupId>org.wildfly.core</groupId>
                                    <artifactId>wildfly-cli</artifactId>
                                    <classifier>client</classifier>
                                </dependency>
                            </includeDependencies>
                            <versionRefDependencies>
                                <dependency>
                                    <groupId>org.wildfly.arquillian</groupId>
                                    <artifactId>wildfly-arquillian-container-remote</artifactId>
                                    <version>org.wildfly.arquillian:wildfly-arquillian-container-managed:jar</version>
                                </dependency>
                                <dependency>
                                    <groupId>org.jboss.arquillian.protocol</groupId>
                                    <artifactId>arquillian-protocol-servlet-jakarta</artifactId>
                                    <version>org.jboss.arquillian.container:arquillian-container-test-spi:jar</version>
                                </dependency>
                                <dependency>
                                    <groupId>org.jboss.arquillian.junit5</groupId>
                                    <artifactId>arquillian-junit5-container</artifactId>
                                    <version>org.jboss.arquillian.container:arquillian-container-test-spi:jar</version>
                                </dependency>
                            </versionRefDependencies>
                            <includePlugins>
                                <includePlugin>org.wildfly.plugins:wildfly-maven-plugin</includePlugin>
                            </includePlugins>
                        </configuration>
                    </execution>
                </executions>
            </plugin>
        </plugins>
    </build>
</project>
