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

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

    http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<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.6.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>Apache License, Version 2.0</name>
			<url>http://www.apache.org/licenses/LICENSE-2.0.txt</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>
	  <tag>automatalib-0.6.0</tag>
  </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>visualization</module>
		<module>serialization</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.10.1</javadoc-plugin.version>
		<compiler-plugin.version>3.1</compiler-plugin.version>
		<release-plugin.version>2.5.1</release-plugin.version>
		<checkstyle-plugin.version>2.10</checkstyle-plugin.version>
		<site-plugin.version>3.4</site-plugin.version>
		<reports-plugin.version>2.8</reports-plugin.version>
		<surefire-plugin.version>2.18.1</surefire-plugin.version>
		<assembly-plugin.version>2.5.3</assembly-plugin.version>
		<exec-plugin.version>1.3.2</exec-plugin.version>
		<deploy-plugin.version>2.8.2</deploy-plugin.version>
		<javacc-plugin.version>2.6</javacc-plugin.version>
		<deploy-site-github.exec>deploy-site-github</deploy-site-github.exec>

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

		<guava.version>18.0</guava.version>
		<findbugs.version>2.0.3</findbugs.version>
		
		<jung.version>2.0.1</jung.version>

		<duzzt.version>0.0.2</duzzt.version>
		<metainf-services.version>1.5</metainf-services.version>

		<!-- Javadoc links -->
		<brics-automaton.apidocs>http://www.brics.dk/automaton/doc</brics-automaton.apidocs>
		<java8.apidocs>http://docs.oracle.com/javase/8/docs/api/</java8.apidocs>
		<guava.apidocs>http://docs.guava-libraries.googlecode.com/git-history/v${guava.version}/javadoc/</guava.apidocs>
		<jung.apidocs>http://jung.sourceforge.net/doc/api/</jung.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.8</source>
						<target>1.8</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.codehaus.mojo</groupId>
					<artifactId>javacc-maven-plugin</artifactId>
					<version>${javacc-plugin.version}</version>
					<executions>
						<execution>
							<id>javacc</id>
							<goals>
								<goal>javacc</goal>
							</goals>
						</execution>
					</executions>
				</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>
					<version>${release-plugin.version}</version>
					<configuration>
						<arguments>-Psonatype-oss-release -Dautomatalib.release=true -Dmaven.javadoc.failOnError=false</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>
						<tagNameFormat>automatalib-@{version}</tagNameFormat>
					</configuration>
				</plugin>
				<plugin>
					<groupId>org.apache.maven.plugins</groupId>
					<artifactId>maven-javadoc-plugin</artifactId>
					<version>${javadoc-plugin.version}</version>
					<configuration>
						<quiet>false</quiet>
						<source>1.8</source>
						<verbose>true</verbose>
						<detectLinks>true</detectLinks>
						<linksource>false</linksource>
						<failOnError>false</failOnError>
						<links>
							<link>${java8.apidocs}</link>
							<link>${guava.apidocs}</link>
							<link>${brics-automaton.apidocs}</link>
							<link>${jung.apidocs}</link>
						</links>
					</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.8</source>
					<verbose>true</verbose>
					<detectLinks>true</detectLinks>
					<linksource>false</linksource>
					<failOnError>false</failOnError>
					<links>
						<link>${java8.apidocs}</link>
						<link>${guava.apidocs}</link>
						<link>${brics-automaton.apidocs}</link>
						<link>${jung.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 -->
					<!-- Moved to distribution -->
					<!--
					<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>net.automatalib</groupId>
				<artifactId>automata-jung-visualizer</artifactId>
				<version>${project.version}</version>
			</dependency>
			<dependency>
				<groupId>net.automatalib</groupId>
				<artifactId>automata-serialization-core</artifactId>
				<version>${project.version}</version>
			</dependency>
			<dependency>
				<groupId>net.automatalib</groupId>
				<artifactId>automata-serialization-saf</artifactId>
				<version>${project.version}</version>
			</dependency>
			<dependency>
				<groupId>net.automatalib</groupId>
				<artifactId>automata-serialization-learnlibv2</artifactId>
				<version>${project.version}</version>
			</dependency>
			<dependency>
				<groupId>net.automatalib</groupId>
				<artifactId>automata-serialization-taf</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>
			
			<!-- JUNG dependencies -->
			<dependency>
            	<groupId>net.sf.jung</groupId>
            	<artifactId>jung-api</artifactId>
            	<version>${jung.version}</version>
        	</dependency>
        	<dependency>
	            <groupId>net.sf.jung</groupId>
	            <artifactId>jung-algorithms</artifactId>
            	<version>${jung.version}</version>
        	</dependency>
        	<dependency>
	            <groupId>net.sf.jung</groupId>
	            <artifactId>jung-io</artifactId>
	            <version>${jung.version}</version>
        	</dependency>
        	<dependency>
	            <groupId>net.sf.jung</groupId>
	            <artifactId>jung-graph-impl</artifactId>
	            <version>${jung.version}</version>
        	</dependency>
        	<dependency>
	            <groupId>net.sf.jung</groupId>
	            <artifactId>jung-visualization</artifactId>
	            <version>${jung.version}</version>
        	</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.kohsuke.metainf-services</groupId>
				<artifactId>metainf-services</artifactId>
				<version>${metainf-services.version}</version>
				<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>


