<?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 http://maven.apache.org/maven-v4_0_0.xsd">
	<modelVersion>4.0.0</modelVersion>

	<parent>
		<groupId>tigase</groupId>
		<artifactId>tigase-projects-parent</artifactId>
		<version>1.0.1</version>
		<relativePath/>
	</parent>

	<properties>
		<maven.javadoc.skip>true</maven.javadoc.skip>

		<bundle-activator>tigase.acs.Activator</bundle-activator>
		<bundle-export-package>tigase.acs</bundle-export-package>
        <documentation_phases.all_converters>generate-resources</documentation_phases.all_converters>
	</properties>

	<artifactId>tigase-acs</artifactId>
	<version>2.3.3-SNAPSHOT</version>
	<packaging>bundle</packaging>

	<name>Tigase ACS</name>
	<description>Tigase Advanced Clustering Strategy</description>

	<url>https://projects.tigase.org/projects/goldentabby</url>

	<issueManagement>
		<system>Redmine</system>
		<url>https://projects.tigase.org/projects/goldentabby</url>
	</issueManagement>

	<developers>
		<developer>
			<name>Artur Hefczyc</name>
			<roles>
				<role>architect</role>
				<role>developer</role>
			</roles>
		</developer>
	</developers>

	<licenses>
		<license>
			<name>Tigase ACS</name>
			<url>https://projects.tigase.org/projects/goldentabby/repository/revisions/master/entry/COPYING</url>
		</license>
	</licenses>

	<scm>
		<connection>scm:git:${scm_repo_base}/goldentabby.git</connection>
		<developerConnection>scm:git:${scm_repo_base}/goldentabby.git</developerConnection>
		<url>https://tigase.tech/projects/goldentabby/repository</url>
		<tag>tigase-acs-2.2.1</tag>
  </scm>

	<organization>
		<name>Tigase</name>
		<url>http://www.tigase.com</url>
	</organization>

	<profiles>
        <profile>
            <id>dev</id>
            <properties>
                <maven.javadoc.skip>true</maven.javadoc.skip>
            </properties>
            <build>
                <plugins>
                    <plugin>
                        <groupId>com.github.wvengen</groupId>
                        <artifactId>proguard-maven-plugin</artifactId>
                        <version>2.0.8</version>
                        <executions>
                            <execution>
                                <id>Proguard ACS</id>
                                <phase>none</phase>
                            </execution>
                        </executions>
                    </plugin>
                </plugins>
            </build>
        </profile>
		<profile>
			<id>dist</id>
			<activation>
				<activeByDefault>false</activeByDefault>
				<property>
					<name>dist</name>
				</property>
			</activation>
			<properties>
				<guide_name>Tigase_ACS</guide_name>
			</properties>

			<build>	
				<plugins>
					<plugin>
						<groupId>org.asciidoctor</groupId>
						<artifactId>asciidoctor-maven-plugin</artifactId>
						<executions>
							<execution>
								<id>output-html</id>
								<phase>generate-resources</phase>
							</execution>
							<execution>
								<id>output-docbook</id>
								<phase>generate-resources</phase>
							</execution>
						</executions>
					</plugin>

					<plugin>
						<groupId>com.agilejava.docbkx</groupId>
						<artifactId>docbkx-maven-plugin</artifactId>
						<executions>
							<execution>
								<id>generate-webhelp</id>
								<phase>generate-resources</phase>
							</execution>
							<execution>
								<id>generate-pdf</id>
								<phase>generate-resources</phase>
							</execution>
							<execution>
								<id>generate-html</id>
								<phase>generate-resources</phase>
							</execution>
						</executions>
					</plugin>

					<plugin>
                        <groupId>org.apache.maven.plugins</groupId>
                        <artifactId>maven-dependency-plugin</artifactId>
                        <executions>
                            <execution>
                                <id>tigase-resources</id>
                                <phase>validate</phase>
                                <goals>
                                    <goal>unpack</goal>
                                </goals>
                                <configuration>
                                    <artifactItems>
                                        <artifactItem>
                                            <groupId>tigase</groupId>
                                            <artifactId>licence-lib</artifactId>
                                            <type>jar</type>
                                            <overWrite>false</overWrite>
                                            <outputDirectory>${project.basedir}/target/tigase/</outputDirectory>
                                            <includes>**/*.groovy</includes>
                                        </artifactItem>
                                    </artifactItems>
                                </configuration>
                            </execution>
                        </executions>
                    </plugin>
					<plugin>
						<groupId>org.apache.maven.plugins</groupId>
						<artifactId>maven-assembly-plugin</artifactId>
						<executions>
							<execution>
								<id>dist</id>
								<phase>package</phase>
							</execution>
						</executions>
					</plugin>
				</plugins>
			</build>
		</profile>
	</profiles>

	<build>
		<plugins>

			<plugin>
				<groupId>com.github.wvengen</groupId>
				<artifactId>proguard-maven-plugin</artifactId>
				<executions>
					<execution>
						<id>Proguard</id>
						<phase>package</phase>
					</execution>
				</executions>
			</plugin>

			<plugin>
				<groupId>org.apache.maven.plugins</groupId>
				<artifactId>maven-source-plugin</artifactId>
				<executions>
					<execution>
						<id>generate-jar</id>
						<phase>none</phase>
					</execution>
				</executions>
			</plugin>
		</plugins>
	</build>

	<dependencies>
		<dependency>
			<groupId>tigase</groupId>
			<artifactId>tigase-server</artifactId>
            <version>7.1.4</version>
			<scope>compile</scope>
		</dependency>
		<dependency>
			<groupId>tigase</groupId>
			<artifactId>tigase-acs-muc</artifactId>
			<version>1.2.1</version>
			<scope>runtime</scope>
		</dependency>
		<dependency>
			<groupId>tigase</groupId>
			<artifactId>tigase-acs-pubsub</artifactId>
			<version>1.2.1</version>
			<scope>runtime</scope>
		</dependency>
		<dependency>
			<groupId>tigase</groupId>
			<artifactId>licence-lib</artifactId>
			<version>1.2.1</version>
			<scope>compile</scope>
		</dependency>
	</dependencies>

	<repositories>
		<repository>
			<id>tigase</id>
			<url>http://maven-repo.tigase.org/repository/tigase</url>
		</repository>
	</repositories>
</project>
