<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>

	<groupId>com.ganteater</groupId>
	<artifactId>anteater</artifactId>
	<version>1.2.2</version>
	<packaging>pom</packaging>

	<name>Anteater</name>
	<description>The parent project for all anteater modules.</description>
	<url>https://ganteater.com</url>

	<properties>
		<scm-path>/</scm-path>

		<javaVersion>1.8</javaVersion>
		<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
		<plugins-class-path><![CDATA[plugins/web-ae-plugin.jar plugins/python-ae-plugin.jar plugins/sql-ae-plugin.jar plugins/jms-ae-plugin.jar plugins/aws-ae-plugin.jar]]></plugins-class-path>

		<scm-root>https://svn.code.sf.net/p/anteater/code/</scm-root>
		<scm-web>https://sourceforge.net/p/anteater/code/HEAD/tree/</scm-web>
		<scm-branch>trunk</scm-branch>
	</properties>

	<modules>
		<module>anteater-cli</module>
		<module>anteater-desktop</module>
		<module>anteater-web</module>
		<module>ae-maven-plugin</module>
		<module>plugins</module>
	</modules>

	<profiles>
		<profile>
			<id>release</id>
			<build>
				<plugins>
					<plugin>
						<groupId>org.apache.maven.plugins</groupId>
						<artifactId>maven-source-plugin</artifactId>
						<version>2.2.1</version>
						<executions>
							<execution>
								<id>attach-sources</id>
								<goals>
									<goal>jar-no-fork</goal>
								</goals>
							</execution>
						</executions>
					</plugin>
					<plugin>
						<groupId>org.apache.maven.plugins</groupId>
						<artifactId>maven-javadoc-plugin</artifactId>
						<version>3.11.2</version>
						<configuration>
							<doclint>all,-missing</doclint>
						</configuration>
						<executions>
							<execution>
								<id>attach-javadocs</id>
								<goals>
									<goal>jar</goal>
								</goals>
							</execution>
						</executions>
					</plugin>
					<plugin>
						<groupId>org.apache.maven.plugins</groupId>
						<artifactId>maven-gpg-plugin</artifactId>
						<version>1.5</version>
						<executions>
							<execution>
								<id>sign-artifacts</id>
								<phase>verify</phase>
								<goals>
									<goal>sign</goal>
								</goals>
							</execution>
						</executions>
					</plugin>
				</plugins>
			</build>
			<distributionManagement>
				<repository>
					<id>ossrh</id>
					<url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url>
				</repository>
			</distributionManagement>
		</profile>
		<profile>
			<id>pack</id>
			<build>
				<pluginManagement>
					<plugins>
						<plugin>
							<artifactId>maven-assembly-plugin</artifactId>
							<executions>
								<execution>
									<id>build-artifact</id>
									<phase>install</phase>
									<goals>
										<goal>single</goal>
									</goals>
									<configuration>
										<appendAssemblyId>false</appendAssemblyId>
										<archive>
											<manifestEntries>
												<Class-Path>${plugins-class-path}</Class-Path>
											</manifestEntries>
										</archive>
										<descriptorRefs>
											<descriptorRef>jar-with-dependencies</descriptorRef>
										</descriptorRefs>
									</configuration>
								</execution>
								<execution>
									<id>delivery-pack</id>
									<phase>install</phase>
									<goals>
										<goal>single</goal>
									</goals>
									<configuration>
										<outputDirectory>${env.PACK_DIR}</outputDirectory>
										<appendAssemblyId>false</appendAssemblyId>
										<descriptors>
											<descriptor>src/assembly/assembly.xml</descriptor>
										</descriptors>
									</configuration>
								</execution>
							</executions>
						</plugin>
					</plugins>
				</pluginManagement>
			</build>
		</profile>
	</profiles>

	<dependencies>
		<dependency>
			<groupId>junit</groupId>
			<artifactId>junit</artifactId>
			<version>4.12</version>
			<scope>test</scope>
		</dependency>
	</dependencies>

	<build>
		<pluginManagement>
			<plugins>
				<plugin>
					<groupId>org.apache.maven.plugins</groupId>
					<artifactId>maven-compiler-plugin</artifactId>
					<version>3.1</version>
					<configuration>
						<source>${javaVersion}</source>
						<target>${javaVersion}</target>
					</configuration>
				</plugin>
				<plugin>
					<artifactId>maven-assembly-plugin</artifactId>
					<version>3.7.1</version>
					<executions>
						<execution>
							<id>make-assembly</id>
							<phase>deploy</phase>
							<goals>
								<goal>single</goal>
							</goals>
						</execution>
					</executions>
				</plugin>
				<plugin>
					<groupId>org.simplify4u.plugins</groupId>
					<artifactId>sitemapxml-maven-plugin</artifactId>
					<version>2.2.0</version>
				</plugin>
				<plugin>
					<groupId>com.ganteater</groupId>
					<artifactId>ae-maven-plugin</artifactId>
					<version>${project.version}</version>
					<configuration>
						<basedir>src/manual-test/ae</basedir>
					</configuration>
				</plugin>
			</plugins>
		</pluginManagement>

		<plugins>
			<plugin>
				<groupId>org.apache.maven.plugins</groupId>
				<artifactId>maven-surefire-plugin</artifactId>
				<version>3.0.0-M4</version>
				<configuration>
					<excludes>
						<exclude>**/*ManualTest.java</exclude>
					</excludes>
				</configuration>
			</plugin>
			<plugin>
				<groupId>org.sonatype.central</groupId>
				<artifactId>central-publishing-maven-plugin</artifactId>
				<version>0.7.0</version>
				<extensions>true</extensions>
				<configuration>
					<publishingServerId>central</publishingServerId>
				</configuration>
			</plugin>
			<plugin>
				<groupId>org.apache.maven.plugins</groupId>
				<artifactId>maven-javadoc-plugin</artifactId>
				<version>3.11.2</version>
				<configuration>
					<show>package</show>
				</configuration>
			</plugin>
			<plugin>
				<groupId>com.github.funthomas424242</groupId>
				<artifactId>plantuml-maven-plugin</artifactId>
				<version>1.5.2</version>
				<configuration>
					<sourceFiles>
						<directory>${basedir}</directory>
						<includes>
							<include>src/site/puml/**/*.*</include>
							<include>target/generated-docs/puml/*.*</include>
						</includes>
					</sourceFiles>
					<outputDirectory>target/site/images</outputDirectory>
				</configuration>
				<executions>
					<execution>
						<id>plantuml-generate</id>
						<phase>site</phase>
						<goals>
							<goal>generate</goal>
						</goals>
					</execution>
				</executions>
				<dependencies>
					<dependency>
						<groupId>net.sourceforge.plantuml</groupId>
						<artifactId>plantuml</artifactId>
						<version>1.2022.7</version>
					</dependency>
				</dependencies>
			</plugin>

			<plugin>
				<groupId>org.apache.maven.plugins</groupId>
				<artifactId>maven-site-plugin</artifactId>
				<version>3.21.0</version>
			</plugin>
			<plugin>
				<groupId>org.simplify4u.plugins</groupId>
				<artifactId>sitemapxml-maven-plugin</artifactId>
				<executions>
					<execution>
						<goals>
							<goal>gen</goal>
						</goals>
					</execution>
				</executions>
			</plugin>
		</plugins>
	</build>

	<reporting>
		<plugins>
			<plugin>
				<groupId>org.apache.maven.plugins</groupId>
				<artifactId>maven-javadoc-plugin</artifactId>
				<configuration>
					<show>package</show>
					<detectLinks>true</detectLinks>
					<detectOfflineLinks>true</detectOfflineLinks>
					<linksource>true</linksource>
					<docfilessubdirs>true</docfilessubdirs>
					<useStandardDocletOptions>true</useStandardDocletOptions>
					<bottom><![CDATA[&copy;2004-2025 Viktor Tovstyi. All Rights Reserved.]]></bottom>
					<header><![CDATA[<h1><a href="${project.url}">${project.name}<a></h1>]]></header>
				</configuration>
			</plugin>
		</plugins>
	</reporting>

	<licenses>
		<license>
			<name>Apache License, Version 2.0</name>
			<url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
			<distribution>repo</distribution>
		</license>
	</licenses>

	<distributionManagement>
		<site>
			<id>ganteater.com</id>
			<url>scp://ganteater.com/@anteater</url>
		</site>
	</distributionManagement>

	<scm>
		<connection>scm:svn:${scm-root}${scm-branch}${scm-path}</connection>
		<developerConnection>scm:svn:${scm-root}${scm-branch}${scm-path}</developerConnection>
		<url>${scm-web}${scm-branch}${scm-path}</url>
	</scm>

	<developers>
		<developer>
			<name>Viktor Tovstyi</name>
			<email>viktor.tovstyi@gmail.com</email>
		</developer>
	</developers>

</project>