<?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</groupId>
        <artifactId>wildfly-parent</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>41.0.0.Final</version>
        <relativePath>../../pom.xml</relativePath>
    </parent>

    <artifactId>wildfly-legacy-ee-feature-pack-parent</artifactId>
    <description>WildFly ${project.version} Legacy Feature-pack parent</description>
    <packaging>pom</packaging>

    <name>WildFly: Legacy Feature-Pack Parent</name>

    <dependencyManagement>
        <dependencies>

            <!-- Just import the legacy bom -->
            <dependency>
                <groupId>${ee.maven.groupId}</groupId>
                <artifactId>wildfly-legacy-ee-bom</artifactId>
                <version>${ee.maven.version}</version>
                <type>pom</type>
                <scope>import</scope>
            </dependency>
        </dependencies>
    </dependencyManagement>

    <dependencies>

        <!-- Ensure the boms get built. -->
        <dependency>
            <groupId>${ee.maven.groupId}</groupId>
            <artifactId>wildfly-common-ee-dependency-management</artifactId>
            <type>pom</type>
        </dependency>
        <dependency>
            <groupId>${ee.maven.groupId}</groupId>
            <artifactId>wildfly-legacy-ee-bom</artifactId>
            <type>pom</type>
        </dependency>
    </dependencies>

    <profiles>
        <profile>
            <id>base.build</id>
            <activation>
                <property>
                    <name>!no.base.build</name>
                </property>
            </activation>
            <modules>
                <module>channel</module>
                <module>ee-build</module>
                <module>ee-dist</module>
                <module>feature-pack</module>
                <module>galleon-local</module>
                <!-- Add this if we define any layers in this FP -->
                <!--<module>layer-metadata-tests</module>-->
                <module>product-conf</module>
            </modules>
        </profile>

        <profile>
            <id>expansion-build</id>
            <activation>
                <property>
                    <!--
                    Allow users to disable building expansion stuff if they just want base artifacts.
                    This option requires -Dno.preview.build
                    -->
                    <name>!no.expansion.build</name>
                </property>
            </activation>
            <modules>
                <module>build</module>
                <module>dist</module>
            </modules>
        </profile>
    </profiles>

</project>
