<?xml version="1.0" encoding="UTF-8"?>
<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>at.bestsolution.openjfx</groupId>
  <artifactId>parent</artifactId>
  <version>21.0.2</version>
  <packaging>pom</packaging>
  <modules>
    <module>openjfx.base</module>
    <module>openjfx.graphics.mac</module>
    <module>openjfx.graphics.win32_64</module>
    <module>openjfx.graphics.linux_64</module>
    <module>openjfx.fxml</module>
    <module>openjfx.controls</module>
    <module>openjfx.swing</module>
    <module>openjfx.media.mac</module>
    <module>openjfx.media.linux_64</module>
    <module>openjfx.media.win32_64</module>
    <module>openjfx.web.linux_64</module>
    <module>openjfx.web.mac</module>
    <module>openjfx.web.win32_64</module>
    <module>openjfx.standard.feature</module>
    <module>openjfx.media.feature</module>
    <module>openjfx.web.feature</module>
    <module>openjfx.swing.feature</module>
    <module>openjfx.swt</module>
    <module>openjfx.swt.feature</module>
    <module>openjfx.graphics.mac_aarch64</module>
    <module>openjfx.media.mac_aarch64</module>
    <module>openjfx.web.mac_aarch64</module>
  </modules>
  <properties>
    <maven-osgi-package-plugin.version>0.0.3-SNAPSHOT</maven-osgi-package-plugin.version>
    <flatten-maven-plugin.version>1.2.3</flatten-maven-plugin.version>
    <revision>21.0.2</revision>
    <maven.build.timestamp.format>yyyyMMddHHmm</maven.build.timestamp.format>
    <openjfx.version>21.0.2</openjfx.version>
    <osgi.qualifier>${maven.build.timestamp}</osgi.qualifier>
  </properties>
  <build>
    <plugins>
      <plugin>
        <groupId>biz.aQute.bnd</groupId>
        <artifactId>bnd-maven-plugin</artifactId>
        <version>4.2.0</version>
        <executions>
          <execution>
            <id>default-bnd-process</id>
            <goals>
              <goal>bnd-process</goal>
            </goals>
          </execution>
        </executions>
        <configuration>
          <skip>false</skip>
        </configuration>
      </plugin>
      <plugin>
        <artifactId>maven-compiler-plugin</artifactId>
        <version>3.8.0</version>
        <configuration>
          <source>11</source>
          <target>11</target>
        </configuration>
      </plugin>
      <plugin>
        <artifactId>maven-jar-plugin</artifactId>
        <version>3.1.0</version>
        <configuration>
          <archive>
            <manifestFile>${project.build.outputDirectory}/META-INF/MANIFEST.MF</manifestFile>
          </archive>
        </configuration>
      </plugin>
      <plugin>
        <groupId>org.codehaus.mojo</groupId>
        <artifactId>flatten-maven-plugin</artifactId>
        <version>${flatten-maven-plugin.version}</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>
          <flattenMode>resolveCiFriendliesOnly</flattenMode>
          <updatePomFile>true</updatePomFile>
        </configuration>
      </plugin>
    </plugins>
  </build>
  <profiles>
    <profile>
      <id>p2</id>
      <activation />
      <modules>
        <module>openjfx.p2</module>
      </modules>
    </profile>
    <profile>
      <id>deploy-bestsolution</id>
      <build>
        <plugins>
          <plugin>
            <artifactId>maven-gpg-plugin</artifactId>
            <version>1.5</version>
            <executions>
              <execution>
                <id>sign-artifacts</id>
                <phase>verify</phase>
                <goals>
                  <goal>sign</goal>
                </goals>
              </execution>
            </executions>
          </plugin>
          <plugin>
            <groupId>org.sonatype.plugins</groupId>
            <artifactId>nexus-staging-maven-plugin</artifactId>
            <version>1.6.8</version>
            <extensions>true</extensions>
            <executions>
              <execution>
                <id>injected-nexus-deploy</id>
                <phase>deploy</phase>
                <goals>
                  <goal>deploy</goal>
                </goals>
                <configuration>
                  <serverId>exclipse-releases</serverId>
                  <nexusUrl>http://rattenschwanz.bestsolution.at:8081/nexus</nexusUrl>
                  <skipStaging>true</skipStaging>
                </configuration>
              </execution>
            </executions>
            <configuration>
              <serverId>exclipse-releases</serverId>
              <nexusUrl>http://rattenschwanz.bestsolution.at:8081/nexus</nexusUrl>
              <skipStaging>true</skipStaging>
            </configuration>
          </plugin>
        </plugins>
      </build>
      <distributionManagement>
        <repository>
          <id>oss-releases_2025</id>
          <url>https://maven.bestsolution.at/repos/releases/</url>
        </repository>
        <snapshotRepository>
          <id>oss-snapshots</id>
          <url>https://maven.bestsolution.at/deploy/snapshots/</url>
        </snapshotRepository>
      </distributionManagement>
    </profile>
  </profiles>
</project>
