<?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 https://maven.apache.org/xsd/maven-4.0.0.xsd">
    <modelVersion>4.0.0</modelVersion>

    <parent>
        <groupId>org.springframework.boot</groupId>
        <artifactId>spring-boot-starter-parent</artifactId>
        <version>4.1.1</version>
        <relativePath/>
    </parent>

    <groupId>com.ankurm</groupId>
    <artifactId>camel-demo</artifactId>
    <version>1.0.0</version>
    <name>camel-demo</name>

    <properties>
        <java.version>25</java.version>
        <!-- Latest release on Maven Central as of this post (checked via
             maven-metadata.xml, not assumed) - also the first line to
             actually confirm Camel 4 builds cleanly against Spring Boot 4.1's
             Spring Framework 7 baseline, since Camel's own compatibility
             docs don't call out Boot 4 explicitly yet. -->
        <camel.version>4.22.1</camel.version>
    </properties>

    <dependencyManagement>
        <dependencies>
            <dependency>
                <groupId>org.apache.camel.springboot</groupId>
                <artifactId>camel-spring-boot-bom</artifactId>
                <version>${camel.version}</version>
                <type>pom</type>
                <scope>import</scope>
            </dependency>
        </dependencies>
    </dependencyManagement>

    <dependencies>
        <dependency>
            <groupId>org.apache.camel.springboot</groupId>
            <artifactId>camel-spring-boot-starter</artifactId>
        </dependency>

        <dependency>
            <groupId>org.springframework.boot</groupId>
            <artifactId>spring-boot-starter-test</artifactId>
            <scope>test</scope>
        </dependency>
        <!-- Note the groupId: org.apache.camel, not org.apache.camel.springboot
             (confirmed by reading the BOM's own pom.xml - guessing
             camel-test-spring-junit5-starter under the springboot groupId
             failed with a missing-version error, since that artifact
             doesn't exist in this BOM at all. Also note "junit6", not
             "junit5" - this is the artifact actually listed for 4.22.1. -->
        <dependency>
            <groupId>org.apache.camel</groupId>
            <artifactId>camel-test-spring-junit6</artifactId>
            <scope>test</scope>
        </dependency>
    </dependencies>

    <build>
        <plugins>
            <plugin>
                <groupId>org.springframework.boot</groupId>
                <artifactId>spring-boot-maven-plugin</artifactId>
            </plugin>
        </plugins>
    </build>
</project>
