<?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>
	<groupId>org.codelibs.fess</groupId>
	<artifactId>fess-parent</artifactId>
	<version>15.9.0</version>
	<packaging>pom</packaging>
	<name>Fess</name>
	<description>Fess is Full tExt Search System.</description>
	<url>https://fess.codelibs.org/</url>
	<inceptionYear>2009</inceptionYear>
	<licenses>
		<license>
			<name>The Apache Software License, Version 2.0</name>
			<url>https://www.apache.org/licenses/LICENSE-2.0.txt</url>
			<distribution>repo</distribution>
		</license>
	</licenses>
	<organization>
		<name>CodeLibs</name>
		<url>https://fess.codelibs.org/</url>
	</organization>
	<developers>
		<developer>
			<id>shinsuke</id>
			<name>Shinsuke Sugaya</name>
			<email>shinsuke.sugaya@codelibs.co</email>
			<organization>CodeLibs Inc.</organization>
			<organizationUrl>https://codelibs.co</organizationUrl>
		</developer>
	</developers>
	<scm>
		<connection>scm:git:git@github.com:codelibs/fess-parent.git</connection>
		<developerConnection>scm:git:git@github.com:codelibs/fess-parent.git</developerConnection>
		<url>https://github.com/codelibs/fess-parent</url>
	  <tag>fess-parent-15.9.0</tag>
  </scm>
	<properties>
		<fess.version>15.9.0</fess.version>

		<!-- Main Framework -->
		<dbflute.version>1.3.1</dbflute.version>
		<lastaflute.version>2.0.0</lastaflute.version>
		<lasta.di.version>2.0.0</lasta.di.version>
		<lasta.taglib.version>2.0.0</lasta.taglib.version>
		<lasta.job.version>2.0.0</lasta.job.version>
		<mailflute.version>2.0.0</mailflute.version>

		<!-- Crawler -->
		<crawler.version>15.9.0</crawler.version>

		<!-- Suggest -->
		<suggest.version>15.9.0</suggest.version>

		<!-- Fesen -->
		<fesen.httpclient.version>3.9.0</fesen.httpclient.version>

		<!-- OpenSearch -->
		<opensearch.version>3.9.0</opensearch.version>
		<opensearch.runner.version>3.9.0.0</opensearch.runner.version>

		<!-- Tomcat -->
		<tomcat.version>11.0.26</tomcat.version>
		<tomcat.boot.version>3.0.0</tomcat.boot.version>

		<!-- Partner Library -->
		<asm.version>9.10.1</asm.version>
		<bouncycastle.version>1.85.2</bouncycastle.version>
		<commonmark.version>0.30.0</commonmark.version>
		<commons.codec.version>1.22.1</commons.codec.version>
		<commons.fileupload.version>2.0.0-M5</commons.fileupload.version>
		<commons.io.version>2.22.0</commons.io.version>
		<commons.lang3.version>3.20.0</commons.lang3.version>
		<commons.net.version>3.13.0</commons.net.version>
		<commons.pool2.version>2.13.1</commons.pool2.version>
		<commons.text.version>1.15.0</commons.text.version>
		<corelib.version>0.7.2</corelib.version>
		<curl4j.version>1.3.3</curl4j.version>
		<google.cloud.storage.version>2.74.0</google.cloud.storage.version>
		<!-- 2.x, not 1.x: google-cloud-storage 2.71.0 calls
		     NetHttpTransport.Builder#setSecurityProvider, which only exists from 2.0.0. With 1.47.0
		     every GCS client throws NoSuchMethodError before its first request, because fess declares
		     google-http-client directly and the direct declaration beats the 2.2.0 the storage client
		     asks for. google-oauth-client 1.39.0 stays on 1.x by version number and is built against
		     this line: Google ships the two together. -->
		<google.http.client.version>2.2.0</google.http.client.version>
		<google.oauth.client.version>1.39.0</google.oauth.client.version>
		<guava.version>33.7.1-jre</guava.version>
		<handlebars.version>4.5.5</handlebars.version>
		<httpcomponents.core.version>4.4.16</httpcomponents.core.version>
		<httpcomponents.version>4.5.14</httpcomponents.version>
		<httpclient5.version>5.6.1</httpclient5.version>
		<icu4j.version>78.3</icu4j.version>
		<!-- Jackson 3 (groupId tools.jackson.*) is used by Fess' own code. -->
		<jackson.version>3.2.3</jackson.version>
		<!-- Jackson 2 (groupId com.fasterxml.jackson.*) still ships in the Fess war for the plugins
		     that compile against it, such as the Microsoft 365 (Graph SDK), Box and SharePoint data
		     stores, and for log4j-core's YAML configuration support. -->
		<jackson2.version>2.22.1</jackson2.version>
		<!-- Shared by both lines: Jackson 3.2.1 itself resolves annotations to 2.22. -->
		<jackson.annotations.version>2.22</jackson.annotations.version>
		<jai.imageio.version>1.4.0</jai.imageio.version>
		<jakarta.annotation.api.version>3.0.0</jakarta.annotation.api.version>
		<jakarta.mail.version>2.0.5</jakarta.mail.version>
		<jakarta.servlet.api.version>6.1.0</jakarta.servlet.api.version>
		<jakarta.transaction.api.version>2.0.1</jakarta.transaction.api.version>
		<jbig2.imageio.version>3.0.5</jbig2.imageio.version>
		<jcifs.version>3.0.4</jcifs.version>
		<jhighlight.version>2.0.0</jhighlight.version>
		<jlha.version>0.06-05</jlha.version>
		<jodconverter.version>4.4.11</jodconverter.version>
		<jakarta.jstl.api.version>3.0.2</jakarta.jstl.api.version>
		<jakarta.jstl.version>3.0.1</jakarta.jstl.version>
		<jakarta.transaction.version>2.0.1</jakarta.transaction.version>
		<kryo.version>5.6.2</kryo.version>
		<log4j.version>2.25.5</log4j.version>
		<log4j.ecs.version>1.8.0</log4j.ecs.version>
		<lucene.version>10.5.1</lucene.version>
		<nekohtml.version>3.0.4</nekohtml.version>
		<okhttp.version>5.5.0</okhttp.version>
		<pdfbox.version>3.0.8</pdfbox.version>
		<playwright.version>1.63.0</playwright.version>
		<poi.version>5.5.1</poi.version>
		<s3.version>2.55.7</s3.version>
		<sai.version>0.4.0</sai.version>
		<slf4j.version>1.7.36</slf4j.version>
		<tika.version>3.3.2</tika.version>

		<!-- Testing -->
		<utflute.version>2.5.0</utflute.version>
		<junit.version>4.13.2</junit.version>
		<junit.jupiter.version>5.14.4</junit.jupiter.version>

		<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
	</properties>
	<build>
		<extensions>
			<!-- Wagon provider for scpexe:// transport to maven.codelibs.org. This drives the
			     external ssh and scp commands rather than an embedded SSH client, so key
			     handling follows the system OpenSSH configuration: ed25519 keys, the OpenSSH
			     key file format, ssh-agent and ~/.ssh/config all work. The embedded
			     alternative, wagon-ssh, depends on com.jcraft:jsch 0.1.55, whose only key
			     types are DSA, ECDSA, RSA and PKCS8; anything else is rejected with
			     "invalid privatekey" before a connection is even attempted. -->
			<extension>
				<groupId>org.apache.maven.wagon</groupId>
				<artifactId>wagon-ssh-external</artifactId>
				<version>3.5.3</version>
			</extension>
		</extensions>
		<pluginManagement>
			<plugins>
				<plugin>
					<artifactId>maven-antrun-plugin</artifactId>
					<version>3.2.0</version>
				</plugin>
				<plugin>
					<artifactId>maven-assembly-plugin</artifactId>
					<version>3.8.0</version>
				</plugin>
				<plugin>
					<artifactId>maven-compiler-plugin</artifactId>
					<version>3.16.0</version>
					<configuration>
						<release>21</release>
						<encoding>UTF-8</encoding>
					</configuration>
				</plugin>
				<plugin>
					<artifactId>maven-dependency-plugin</artifactId>
					<version>3.11.0</version>
				</plugin>
				<plugin>
					<artifactId>maven-failsafe-plugin</artifactId>
					<!-- Stay on 3.5.6 until 3.6.1: 3.6.0 (SUREFIRE-3460) throws an NPE when the JVM Attach Listener thread prints, which breaks Mockito self-attach. -->
					<version>3.5.6</version>
				</plugin>
				<plugin>
					<artifactId>maven-javadoc-plugin</artifactId>
					<version>3.12.0</version>
					<configuration>
						<encoding>UTF-8</encoding>
						<docencoding>UTF-8</docencoding>
						<charset>UTF-8</charset>
						<locale>en_US</locale>
						<source>21</source>
						<legacyMode>true</legacyMode>
					</configuration>
					<executions>
						<execution>
							<id>attach-javadocs</id>
							<goals>
								<goal>jar</goal>
							</goals>
						</execution>
					</executions>
				</plugin>
				<plugin>
					<artifactId>maven-jar-plugin</artifactId>
					<version>3.5.1</version>
				</plugin>
				<plugin>
					<artifactId>maven-jxr-plugin</artifactId>
					<version>3.6.0</version>
				</plugin>
				<plugin>
					<artifactId>maven-resources-plugin</artifactId>
					<version>3.5.0</version>
				</plugin>
				<plugin>
					<artifactId>maven-shade-plugin</artifactId>
					<version>3.6.2</version>
				</plugin>
				<plugin>
					<artifactId>maven-source-plugin</artifactId>
					<version>3.2.1</version><!-- https://issues.apache.org/jira/browse/MSOURCES-143 -->
					<executions>
						<execution>
							<id>attach-sources</id>
							<goals>
								<goal>jar-no-fork</goal>
							</goals>
						</execution>
					</executions>
				</plugin>
				<plugin>
					<artifactId>maven-surefire-plugin</artifactId>
					<!-- Stay on 3.5.6 until 3.6.1: 3.6.0 (SUREFIRE-3460) throws an NPE when the JVM Attach Listener thread prints, which breaks Mockito self-attach. -->
					<version>3.5.6</version>
					<configuration>
						<useSystemClassLoader>false</useSystemClassLoader>
					</configuration>
				</plugin>
				<plugin>
					<groupId>org.jacoco</groupId>
					<artifactId>jacoco-maven-plugin</artifactId>
					<version>0.8.15</version>
					<executions>
						<execution>
							<goals>
								<goal>prepare-agent</goal>
							</goals>
						</execution>
						<execution>
							<id>report</id>
							<phase>prepare-package</phase>
							<goals>
								<goal>report</goal>
							</goals>
						</execution>
					</executions>
				</plugin>
				<plugin>
					<artifactId>maven-war-plugin</artifactId>
					<version>3.5.1</version>
				</plugin>
				<plugin>
					<groupId>com.mycila</groupId>
					<artifactId>license-maven-plugin</artifactId>
					<version>5.1.2</version>
					<configuration>
						<encoding>UTF-8</encoding>
						<properties>
							<year>2025</year>
						</properties>
						<headerDefinitions>
							<headerDefinition>https://www.codelibs.org/assets/license/header-definition-2.xml</headerDefinition>
						</headerDefinitions>
						<licenseSets>
							<licenseSet>
								<header>https://www.codelibs.org/assets/license/header.txt</header>
								<includes>
									<include>src/**/*.java</include>
								</includes>
							</licenseSet>
						</licenseSets>
					</configuration>
					<executions>
						<execution>
							<goals>
								<goal>check</goal>
							</goals>
						</execution>
					</executions>
				</plugin>
				<plugin>
					<groupId>net.revelc.code.formatter</groupId>
					<artifactId>formatter-maven-plugin</artifactId>
					<version>2.29.0</version>
					<executions>
						<execution>
							<goals>
								<goal>format</goal>
							</goals>
						</execution>
					</executions>
					<configuration>
						<configFile>https://www.codelibs.org/assets/formatter/eclipse-formatter-1.1.xml</configFile>
					</configuration>
				</plugin>
				<plugin>
					<groupId>org.codelibs.maven</groupId>
					<artifactId>yuicompressor-maven-plugin</artifactId>
					<version>2.0.1</version>
				</plugin>
				<plugin>
					<groupId>org.dbflute</groupId>
					<artifactId>dbflute-maven-plugin</artifactId>
					<version>1.1.0</version>
				</plugin>
				<plugin>
					<groupId>org.vafer</groupId>
					<artifactId>jdeb</artifactId>
					<version>1.14</version>
				</plugin>
				<plugin>
					<groupId>org.codehaus.mojo</groupId>
					<artifactId>rpm-maven-plugin</artifactId>
					<version>2.3.0</version>
				</plugin>
				<!-- Declared here for version and configuration only, so that the
				     inherited=false declaration in build/plugins below picks them up.
				     Declaring it in build/plugins here would make every child inherit
				     it, and its DeployLifecycleParticipant would disable
				     maven-deploy-plugin, breaking deployment to maven.codelibs.org. -->
				<plugin>
					<groupId>org.sonatype.central</groupId>
					<artifactId>central-publishing-maven-plugin</artifactId>
					<version>0.11.0</version>
					<configuration>
						<publishingServerId>central</publishingServerId>
					</configuration>
				</plugin>
			</plugins>
		</pluginManagement>
		<plugins>
			<plugin>
				<artifactId>maven-release-plugin</artifactId>
				<version>3.3.1</version>
				<configuration>
					<releaseProfiles>release</releaseProfiles>
				</configuration>
			</plugin>
			<!-- fess-parent itself publishes to Maven Central. It is the one artifact
			     in the Fess ecosystem that has to stay there: a POM can only be
			     resolved from repositories a project already knows about, and the
			     CodeLibs repositories this POM declares are not visible until this POM
			     has been read. Keeping it on Maven Central lets every child - including
			     third-party plugins - resolve the parent without extra configuration.
			     inherited=false keeps the plugin out of child projects, so they use
			     their own scp distributionManagement instead. -->
			<plugin>
				<groupId>org.sonatype.central</groupId>
				<artifactId>central-publishing-maven-plugin</artifactId>
				<extensions>true</extensions>
				<inherited>false</inherited>
			</plugin>
		</plugins>
	</build>
	<profiles>
		<profile>
			<id>release</id>
			<build>
				<plugins>
					<plugin>
						<groupId>org.apache.maven.plugins</groupId>
						<artifactId>maven-gpg-plugin</artifactId>
						<version>3.2.8</version>
						<executions>
							<execution>
								<id>sign-artifacts</id>
								<phase>verify</phase>
								<goals>
									<goal>sign</goal>
								</goals>
								<configuration>
									<bestPractices>true</bestPractices>
								</configuration>
							</execution>
						</executions>
					</plugin>
				</plugins>
			</build>
		</profile>
	</profiles>
	<!-- No distributionManagement here on purpose. It is inherited unconditionally and a
	     POM cannot exempt itself from what it declares, so declaring the CodeLibs
	     repositories here would also redirect the SNAPSHOT deployments of fess-parent
	     itself, which must stay on Maven Central: central-publishing-maven-plugin
	     resolves SNAPSHOT deployments through
	     project.getDistributionManagementArtifactRepository() and only falls back to
	     centralSnapshotsUrl when it is absent. Every child project declares the CodeLibs
	     repositories in its own POM instead. The wagon-ssh-external build extension
	     above is inherited and provides the scpexe transport they need. -->
	<pluginRepositories>
		<pluginRepository>
			<id>codelibs.org</id>
			<name>CodeLibs Repository</name>
			<url>https://maven.codelibs.org/release/</url>
		</pluginRepository>
		<pluginRepository>
			<id>codelibs.org.snapshot</id>
			<name>CodeLibs Snapshot Repository</name>
			<url>https://maven.codelibs.org/snapshot/</url>
			<releases>
				<enabled>false</enabled>
			</releases>
			<snapshots>
				<enabled>true</enabled>
			</snapshots>
		</pluginRepository>
		<pluginRepository>
			<id>central-portal-snapshots</id>
			<name>Central Portal Snapshots</name>
			<url>https://central.sonatype.com/repository/maven-snapshots/</url>
			<releases>
				<enabled>false</enabled>
			</releases>
			<snapshots>
				<enabled>true</enabled>
			</snapshots>
		</pluginRepository>
	</pluginRepositories>
	<repositories>
		<repository>
			<id>codelibs.org</id>
			<name>CodeLibs Repository</name>
			<url>https://maven.codelibs.org/release/</url>
		</repository>
		<!--
		     updatePolicy always, because these repositories are how one repository in this
		     family sees another's change. Maven's default for a snapshot is daily: a build whose
		     ~/.m2 already resolved a -SNAPSHOT earlier the same day never asks again, so a CI job
		     that caches the local repository cannot see a sibling repository's snapshot published
		     minutes ago. That is not hypothetical. A Fess pull request depending on a fess-crawler
		     change merged 10 minutes earlier failed with NoClassDefFoundError while the fixed jar
		     sat published, and the job log showed no request to this host at all.
		     Every consumer inherits this, including the plugin repositories, whose CI installs this
		     pom from source and then resolves org.codelibs.fess:fess from here. The cost is one
		     metadata request per snapshot dependency per build, and offline mode skips it. -->
		<repository>
			<id>codelibs.org.snapshot</id>
			<name>CodeLibs Snapshot Repository</name>
			<url>https://maven.codelibs.org/snapshot/</url>
			<releases>
				<enabled>false</enabled>
			</releases>
			<snapshots>
				<enabled>true</enabled>
				<updatePolicy>always</updatePolicy>
			</snapshots>
		</repository>
		<repository>
			<id>central-portal-snapshots</id>
			<name>Central Portal Snapshots</name>
			<url>https://central.sonatype.com/repository/maven-snapshots</url>
			<releases>
				<enabled>false</enabled>
			</releases>
			<snapshots>
				<enabled>true</enabled>
				<updatePolicy>always</updatePolicy>
			</snapshots>
		</repository>
	</repositories>
</project>
