<?xml version="1.0" encoding="UTF-8"?>
<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/maven-v4_0_0.xsd">
    <name>Rumi DocChat Parent</name>
    <modelVersion>4.0.0</modelVersion>
    <groupId>com.neeve</groupId>
    <artifactId>nvx-rumi-docchat-parent</artifactId>
    <packaging>pom</packaging>
    <version>1.0.47</version>
    <url>https://github.com/neeveresearch/nvx-rumi-docchat</url>

    <parent>
        <groupId>com.neeve</groupId>
        <artifactId>nvx-os-parent</artifactId>
        <version>1.1.6</version>
    </parent>

    <licenses>
        <license>
            <name>Apache License, Version 2.0</name>
            <url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
            <distribution>repo</distribution>
            <comments>A business-friendly OSS license</comments>
        </license>
    </licenses>

    <organization>
        <name>N5 Technologies, Inc</name>
        <url>http://www.n5corp.com</url>
    </organization>

    <scm>
        <url>https://github.com/neeveresearch/nvx-rumi-docchat.git</url>
        <connection>scm:git:git://github.com/neeveresearch/nvx-rumi-docchat.git</connection>
        <developerConnection>scm:git:git@github.com:neeveresearch/nvx-rumi-docchat.git</developerConnection>
    </scm>

    <properties>
        <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
        <maven.compiler.source>17</maven.compiler.source>
        <maven.compiler.target>17</maven.compiler.target>
        <nvx.rumi.version>4.0.610</nvx.rumi.version>
        <nvx.rumi.bindings.version>4.0.39</nvx.rumi.bindings.version>
        <nvx.rumi.management.version>2.0.58</nvx.rumi.management.version>
        <jetty.version>12.0.7</jetty.version>
        <jersey.version>3.1.5</jersey.version>
        <arch>linux-x86-64</arch>
    </properties>

    <dependencyManagement>
        <dependencies>
            <dependency>
                <groupId>com.neeve</groupId>
                <artifactId>nvx-rumi-bindings-bom</artifactId>
                <version>${nvx.rumi.bindings.version}</version>
                <type>pom</type>
                <scope>import</scope>
            </dependency>

            <!-- Jetty 12 BOM -->
            <dependency>
                <groupId>org.eclipse.jetty</groupId>
                <artifactId>jetty-bom</artifactId>
                <version>${jetty.version}</version>
                <type>pom</type>
                <scope>import</scope>
            </dependency>

            <!-- Jetty EE10 BOM -->
            <dependency>
                <groupId>org.eclipse.jetty.ee10</groupId>
                <artifactId>jetty-ee10-bom</artifactId>
                <version>${jetty.version}</version>
                <type>pom</type>
                <scope>import</scope>
            </dependency>

            <!-- Jersey 3.1 BOM -->
            <dependency>
                <groupId>org.glassfish.jersey</groupId>
                <artifactId>jersey-bom</artifactId>
                <version>${jersey.version}</version>
                <type>pom</type>
                <scope>import</scope>
            </dependency>
        </dependencies>
    </dependencyManagement>

    <dependencies>
        <!-- Rumi Core -->
        <dependency>
            <groupId>com.neeve</groupId>
            <artifactId>nvx-rumi</artifactId>
            <version>${nvx.rumi.version}</version>
        </dependency>

        <!-- Java 17+ compatibility (packages removed from JDK after JDK8) -->
        <dependency>
            <groupId>javax.annotation</groupId>
            <artifactId>javax.annotation-api</artifactId>
            <version>1.3.2</version>
        </dependency>
        <dependency>
            <groupId>jakarta.xml.bind</groupId>
            <artifactId>jakarta.xml.bind-api</artifactId>
            <version>4.0.0</version>
        </dependency>
        <dependency>
            <groupId>org.glassfish.jaxb</groupId>
            <artifactId>jaxb-runtime</artifactId>
            <version>4.0.3</version>
        </dependency>
    </dependencies>

    <modules>
        <module>nvx-rumi-docchat-roe</module>
        <module>nvx-rumi-docchat-api</module>
        <module>nvx-rumi-docchat-system</module>
    </modules>

    <build>
        <pluginManagement>
            <plugins>
                <plugin>
                    <groupId>org.apache.maven.plugins</groupId>
                    <artifactId>maven-compiler-plugin</artifactId>
                    <version>3.11.0</version>
                    <configuration>
                        <source>${maven.compiler.source}</source>
                        <target>${maven.compiler.target}</target>
                    </configuration>
                </plugin>
                <plugin>
                    <groupId>org.apache.maven.plugins</groupId>
                    <artifactId>maven-surefire-plugin</artifactId>
                    <version>3.2.5</version>
                    <configuration>
                        <forkMode>always</forkMode>
                    </configuration>
                </plugin>
            </plugins>
        </pluginManagement>
    </build>
</project>
