<?xml version="1.0" encoding="UTF-8"?>
<!--

    Copyright (c) 2014-2026 Takari, Inc.
    All rights reserved. This program and the accompanying materials
    are made available under the terms of the Eclipse Public License v1.0
    which accompanies this distribution, and is available at
    https://www.eclipse.org/legal/epl-v10.html

-->
<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/xsd/maven-4.0.0.xsd">
  <modelVersion>4.0.0</modelVersion>

  <parent>
    <groupId>io.takari</groupId>
    <artifactId>takari</artifactId>
    <version>74</version>
  </parent>

  <groupId>io.takari.maven.plugins</groupId>
  <artifactId>takari-lifecycle</artifactId>
  <version>2.4.0</version>
  <packaging>pom</packaging>
  <name>${project.groupId}:${project.artifactId}</name>

  <modules>
    <module>takari-lifecycle-plugin</module>
    <module>takari-lifecycle-plugin-its</module>
  </modules>

  <scm>
    <connection>scm:git:git@github.com:takari/takari-lifecycle.git</connection>
    <developerConnection>scm:git:git@github.com:takari/takari-lifecycle.git</developerConnection>
    <tag>takari-lifecycle-2.4.0</tag>
    <url>https://github.com/takari/takari-lifecycle</url>
  </scm>

  <properties>
    <!-- Maven 3.9.13+ ships Sisu 1.0.0, which discovers Java 17 bytecode; JDT/ECJ needs Java 17 anyway -->
    <takari.javaSourceVersion>17</takari.javaSourceVersion>

    <mavenVersion>3.9.16</mavenVersion>
    <aetherVersion>1.9.27</aetherVersion>
    <sisuVersion>1.1.1</sisuVersion>
    <incrementalbuild.version>1.0.4</incrementalbuild.version>
    <mavenPluginPluginVersion>3.16.0</mavenPluginPluginVersion>
    <m2eWorkspaceVersion>0.4.0</m2eWorkspaceVersion>
    <plexusUtilsVersion>3.6.2</plexusUtilsVersion>
    <pluginTestingVersion>3.1.1</pluginTestingVersion>

  </properties>

  <build>
    <resources>
      <resource>
        <directory>src/main/resources</directory>
      </resource>
      <resource>
        <filtering>true</filtering>
        <directory>src/main/resources-filtered</directory>
      </resource>
    </resources>
    <pluginManagement>
      <plugins>
        <plugin>
          <groupId>org.apache.maven.plugins</groupId>
          <artifactId>maven-surefire-plugin</artifactId>
          <configuration>
            <!-- one JVM per core; test classes are isolated per JVM (static caches), not run as threads -->
            <forkCount>1C</forkCount>
          </configuration>
        </plugin>
        <plugin>
          <groupId>io.takari.maven.plugins</groupId>
          <artifactId>takari-lifecycle-plugin</artifactId>
          <dependencies>
            <dependency>
              <groupId>io.takari.m2e.workspace</groupId>
              <artifactId>org.eclipse.m2e.workspace.cli</artifactId>
              <version>${m2eWorkspaceVersion}</version>
            </dependency>
          </dependencies>
        </plugin>
        <plugin>
          <groupId>com.mycila</groupId>
          <artifactId>license-maven-plugin</artifactId>
          <configuration>
            <licenseSets>
              <licenseSet>
                <excludes combine.children="append">
                  <!-- don't override copyright of code copied from other projects -->
                  <!--
                    | Please note that license-plugin is quite dumb and processes the same sources multiple times
                    | once per each level of parent/module hierarchy. This means the same excludes has to be configured
                    | on each hierarchy level too. (or hope we remember to run "mvn -N license:format", which I am sure
                    | we'll forget)
                   -->
                  <exclude>**/src/main/java/io/takari/maven/plugins/compile/jdt/ReferenceCollection.java</exclude>
                </excludes>
              </licenseSet>
            </licenseSets>
          </configuration>
        </plugin>
      </plugins>
    </pluginManagement>
  </build>
</project>
