<?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-jpa-parent</artifactId>
    <packaging>pom</packaging>
    <name>WildFly: JPA</name>

    <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>

    <modules>
        <module>hibernate7</module>
        <module>hibernatesearch</module>
        <module>persistence-cdi-extension</module>
        <module>persistence32</module>
        <module>subsystem</module>
        <module>spi</module>
        <module>eclipselink</module>
    </modules>

    <profiles>
        <profile>
            <id>legacy.ee.build</id>
            <activation>
                <property>
                    <name>!no.legacy.ee.build</name>
                </property>
            </activation>
            <modules>
                <module>hibernate6</module>
                <module>persistence31</module>
            </modules>
        </profile>
    </profiles>
</project>
