<?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>40.0.0.Final</version>
        <relativePath>../pom.xml</relativePath>
    </parent>

    <artifactId>wildfly-weld-parent</artifactId>
    <packaging>pom</packaging>
    <name>WildFly: Weld</name>

    <modules>
        <module>bean-validation</module>
        <module>common</module>
        <module>ejb</module>
        <module>jpa</module>
        <module>spi</module>
        <module>subsystem</module>
        <module>transactions</module>
        <module>webservices</module>
    </modules>

    <dependencyManagement>
        <dependencies>
            <dependency>
                <groupId>${project.groupId}</groupId>
                <artifactId>${dependency.management.import.artifact}</artifactId>
                <version>${ee.maven.version}</version>
                <type>pom</type>
                <scope>import</scope>
            </dependency>
        </dependencies>
    </dependencyManagement>

    <profiles>
        <profile>
            <id>latest.ee.specific.dependencies</id>
            <activation>
                <property>
                    <!-- This profile exists to make it is easy to stop doing what WildFly does downstream.
                         It's not meant to be turned off/on by external callers. -->
                    <name>!WRONGLY.disable.latest.ee.specific.dependencies</name>
                </property>
            </activation>
            <dependencies>
                <dependency>
                    <groupId>jakarta.enterprise</groupId>
                    <artifactId>jakarta.enterprise.cdi-el-api</artifactId>
                </dependency>
            </dependencies>
        </profile>
    </profiles>

</project>
