<?xml version="1.0" encoding="UTF-8"?>
<!--
  Dummy Maven project for smoke-testing Reposilite deploys (release + snapshot).

  It deploys a tiny artifact (the flattened POM itself) so no source/compilation
  is needed. Version is CI-friendly via ${revision}: pass a plain version to hit
  the release repo, or a -SNAPSHOT version to hit the snapshot repo. Maven routes
  to <repository> vs <snapshotRepository> based on the -SNAPSHOT suffix.

  Auth: Reposilite uses a token as user/password. Point Maven at test-deploy/
  settings.xml (fill in a token first) with `-s`.

  Deploy a SNAPSHOT (default version):
    mvn -s settings.xml -Drevision=1.0.0-SNAPSHOT deploy

  Deploy a RELEASE:
    mvn -s settings.xml -Drevision=1.0.0 deploy

  Target the LOCAL instance instead of production:
    mvn -s settings.xml -Drepo.base=http://127.0.0.1:8055 -Drevision=1.0.0-SNAPSHOT deploy

  Re-run the SNAPSHOT deploy a few times to create multiple timestamped builds,
  which is what snapshot-cleanup.py prunes.
-->
<project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns="http://maven.apache.org/POM/4.0.0"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <modelVersion>4.0.0</modelVersion>
  <groupId>com.example.test</groupId>
  <artifactId>maven-deploy-test</artifactId>
  <version>0.0.1-smoke20260802013436</version>
  <packaging>pom</packaging>
  <name>Maven Deploy Test</name>
  <description>Dummy artifact used to smoke-test Reposilite release/snapshot deploys.</description>
  <distributionManagement>
    <repository>
      <id>maven-releases</id>
      <name>Maven Releases</name>
      <url>${repo.base}/${repo.releases}</url>
    </repository>
    <snapshotRepository>
      <id>maven-snapshots</id>
      <name>Maven Snapshots</name>
      <url>${repo.base}/${repo.snapshots}</url>
    </snapshotRepository>
  </distributionManagement>
  <properties>
    <repo.base>https://maven-new.search-guard.com</repo.base>
    <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
    <repo.snapshots>util-snapshot</repo.snapshots>
    <repo.releases>util</repo.releases>
    <revision>1.0.0-SNAPSHOT</revision>
  </properties>
  <build>
    <plugins>
      <plugin>
        <groupId>org.codehaus.mojo</groupId>
        <artifactId>flatten-maven-plugin</artifactId>
        <version>1.6.0</version>
        <executions>
          <execution>
            <id>flatten</id>
            <phase>process-resources</phase>
            <goals>
              <goal>flatten</goal>
            </goals>
          </execution>
          <execution>
            <id>flatten.clean</id>
            <phase>clean</phase>
            <goals>
              <goal>clean</goal>
            </goals>
          </execution>
        </executions>
        <configuration>
          <updatePomFile>true</updatePomFile>
          <flattenMode>resolveCiFriendliesOnly</flattenMode>
        </configuration>
      </plugin>
    </plugins>
  </build>
</project>
