<?xml version="1.0" encoding="UTF-8"?>
<!--
Copyright (C) 2013-2014 TU Dortmund
This file is part of AutomataLib, http://www.automatalib.net/.

AutomataLib is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License version 3.0 as published by the Free Software Foundation.

AutomataLib is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
Lesser General Public License for more details.

You should have received a copy of the GNU Lesser General Public
License along with AutomataLib; if not, see
http://www.gnu.de/documents/lgpl.en.html.
-->
<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>
	
	<!-- ================================= PROJECT INFO ============================== -->
	<groupId>net.automatalib</groupId>
	<artifactId>automata-parent</artifactId>
	<version>0.4.0</version>
	<packaging>pom</packaging>

	<name>AutomataLib</name>
	<description>
		A fully generic library for automata, graphs, and models, written in Java.
		This is the parent artifact which does not have any source code. Please refer to the
		"modules" page for more detailed documentation on the single library artifacts.
	</description>
	<url>http://misberner.github.io/automatalib/maven-site/${project.version}</url>

	<licenses>
		<license>
			<name>GNU LESSER GENERAL PUBLIC LICENSE Version 3, 29 June 2007</name>
			<url>http://www.gnu.org/licenses/lgpl-3.0-standalone.html</url>
		</license>
	</licenses>

	<issueManagement>
		<url>https://github.com/misberner/automatalib/issues</url>
		<system>GitHub Issues</system>
	</issueManagement>

	<mailingLists>
		<mailingList>
			<name>Developers List</name>
			<subscribe>automatalib-devel+subscribe@googlegroups.com</subscribe>
			<unsubscribe>automatalib-devel+unsubscribe@googlegroups.com</unsubscribe>
			<post>automatalib-devel@googlegroups.com</post>
		</mailingList>
		<mailingList>
			<name>Discussion List</name>
			<subscribe>automatalib-discussion+subscribe@googlegroups.com</subscribe>
			<unsubscribe>automatalib-discussion+unsubscribe@googlegroups.com</unsubscribe>
			<post>automatalib-discussion@googlegroups.com</post>
		</mailingList>
		<mailingList>
			<name>Q&amp;A List</name>
			<subscribe>automatalib-qa+subscribe@googlegroups.com</subscribe>
			<unsubscribe>automatalib-qa+unsubscribe@googlegroups.com</unsubscribe>
			<post>automatalib-qa@googlegroups.com</post>
		</mailingList>
	</mailingLists>

	<developers>
		<developer>
			<id>misberner</id>
			<name>Malte Isberner</name>
			<email>malte.isberner@gmail.com</email>
			<organization>TU Dortmund, Chair for Programming Systems</organization>
			<organizationUrl>http://ls5-www.cs.tu-dortmund.de/</organizationUrl>
			<roles>
				<role>Developer</role>
			</roles>
			<properties>
				<picUrl>
					http://www.gravatar.com/avatar/c44dc4164f1a9a597ec0c24425d1b89d.png
				</picUrl>
			</properties>
		</developer>
	</developers>

	<!--
	=============================== SCM =======================
	-->
	<scm>
		<connection>scm:git:git@github.com:misberner/automatalib.git</connection>
		<developerConnection>scm:git:git@github.com:misberner/automatalib.git</developerConnection>
		<url>https://github.com/misberner/automatalib/tree/develop</url>
	</scm>

	<!--
	================================= SONATYPE PARENT ==============================
	-->
	<parent>
		<groupId>org.sonatype.oss</groupId>
		<artifactId>oss-parent</artifactId>
		<version>9</version>
	</parent>

	<!--
	================================= MODULES ===================================
	-->
	<modules>
		<module>api</module>
		<module>core</module>
		<module>util</module>
		<module>commons</module>
		<module>misc</module>
		<module>adapters</module>
		<module>examples</module>
		<module>archetypes</module>
		<module>distribution</module>
	</modules>

	<!--
	================================= PROPERTIES ================================
	-->
	<properties>
		<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
		<!--
			dependency versions
		-->
		<testng.version>6.8.8</testng.version>
		<javadoc-plugin.version>2.9.1</javadoc-plugin.version>
		<compiler-plugin.version>3.1</compiler-plugin.version>
		<checkstyle-plugin.version>2.10</checkstyle-plugin.version>
		<site-plugin.version>3.3</site-plugin.version>
		<reports-plugin.version>2.7</reports-plugin.version>
		<surefire-plugin.version>2.17</surefire-plugin.version>
		<assembly-plugin.version>2.4</assembly-plugin.version>
		<exec-plugin.version>1.2.1</exec-plugin.version>
		<deploy-plugin.version>2.8.1</deploy-plugin.version>
		<deploy-site-github.exec>deploy-site-github</deploy-site-github.exec>

		<brics-automaton.version>1.11-8</brics-automaton.version>

		<guava.version>16.0.1</guava.version>
		<findbugs.version>2.0.3</findbugs.version>

		<duzzt.version>0.0.2</duzzt.version>

		<!-- Javadoc links -->
		<brics-automaton.apidocs>http://www.brics.dk/automaton/doc</brics-automaton.apidocs>
		<trove4j.apidocs>http://trove4j.sourceforge.net/javadocs/</trove4j.apidocs>
		<java7.apidocs>http://docs.oracle.com/javase/7/docs/api/</java7.apidocs>
		<guava.apidocs>http://docs.guava-libraries.googlecode.com/git-history/v${guava.version}/javadoc/</guava.apidocs>
	</properties>

	<!--
	================================= BUILD PLUGINS =============================
	-->
	<build>
		<pluginManagement>
			<plugins>
				<plugin>
					<groupId>org.apache.maven.plugins</groupId>
					<artifactId>maven-compiler-plugin</artifactId>
					<version>${compiler-plugin.version}</version>
					<configuration>
						<fork>true</fork>
						<source>1.7</source>
						<target>1.7</target>
					</configuration>
				</plugin>
				<plugin>
					<groupId>org.apache.maven.plugins</groupId>
					<artifactId>maven-deploy-plugin</artifactId>
					<version>${deploy-plugin.version}</version>
				</plugin>
				<plugin>
					<groupId>org.apache.maven.plugins</groupId>
					<artifactId>maven-site-plugin</artifactId>
					<version>${site-plugin.version}</version>
					<executions>
						<execution>
							<id>attach-descriptor</id>
							<goals>
								<goal>attach-descriptor</goal>
							</goals>
						</execution>
						<!-- Skip site creation; this will be done by deploy-site-github -->
						<execution>
							<id>default-site</id>
							<phase>site</phase>
							<configuration>
								<skip>true</skip>
							</configuration>
						</execution>
					</executions>
					<configuration>
						<skipDeploy>true</skipDeploy>
					</configuration>
				</plugin>
				<plugin>
					<groupId>org.codehaus.mojo</groupId>
					<artifactId>exec-maven-plugin</artifactId>
					<version>${exec-plugin.version}</version>
				</plugin>
				<plugin>
					<groupId>org.apache.maven.plugins</groupId>
					<artifactId>maven-surefire-plugin</artifactId>
					<version>${surefire-plugin.version}</version>
				</plugin>
				<plugin>
					<groupId>org.apache.maven.plugins</groupId>
					<artifactId>maven-assembly-plugin</artifactId>
					<version>${assembly-plugin.version}</version>
				</plugin>
				<plugin>
					<groupId>org.apache.maven.plugins</groupId>
					<artifactId>maven-release-plugin</artifactId>
					<configuration>
						<arguments>-Psonatype-oss-release -Dautomatalib.release=true</arguments>
						<!-- False to allow adjustment to branching model -->
						<pushChanges>false</pushChanges>
						<!-- Automatically use the parent version for all submodules, do not prompt for each one -->
						<autoVersionSubmodules>true</autoVersionSubmodules>
						<!-- Perform an install into the local repository, otherwise the javadoc plugin and archetype integration tests will fail -->
						<preparationGoals>clean install</preparationGoals>
					</configuration>
				</plugin>
				<!-- This gets rid of the nasty "maven-enforcer-plugin will be ignored" warning by m2e -->
				<plugin>
					<groupId>org.eclipse.m2e</groupId>
					<artifactId>lifecycle-mapping</artifactId>
					<version>1.0.0</version>
					<configuration>
						<lifecycleMappingMetadata>
							<pluginExecutions>
								<pluginExecution>
									<pluginExecutionFilter>
										<groupId>org.apache.maven.plugins</groupId>
										<artifactId>maven-enforcer-plugin</artifactId>
										<versionRange>[1.0.0,)</versionRange>
										<goals>
											<goal>enforce</goal>
										</goals>
									</pluginExecutionFilter>
									<action>
										<ignore />
									</action>
								</pluginExecution>
							</pluginExecutions>
						</lifecycleMappingMetadata>
					</configuration>
				</plugin>
			</plugins>
		</pluginManagement>
		<plugins>
			<plugin>
				<groupId>org.codehaus.mojo</groupId>
				<artifactId>exec-maven-plugin</artifactId>
				<executions>
					<!-- Deploy site @ GitHub pages -->
					<!--
						Note: In order to be able to deploy the Maven site,
						you need the script deploy-site-github to reside
						in your PATH, or manually specify the path to the
						executable script using the "deploy-site-github.exec"
						property.
						You can download the shell script from this URL:
						https://raw.github.com/misberner/shell-scripts/master/maven/deploy-site-github.sh
					-->
					<execution>
						<id>deploy-site-github</id>
						<inherited>false</inherited>
						<phase>site-deploy</phase>
						<goals>
							<goal>exec</goal>
						</goals>
						<configuration>
							<executable>${deploy-site-github.exec}</executable>
							<workingDirectory>${project.basedir}</workingDirectory>
							<arguments>
								<argument>-p</argument> <!-- Purge contents before copying -->
								<argument>-P/maven-site</argument>
								<argument>-V</argument>
								<argument>-l</argument>
							</arguments>
						</configuration>
					</execution>
				</executions>
			</plugin>
		</plugins>
	</build>

	<!--
	================================= REPORTING PLUGINS ==============================	
	-->
	<reporting>
		<plugins>
			<plugin>
				<groupId>org.apache.maven.plugins</groupId>
				<artifactId>maven-project-info-reports-plugin</artifactId>
				<version>${reports-plugin.version}</version>
				<reportSets>
					<reportSet>
						<reports>
							<report>index</report>
							<report>license</report>
							<report>project-team</report>
							<report>mailing-list</report>
							<report>issue-tracking</report>
							<report>scm</report>
							<report>dependencies</report>
							<report>dependency-info</report>
							<report>modules</report>
						</reports>
					</reportSet>
				</reportSets>
			</plugin>
			<plugin>
				<groupId>org.apache.maven.plugins</groupId>
				<artifactId>maven-javadoc-plugin</artifactId>
				<version>${javadoc-plugin.version}</version>
				<configuration>
					<quiet>false</quiet>
					<source>1.7</source>
					<verbose>true</verbose>
					<detectLinks>true</detectLinks>
					<linksource>false</linksource>
					<links>
						<link>${java7.apidocs}</link>
						<link>${trove4j.apidocs}</link>
						<link>${guava.apidocs}</link>
						<link>${brics-automaton.apidocs}</link>
					</links>
				</configuration>
				<reportSets>
					<reportSet>
						<id>non-aggregate</id>
						<reports>
							<report>javadoc</report>
						</reports>
					</reportSet>
					<reportSet>
						<id>aggregate</id>
						<inherited>false</inherited>
						<reports>
							<report>aggregate</report>
						</reports>
					</reportSet>
				</reportSets>
			</plugin>
		</plugins>
	</reporting>


	<!--
	=============================== PROFILES =======================
 	-->
	<profiles>
		<profile>
			<id>netbeans-private-testng</id>
			<activation>
				<property>
					<name>netbeans.testng.action</name>
				</property>
			</activation>
			<build>
				<plugins>
					<plugin>
						<groupId>org.apache.maven.plugins</groupId>
						<artifactId>maven-surefire-plugin</artifactId>
						<version>2.11</version>
						<configuration>
							<suiteXmlFiles>
								<suiteXmlFile>target/nb-private/testng-suite.xml</suiteXmlFile>
							</suiteXmlFiles>
						</configuration>
					</plugin>
				</plugins>
			</build>
		</profile>
		<profile>
			<id>binary-release</id>
			<activation>
				<property>
					<name>automatalib.release</name>
					<value>true</value>
				</property>
			</activation>
			<build>
				<plugins>
					<!--  aggregate javadoc of modules in one jar -->
					<plugin>
						<groupId>org.apache.maven.plugins</groupId>
						<artifactId>maven-javadoc-plugin</artifactId>
						<executions>
							<execution>
								<id>aggregate</id>
								<inherited>false</inherited>
								<goals>
									<goal>aggregate-jar</goal>
								</goals>
								<phase>prepare-package</phase>
							</execution>
						</executions>
					</plugin>
				</plugins>
			</build>
		</profile>
	</profiles>

	<!--
	=============================== DEFAULT DEP. VERSIONS =======================
	-->
	<dependencyManagement>
		<dependencies>
			<dependency>
				<groupId>net.automatalib</groupId>
				<artifactId>automata-api</artifactId>
				<version>${project.version}</version>
			</dependency>
			<dependency>
				<groupId>net.automatalib</groupId>
				<artifactId>automata-core</artifactId>
				<version>${project.version}</version>
			</dependency>
			<dependency>
				<groupId>net.automatalib</groupId>
				<artifactId>automata-util</artifactId>
				<version>${project.version}</version>
			</dependency>
			<dependency>
				<groupId>net.automatalib</groupId>
				<artifactId>automata-incremental</artifactId>
				<version>${project.version}</version>
			</dependency>
			<dependency>
				<groupId>net.automatalib</groupId>
				<artifactId>automata-misc-algorithms</artifactId>
				<version>${project.version}</version>
			</dependency>
			<dependency>
				<groupId>net.automatalib</groupId>
				<artifactId>automata-brics</artifactId>
				<version>${project.version}</version>
			</dependency>
			<dependency>
				<groupId>net.automatalib</groupId>
				<artifactId>automata-commons-util</artifactId>
				<version>${project.version}</version>
			</dependency>
			<dependency>
				<groupId>net.automatalib</groupId>
				<artifactId>automata-commons-smartcollections</artifactId>
				<version>${project.version}</version>
			</dependency>
			<dependency>
				<groupId>net.automatalib</groupId>
				<artifactId>automata-commons-dotutil</artifactId>
				<version>${project.version}</version>
			</dependency>

			<dependency>
				<groupId>dk.brics.automaton</groupId>
				<artifactId>automaton</artifactId>
				<version>${brics-automaton.version}</version>
			</dependency>
			<dependency>
				<groupId>com.google.guava</groupId>
				<artifactId>guava</artifactId>
				<version>${guava.version}</version>
			</dependency>
			<dependency>
 				<groupId>com.google.code.findbugs</groupId>
 				<artifactId>jsr305</artifactId>
				<version>${findbugs.version}</version>
				<!-- <scope>provided</scope> -->
			</dependency>

			<dependency>
				<groupId>com.github.misberner.duzzt</groupId>
				<artifactId>duzzt-processor</artifactId>
				<version>${duzzt.version}</version>
				<!-- Compile-time only -->
				<scope>provided</scope>
			</dependency>


			<dependency>
				<groupId>org.testng</groupId>
				<artifactId>testng</artifactId>
				<version>${testng.version}</version>
				<scope>test</scope>
			</dependency>
		</dependencies>
	</dependencyManagement>

	<!--
	================================= DISTRIBUTION ==============================
	-->
	<distributionManagement>
		<!-- Dummy - this will NOT actually be used, but is required for mvn site:stage -->
		<!-- Use build-tools/deploy-site.sh for site deployment on GitHub pages -->
		<site>
			<id>local</id>
			<url>file://${user.home}/automatalib-site</url>
		</site>
	</distributionManagement>
</project>

