<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>com.ganteater</groupId>
		<artifactId>anteater</artifactId>
		<version>1.2.2</version>
	</parent>
	<packaging>pom</packaging>
	<groupId>com.ganteater.plugins</groupId>
	<artifactId>ae-plugins</artifactId>
	<name>Anteater Plugins</name>
	<description>A parent Maven module for managing and building Anteater plugin projects, enabling extensibility and customization of the Anteater
		application.</description>

	<properties>
		<scm-path>/ae-plugins</scm-path>
	</properties>
	
	<profiles>
		<profile>
			<id>pack</id>
			<build>
				<pluginManagement>
					<plugins>
						<plugin>
							<groupId>com.ganteater</groupId>
							<artifactId>ae-maven-plugin</artifactId>
							<version>1.2.2</version>
							<dependencies>
								<dependency>
									<groupId>${project.groupId}</groupId>
									<artifactId>${project.artifactId}</artifactId>
									<version>${project.version}</version>
								</dependency>
							</dependencies>
						</plugin>
						<plugin>
							<artifactId>maven-assembly-plugin</artifactId>
							<executions>
								<execution>
									<id>build-artifact</id>
									<configuration>
										<outputDirectory>${env.PACK_DIR}/plugins</outputDirectory>
										<finalName>${project.artifactId}</finalName>
										<appendAssemblyId>false</appendAssemblyId>
										<descriptorRefs>
											<descriptorRef>jar-with-dependencies</descriptorRef>
										</descriptorRefs>
									</configuration>
								</execution>
								<execution>
									<id>delivery-pack</id>
									<inherited>false</inherited>
									<configuration>
										<skipAssembly>true</skipAssembly>
									</configuration>
								</execution>
							</executions>
						</plugin>
					</plugins>
				</pluginManagement>
			</build>
		</profile>
	</profiles>

	<dependencies>
		<dependency>
			<groupId>com.ganteater</groupId>
			<artifactId>anteater-desktop</artifactId>
			<version>1.2.2</version>
			<scope>provided</scope>
		</dependency>
	</dependencies>

	<build>
		<pluginManagement>
			<plugins>
				<plugin>
					<groupId>com.ganteater</groupId>
					<artifactId>ae-maven-plugin</artifactId>
					<version>1.2.2</version>
					<dependencies>
						<dependency>
							<groupId>${project.groupId}</groupId>
							<artifactId>${project.artifactId}</artifactId>
							<version>${project.version}</version>
						</dependency>
					</dependencies>
				</plugin>
			</plugins>
		</pluginManagement>
	</build>

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

</project>