<?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>
  <parent>
    <groupId>org.springframework.boot</groupId>
    <artifactId>spring-boot-starter-parent</artifactId>
    <version>3.5.6</version>
    <relativePath></relativePath>
  </parent>
  <groupId>com.netmoor.shop</groupId>
  <artifactId>shop</artifactId>
  <version>0.1.0</version>
  <packaging>pom</packaging>
  <name>shop</name>
  <licenses>
    <license>
      <name>Apache License, Version 2.0</name>
      <url>https://www.apache.org/licenses/LICENSE-2.0</url>
    </license>
  </licenses>
  <modules>
    <module>common</module>
    <module>orders-service</module>
    <module>billing-service</module>
  </modules>
  <properties>
    <java.version>21</java.version>
    <testcontainers.version>1.21.4</testcontainers.version>
    <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
    <jib.skip>true</jib.skip>
    <revision>0.0.0-SNAPSHOT</revision>
  </properties>
  <build>
    <pluginManagement>
      <plugins>
        <plugin>
          <groupId>com.google.cloud.tools</groupId>
          <artifactId>jib-maven-plugin</artifactId>
          <version>3.4.5</version>
          <configuration>
            <from>
              <image>harbor.home.arpa/dockerhub/library/eclipse-temurin:${java.version}-jre</image>
            </from>
            <to>
              <image>harbor.home.arpa/apps/${project.artifactId}</image>
            </to>
            <allowInsecureRegistries>true</allowInsecureRegistries>
            <container>
              <user>1000:1000</user>
              <jvmFlags>
                <jvmFlag>-XX:MaxRAMPercentage=75</jvmFlag>
              </jvmFlags>
            </container>
          </configuration>
        </plugin>
      </plugins>
    </pluginManagement>
    <plugins>
      <plugin>
        <groupId>org.codehaus.mojo</groupId>
        <artifactId>flatten-maven-plugin</artifactId>
        <version>1.7.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>
