<?xml version="1.0" encoding="UTF-8"?>
 
<!--
  Licensed to the Apache Software Foundation (ASF) under one
  or more contributor license agreements.  See the NOTICE file
  distributed with this work for additional information
  regarding copyright ownership.  The ASF licenses this file
  to you under the Apache License, Version 2.0 (the
  "License"); you may not use this file except in compliance
  with the License.  You may obtain a copy of the License at

    http://www.apache.org/licenses/LICENSE-2.0

  Unless required by applicable law or agreed to in writing,
  software distributed under the License is distributed on an
  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
  KIND, either express or implied.  See the License for the
  specific language governing permissions and limitations
  under the License.
-->

<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 supplies build config only; nothing on the site references its
       version. Keep it on the newest 3.x: the 4.x parent enforces Java 17,
       while maven-site-plugin 3.4 below needs Java 11 to run. -->
  <parent>
    <groupId>org.apache.tika</groupId>
    <artifactId>tika-parent</artifactId>
    <version>3.3.3</version>
  </parent>

  <artifactId>tika-site</artifactId>
  <version>site</version>
  <packaging>pom</packaging>
  <name>Apache Tika</name>
  <url>http://tika.apache.org/</url>

  <properties>
    <!-- Versions advertised on the Download page. Bump these at release time
         independently of <parent>/<version> above, which only supplies build
         config. Two supported tracks: 4.x is current, 3.x is maintenance. -->
    <tika.stable.version>4.2.0</tika.stable.version>
    <tika.maintenance.version>3.3.3</tika.maintenance.version>
    <!-- tika-site is docs-only; no Java sources to check. The inherited
         tika-parent checkstyle config points at a relative path that doesn't
         resolve from this project's tree. -->
    <checkstyle.skip>true</checkstyle.skip>
  </properties>

  <scm>
    <connection>
      scm:git:https://github.com/apache/tika/
    </connection>
    <developerConnection>
      scm:git:https://gitbox.apache.org/repos/asf/tika.git
    </developerConnection>
    <url>https://github.com/apache/tika/</url>
  </scm>

  <reporting>
    <plugins>
      <plugin>
        <artifactId>maven-project-info-reports-plugin</artifactId>
        <version>2.7</version>
        <reportSets>
          <reportSet>
            <reports>
              <report>index</report>
              <report>project-team</report>
              <report>issue-tracking</report>
              <report>license</report>
              <report>scm</report>
            </reports>
          </reportSet>
        </reportSets>
        <configuration>
          <dependencyDetailsEnabled>false</dependencyDetailsEnabled>
          <dependencyLocationsEnabled>false</dependencyLocationsEnabled>
        </configuration> 
      </plugin>
    </plugins>
  </reporting>

  <build>
    <plugins>
      <plugin>
        <groupId>com.diffplug.spotless</groupId>
        <artifactId>spotless-maven-plugin</artifactId>
        <configuration>
          <skip>true</skip>
        </configuration>
      </plugin>
      <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-site-plugin</artifactId>
        <version>3.4</version>
        <configuration>
          <templateDirectory>src/site</templateDirectory>
          <template>site.vm</template>
          <inputEncoding>UTF-8</inputEncoding>
          <outputEncoding>UTF-8</outputEncoding>
        </configuration>
        <dependencies>
           <dependency>
              <groupId>org.tinyjee.dim</groupId>
              <artifactId>doxia-include-macro</artifactId>
              <version>1.1</version>
           </dependency>
        </dependencies> 
        <executions>
          <execution>
            <phase>install</phase>
            <goals>
              <goal>site</goal>
            </goals>
          </execution>
        </executions>
      </plugin>
      <plugin>
        <artifactId>maven-antrun-plugin</artifactId>
        <executions>
          <execution>
            <phase>install</phase>
            <goals>
              <goal>run</goal>
            </goals>
            <configuration>
              <target>
                <fixcrlf srcDir="target/site" excludes="images/**,*.png,*.jpg,*.gif"/>
                <replaceregexp match="Generated by Apache Maven Doxia at \S+ \d+, \d+"
                               replace="Generated by Apache Maven Doxia">
                  <fileset dir="target/site" includes="**/*.html"/>
                </replaceregexp>
                <replaceregexp match="\s+&lt;meta name=&quot;Date-Revision-yyyymmdd&quot; content=&quot;\d+&quot; /&gt;"
                               replace="">
                  <fileset dir="target/site" includes="**/*.html"/>
                </replaceregexp>
                <copy todir="publish" overwrite="true">
                  <fileset dir="target/site"/>
                </copy>
                <exec executable="svn">
                  <arg value="add"/>
                  <arg value="--force"/>
                  <arg value="publish"/>
                </exec>
              </target>
            </configuration>
          </execution>
        </executions>
        <dependencies>
          <dependency>
            <groupId>org.apache.ant</groupId>
            <artifactId>ant-nodeps</artifactId>
            <version>1.8.1</version>
          </dependency>
        </dependencies>
      </plugin>
    </plugins>
  </build>

</project>
