<?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">
  <modelVersion>4.0.0</modelVersion>

  <parent>
    <groupId>com.rubensgomes.pom.springboot</groupId>
    <artifactId>springboot-base-pom</artifactId>
    <!-- 3.0-SNAPSHOT defined at .mvn/maven.config. -->
    <version>3.0-SNAPSHOT</version>
    <relativePath>../pom.xml</relativePath>
  </parent>

  <groupId>com.rubensgomes.pom.springboot</groupId>
  <artifactId>springboot-app-pom</artifactId>
  <packaging>pom</packaging>

  <name>springboot-app-pom</name>
  <description>App Spring Boot Parent POM</description>

   <properties>
      <parent_pom_build.timestamp>Sat Jun 27 18:06:56 CDT 2026</parent_pom_build.timestamp>
   </properties>

   <profiles>
      <!-- "dev" profile (default profile) -->
      <profile>
         <id>dev</id>
         <activation>
            <activeByDefault>true</activeByDefault>
         </activation>
         <build>
            <plugins>
               <plugin>
                  <!-- Repackage Jar into Spring Executable -->
                  <groupId>org.springframework.boot</groupId>
                  <artifactId>spring-boot-maven-plugin</artifactId>
                  <executions>
                     <execution>
                        <!--  No jacoco instrumenting involved  -->
                        <id>rg-repackaging-springboot-jar</id>
                        <phase>package</phase>
                        <goals>
                           <goal>repackage</goal>
                        </goals>
                     </execution>
                  </executions>
               </plugin>
            </plugins>
         </build>
      </profile>

      <!-- "snap" profile -->
      <profile>
         <id>snap</id>
         <build>
            <plugins>
               <plugin>
                  <!-- Repackage Jar into Spring Executable -->
                  <groupId>org.springframework.boot</groupId>
                  <artifactId>spring-boot-maven-plugin</artifactId>
                  <executions>
                     <execution>
                        <!-- package after jacoco restored classes -->
                        <id>rg-repackaging-springboot-snapshot-jar</id>
                        <phase>post-integration-test</phase>
                        <goals>
                           <goal>repackage</goal>
                        </goals>
                     </execution>
                  </executions>
               </plugin>
            </plugins>
         </build>
      </profile>

      <!-- "rel" profile -->
      <profile>
         <id>rel</id>
         <build>
            <plugins>
               <plugin>
                  <!-- Repackage Jar into Spring Executable -->
                  <groupId>org.springframework.boot</groupId>
                  <artifactId>spring-boot-maven-plugin</artifactId>
                  <executions>
                     <execution>
                        <!-- package after jacoco restored classes -->
                        <id>rg-repackaging-springboot-release-jar</id>
                        <phase>post-integration-test</phase>
                        <goals>
                           <goal>repackage</goal>
                        </goals>
                     </execution>
                  </executions>
               </plugin>
            </plugins>
         </build>
      </profile>
   </profiles>

</project>
