<?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 https://maven.apache.org/xsd/maven-4.0.0.xsd">
  <modelVersion>4.0.0</modelVersion>
  <parent>
    <groupId>network.ike.docs</groupId>
    <artifactId>ike-docs</artifactId>
    <version>75</version>
  </parent>
  <artifactId>docbook-xsl</artifactId>
  <name>IKE DocBook XSL Stylesheets</name>
  <description>DocBook XSL 1.79.2 stylesheets with IKE FO customization layer.
        Ready-to-use artifact for the AsciiDoc → DocBook5 → XSL-FO → PDF pipeline.</description>
  <url>https://github.com/IKE-Network/ike-docbook-xsl</url>
  <inceptionYear>2026</inceptionYear>
  <organization>
    <name>IKE Network</name>
    <url>https://ike.network</url>
  </organization>
  <licenses>
    <license>
      <name>MIT License (DocBook XSL Stylesheets)</name>
      <url>https://github.com/docbook/xslt10-stylesheets/blob/master/xsl/COPYING</url>
      <distribution>repo</distribution>
      <comments>The DocBook XSL stylesheets are distributed under a permissive
                MIT-style license. See the COPYING file in the distribution.</comments>
    </license>
    <license>
      <name>Apache License 2.0 (IKE Customization Layer)</name>
      <url>https://www.apache.org/licenses/LICENSE-2.0</url>
      <distribution>repo</distribution>
      <comments>The IKE customization layer (ike-fo.xsl) is Copyright 2025
                IKE Network, licensed under Apache 2.0.</comments>
    </license>
  </licenses>
  <distributionManagement>
    <repository>
      <id>ike-staging</id>
      <url>https://nexus.tinkar.org/repository/ike-staging/</url>
    </repository>
    <snapshotRepository>
      <id>ike-snapshots</id>
      <url>${deploy.snapshot.url}</url>
    </snapshotRepository>
    <site>
      <id>ike-site</id>
      <url>https://ike.network/ike-docs/${project.artifactId}/</url>
    </site>
  </distributionManagement>
  <properties>
    <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
    <docbook-xsl.version>1.79.2</docbook-xsl.version>
    <staging.directory>${project.build.directory}/docbook-xsl-${docbook-xsl.version}</staging.directory>
    <build.tools.directory>${project.build.directory}/build-tools</build.tools.directory>
  </properties>
  <dependencies>
    <dependency>
      <groupId>network.ike.tooling</groupId>
      <artifactId>ike-build-standards</artifactId>
      <version>${ike-tooling.version}</version>
      <type>zip</type>
      <classifier>claude</classifier>
      <scope>provided</scope>
    </dependency>
    <dependency>
      <groupId>network.ike.tooling</groupId>
      <artifactId>ike-build-standards</artifactId>
      <version>${ike-tooling.version}</version>
      <type>zip</type>
      <classifier>config</classifier>
      <scope>provided</scope>
    </dependency>
  </dependencies>
  <build>
    <resources>
      <resource>
        <directory>${staging.directory}</directory>
      </resource>
      <resource>
        <targetPath>custom</targetPath>
        <directory>${project.basedir}/src/main/xslt</directory>
      </resource>
    </resources>
    <pluginManagement>
      <plugins>
        <plugin>
          <artifactId>maven-clean-plugin</artifactId>
          <version>3.4.0</version>
        </plugin>
        <plugin>
          <artifactId>maven-resources-plugin</artifactId>
          <version>3.3.1</version>
        </plugin>
        <plugin>
          <artifactId>maven-compiler-plugin</artifactId>
          <version>3.13.0</version>
        </plugin>
        <plugin>
          <artifactId>maven-surefire-plugin</artifactId>
          <version>3.5.2</version>
        </plugin>
        <plugin>
          <artifactId>maven-jar-plugin</artifactId>
          <version>3.4.2</version>
        </plugin>
        <plugin>
          <artifactId>maven-install-plugin</artifactId>
          <version>3.1.3</version>
        </plugin>
        <plugin>
          <artifactId>maven-deploy-plugin</artifactId>
          <version>3.1.3</version>
        </plugin>
      </plugins>
    </pluginManagement>
    <plugins>
      <plugin>
        <artifactId>maven-dependency-plugin</artifactId>
        <executions>
          <execution>
            <id>unpack-claude-standards</id>
          </execution>
          <execution>
            <id>unpack-build-tools</id>
          </execution>
        </executions>
      </plugin>
      <plugin>
        <groupId>network.ike.tooling</groupId>
        <artifactId>ike-maven-plugin</artifactId>
        <version>${ike-tooling.version}</version>
        <executions>
          <execution>
            <id>download-and-unpack-docbook-xsl</id>
            <phase>generate-resources</phase>
            <goals>
              <goal>unpack-zip</goal>
            </goals>
            <configuration>
              <url>https://github.com/docbook/xslt10-stylesheets/releases/download/release/${docbook-xsl.version}/docbook-xsl-${docbook-xsl.version}.zip</url>
              <outputDirectory>${project.build.directory}</outputDirectory>
            </configuration>
          </execution>
        </executions>
      </plugin>
      <plugin>
        <groupId>network.ike.docs</groupId>
        <artifactId>ike-doc-maven-plugin</artifactId>
        <version>75</version>
        <executions>
          <execution>
            <id>patch-docbook-xsl</id>
            <phase>generate-resources</phase>
            <goals>
              <goal>patch-docbook</goal>
            </goals>
            <configuration>
              <docbookDir>${staging.directory}</docbookDir>
            </configuration>
          </execution>
        </executions>
      </plugin>
      <plugin>
        <artifactId>maven-install-plugin</artifactId>
        <version>3.1.3</version>
      </plugin>
    </plugins>
  </build>
</project>