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

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

LearnLib 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 LearnLib; 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>de.learnlib</groupId>
	<artifactId>learnlib-parent</artifactId>
	<version>0.9.1</version>
	<packaging>pom</packaging>
	<name>LearnLib</name>
	<url>http://learnlib.github.io/learnlib/maven-site/</url>
	<description>A framework for active automata learning and experimentation</description>

	<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/LearnLib/learnlib/issues</url>
		<system>GitHub Issues</system>
	</issueManagement>

	<developers>
		<developer>
			<id>falkhowar</id>
			<name>Falk Howar</name>
			<email>falk.howar@gmail.com</email>
		</developer>
		<developer>
			<id>misberner</id>
			<name>Malte Isberner</name>
			<email>malte.isberner@gmail.com</email>
		</developer>
		<developer>
			<id>stovocor</id>
			<name>Stephan Windmüller</name>
			<email>stephan.windmueller@tu-dortmund.de</email>
		</developer>
		<developer>
			<id>merten</id>
			<name>Maik Merten</name>
			<email>maikmerten@googlemail.com</email>
		</developer>
		<developer>
			<id>oliverbauer8</id>
			<name>Oliver Bauer</name>
			<email>oliver.bauer@tu-dortmund.de</email>
		</developer>
	</developers>

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


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

	<!--	
	================================= MODULES ===================================	
	-->
	<modules>
		<module>test-support</module>
		<module>build-tools</module>
		<module>core</module>
		<module>algorithms</module>
		<module>eqtests</module>
		<module>simulator</module>
		<module>utils</module>
		<module>filters</module>
		<module>examples</module>
		<module>archetypes</module>
	</modules>

	<!--	
	================================= PROPERTIES ================================
	-->
	<properties>
		<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
		<!--
			dependency versions
		-->
		<automatalib.version>0.3.1</automatalib.version>
		<testng.version>6.8</testng.version>
		<javadoc-plugin.version>2.9</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.14.1</surefire-plugin.version>
		<assembly-plugin.version>2.4</assembly-plugin.version>
		<resources-plugin.version>2.6</resources-plugin.version>
		<release-plugin.version>2.2</release-plugin.version> <!-- overrides OSS parent! -->
		<trove4j.version>3.0.3</trove4j.version>
		
		<!-- Javadoc links -->
		<java7.apidocs>http://docs.oracle.com/javase/7/docs/api/</java7.apidocs>
		<automatalib.apidocs>http://misberner.github.io/automatalib/maven-site/apidocs/</automatalib.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>
						<meminitial>128m</meminitial>
						<maxmem>512m</maxmem>
						<source>1.7</source>
						<target>1.7</target>
					</configuration>
				</plugin>
				<plugin>
					<groupId>org.apache.maven.plugins</groupId>
					<artifactId>maven-javadoc-plugin</artifactId>
					<version>${javadoc-plugin.version}</version>
					<configuration>
						<maxmemory>512</maxmemory>
						<quiet>false</quiet>
						<source>1.7</source>
						<verbose>true</verbose>
						<linksource>true</linksource>
						<links>
							<link>${java7.apidocs}</link>
							<link>${automatalib.apidocs}</link>
						</links>
					</configuration>
				</plugin>
				<plugin>
					<groupId>org.apache.maven.plugins</groupId>
					<artifactId>maven-checkstyle-plugin</artifactId>
					<version>${checkstyle-plugin.version}</version>
					<configuration>
						<configLocation>config/sun_checks.xml</configLocation>
						<headerLocation>license-header.txt</headerLocation>
						<suppressionsLocation>checkstyle-suppressions.xml</suppressionsLocation>
					</configuration>
					<dependencies>
						<dependency>
							<groupId>${project.groupId}</groupId>
							<artifactId>learnlib-build-tools</artifactId>
							<version>${project.version}</version>
						</dependency>
					</dependencies>
				</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>
					</executions>
				</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>
					<!-- <version>${release-plugin.version}</version> -->
					<configuration>
						<!-- False to allow rebasing in case of errors -->
						<pushChanges>false</pushChanges>
						<!-- Automatically use the parent version for all submodules, do not prompt for each one -->
						<autoVersionSubmodules>true</autoVersionSubmodules>
						<!-- Use prefix learnlib, not learnlib-parent -->
						<!-- <tagNameFormat>learnlib-@{project.version}</tagNameFormat> -->
						<preparationGoals>clean install</preparationGoals>
					</configuration>
				</plugin>
			</plugins>
		</pluginManagement>
	</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>
					<maxmemory>512</maxmemory>
					<quiet>false</quiet>
					<source>1.7</source>
					<verbose>true</verbose>
					<linksource>true</linksource>
					<links>
						<link>${java7.apidocs}</link>
						<link>${automatalib.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>
						<configuration>
							<suiteXmlFiles>
								<suiteXmlFile>target/nb-private/testng-suite.xml</suiteXmlFile>
							</suiteXmlFiles>
						</configuration>
					</plugin>
				</plugins>
			</build>
		</profile>
		<profile>
			<id>binary-release</id>
			<build>
				<plugins>
					<!--  aggregate javadoc of modules in one jar -->
					<plugin>
						<groupId>org.apache.maven.plugins</groupId>
						<artifactId>maven-javadoc-plugin</artifactId>
						<inherited>false</inherited>
						<configuration>
							<finalName>learnlib-${project.version}</finalName>
						</configuration>
						<executions>
							<execution>
								<id>aggregate</id>
								<goals>
									<goal>aggregate-jar</goal>
								</goals>
								<phase>site</phase>
							</execution>
						</executions>
					</plugin>
					<!-- 
                        build assemblies
                    -->
					<plugin>
						<artifactId>maven-assembly-plugin</artifactId>
						<inherited>false</inherited>
						<configuration>
							<finalName>learnlib-${project.version}</finalName>
							<appendAssemblyId>false</appendAssemblyId>
						</configuration>
						<executions>
							<!--  sources jar -->
							<execution>
								<id>src</id>
								<phase>package</phase>
								<goals>
									<goal>single</goal>
								</goals>
								<configuration>
									<descriptors>
										<descriptor>src/main/assembly/learnlib-srcjar.xml</descriptor>
									</descriptors>
									<finalName>learnlib-${project.version}-sources</finalName>
								</configuration>
							</execution>
							<!-- 
                                binary jar
                            -->
							<execution>
								<id>jar</id>
								<phase>package</phase>
								<goals>
									<goal>single</goal>
								</goals>
								<configuration>
									<descriptors>
										<descriptor>src/main/assembly/learnlib-jar.xml</descriptor>
									</descriptors>
								</configuration>
							</execution>
							<!-- 
                                bin
                            -->
							<execution>
								<id>bin</id>
								<phase>package</phase>
								<goals>
									<goal>single</goal>
								</goals>
								<configuration>
									<descriptors>
										<descriptor>src/main/assembly/learnlib-bin.xml</descriptor>
									</descriptors>
								</configuration>
							</execution>
						</executions>
					</plugin>
				</plugins>
			</build>
		</profile>
	</profiles>

	<!--	
	===============================	DEFAULT DEP. VERSIONS =======================	
	-->
	<dependencyManagement>
		<dependencies>
			<dependency>
				<groupId>de.learnlib</groupId>
				<artifactId>learnlib-test-support</artifactId>
				<version>${project.version}</version>
				<scope>test</scope>
			</dependency>
			<dependency>
				<groupId>de.learnlib</groupId>
				<artifactId>learnlib-core</artifactId>
				<version>${project.version}</version>
			</dependency>
			<dependency>
				<groupId>de.learnlib</groupId>
				<artifactId>learnlib-lstar-baseline</artifactId>
				<version>${project.version}</version>
			</dependency>
			<dependency>
				<groupId>de.learnlib</groupId>
				<artifactId>learnlib-lstar-generic</artifactId>
				<version>${project.version}</version>
			</dependency>
			<dependency>
				<groupId>de.learnlib</groupId>
				<artifactId>learnlib-dhc</artifactId>
				<version>${project.version}</version>
			</dependency>
			<dependency>
				<groupId>de.learnlib</groupId>
				<artifactId>learnlib-basic-eqtests</artifactId>
				<version>${project.version}</version>
			</dependency>
			<dependency>
				<groupId>de.learnlib</groupId>
				<artifactId>learnlib-simulator</artifactId>
				<version>${project.version}</version>
			</dependency>
			<dependency>
				<groupId>de.learnlib</groupId>
				<artifactId>learnlib-counterexamples</artifactId>
				<version>${project.version}</version>
			</dependency>
			<dependency>
				<groupId>de.learnlib</groupId>
				<artifactId>learnlib-cache</artifactId>
				<version>${project.version}</version>
			</dependency>
			<dependency>
				<groupId>de.learnlib</groupId>
				<artifactId>learnlib-parallelism</artifactId>
				<version>${project.version}</version>
			</dependency>

			<!-- Import AutomataLib dependencies -->
			<dependency>
				<groupId>net.automatalib</groupId>
				<artifactId>automata-parent</artifactId>
				<version>${automatalib.version}</version>
				<type>pom</type>
				<scope>import</scope>
			</dependency>

			<!-- TestNG -->
			<dependency>
				<groupId>org.testng</groupId>
				<artifactId>testng</artifactId>
				<version>${testng.version}</version>
				<scope>test</scope>
			</dependency>


			<!-- GNU Trove -->
			<dependency>
				<groupId>net.sf.trove4j</groupId>
				<artifactId>trove4j</artifactId>
				<version>${trove4j.version}</version>
			</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}/learnlib-site</url>
		</site>
	</distributionManagement>
</project>
