<?xml version="1.0" encoding="UTF-8"?>
<!--

    Copyright 2011 The Open Source Research Group,
                   University of Erlangen-Nürnberg

    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>

	<parent>
		<groupId>de.fau.cs.osr</groupId>
		<artifactId>tooling</artifactId>
		<version>3.0.8</version>
	</parent>

	<groupId>org.sweble</groupId>
	<artifactId>sweble-parent</artifactId>
	<version>3.1.7</version>
	<packaging>pom</packaging>
	<name>Sweble Parent</name>
	<inceptionYear>2010</inceptionYear>
	<description>
		The next generation Wiki platform project.
	</description>

	<modules>
		<module>sweble-engine-parent</module>
		<module>sweble-wikitext-components-parent</module>
		<module>sweble-wom3-parent</module>
	</modules>

	<!-- =================================================================== -->
	<!-- Properties - Properties - Properties - Properties - Properties - Pr -->
	<!-- =================================================================== -->

	<properties>
		<sweble-parent.path>${project.basedir}</sweble-parent.path>
		<sweble-parent.etc-path>${sweble-parent.path}/etc</sweble-parent.etc-path>
		<tooling.etc-path>${sweble-parent.etc-path}</tooling.etc-path>

		<!-- sweble currently does not conform :( -->
		<maven-checkstyle-plugin.skip>true</maven-checkstyle-plugin.skip>

		<!-- Dependencies -->
		<osr-common.version>3.0.8</osr-common.version>
		<!-- Should be ${project.version} but that causes trouble with the release plugin -->
		<sweble.version>3.1.7</sweble.version>
	</properties>

	<!-- =================================================================== -->
	<!-- Dependency Management - Dependency Management - Dependency Manageme -->
	<!-- =================================================================== -->

	<dependencyManagement>
		<dependencies>

			<!-- =========================================================== -->
			<!-- OSR Common - OSR Common - OSR Common - OSR Common - OSR Com -->
			<!-- =========================================================== -->

			<!-- Utils -->
			<dependency>
				<groupId>de.fau.cs.osr.utils</groupId>
				<artifactId>utils</artifactId>
				<version>${osr-common.version}</version>
			</dependency>

			<!-- Utils - Testing -->
			<dependency>
				<groupId>de.fau.cs.osr.utils</groupId>
				<artifactId>utils-testing</artifactId>
				<version>${osr-common.version}</version>
			</dependency>

			<!-- Utils - GetOpt -->
			<dependency>
				<groupId>de.fau.cs.osr.utils</groupId>
				<artifactId>utils-getopt</artifactId>
				<version>${osr-common.version}</version>
			</dependency>

			<!-- Parser Toolkit - Common -->
			<dependency>
				<groupId>de.fau.cs.osr.ptk</groupId>
				<artifactId>ptk-common</artifactId>
				<version>${osr-common.version}</version>
			</dependency>

			<!-- Parser Toolkit - XPath -->
			<dependency>
				<groupId>de.fau.cs.osr.ptk</groupId>
				<artifactId>ptk-xpath</artifactId>
				<version>${osr-common.version}</version>
			</dependency>

			<!-- Parser Toolkit - XML Tools -->
			<dependency>
				<groupId>de.fau.cs.osr.ptk</groupId>
				<artifactId>ptk-xml-tools</artifactId>
				<version>${osr-common.version}</version>
			</dependency>

			<!-- Parser Toolkit - JSON Tools -->
			<dependency>
				<groupId>de.fau.cs.osr.ptk</groupId>
				<artifactId>ptk-json-tools</artifactId>
				<version>${osr-common.version}</version>
			</dependency>

			<!-- =========================================================== -->
			<!-- SWC - SWC - SWC - SWC - SWC - SWC - SWC - SWC - SWC - SWC - -->
			<!-- =========================================================== -->

			<!-- Sweble Wikitext Components - Sweble Wikitext Parser -->
			<dependency>
				<groupId>org.sweble.wikitext</groupId>
				<artifactId>swc-parser-lazy</artifactId>
				<version>${sweble.version}</version>
			</dependency>

			<!-- Sweble Wikitext Components - Engine -->
			<dependency>
				<groupId>org.sweble.wikitext</groupId>
				<artifactId>swc-engine</artifactId>
				<version>${sweble.version}</version>
			</dependency>

			<!-- Sweble Wikitext Components - Dump Reader -->
			<dependency>
				<groupId>org.sweble.wikitext</groupId>
				<artifactId>swc-dumpreader</artifactId>
				<version>${sweble.version}</version>
			</dependency>

			<!-- Sweble Wikitext Components - Article Cruncher -->
			<dependency>
				<groupId>org.sweble.wikitext</groupId>
				<artifactId>swc-article-cruncher</artifactId>
				<version>${sweble.version}</version>
			</dependency>

			<!-- =========================================================== -->
			<!-- WOM v3 - WOM v3 - WOM v3 - WOM v3 - WOM v3 - WOM v3 - WOM v -->
			<!-- =========================================================== -->

			<!-- Sweble - WOM 3.0 Core -->
			<dependency>
				<groupId>org.sweble.wom3</groupId>
				<artifactId>sweble-wom3-core</artifactId>
				<version>${sweble.version}</version>
			</dependency>

			<!-- Sweble - WOM 3.0 JSON Tools -->
			<dependency>
				<groupId>org.sweble.wom3</groupId>
				<artifactId>sweble-wom3-json-tools</artifactId>
				<version>${sweble.version}</version>
			</dependency>

			<!-- Sweble WOM 3.0 - SWC Adapter -->
			<dependency>
				<groupId>org.sweble.wom3</groupId>
				<artifactId>sweble-wom3-swc-adapter</artifactId>
				<version>${sweble.version}</version>
			</dependency>
			
			<!-- =========================================================== -->
			<!-- Engine - Engine - Engine - Engine - Engine - Engine - Engin -->
			<!-- =========================================================== -->
			
			<!-- Sweble Engine - Serialization -->
			<dependency>
				<groupId>org.sweble.engine</groupId>
				<artifactId>sweble-engine-serialization</artifactId>
				<version>${sweble.version}</version>
			</dependency>

		</dependencies>
	</dependencyManagement>

	<build>

		<!-- =============================================================== -->
		<!-- Plugin Management - Plugin Management - Plugin Management - Plu -->
		<!-- =============================================================== -->

		<pluginManagement>
			<plugins>

				<!-- Check and format license headers -->
				<plugin>
					<groupId>com.mycila</groupId>
					<artifactId>license-maven-plugin</artifactId>
					<configuration>
						<header>${sweble-parent.etc-path}/apache-license-v2-header.txt</header>
						<validHeaders>
							<validHeader>${sweble-parent.etc-path}/apache-license-v2-header-no-copyright.txt</validHeader>
						</validHeaders>
						<excludes combine.children="append">
							<exclude>etc/apache-license-v2-header-no-copyright.txt</exclude>
							<exclude>etc/agpl-v3-header.txt</exclude>
							<exclude>etc/agpl-v3-header-no-copyright.txt</exclude>
							<exclude>sweble*/**</exclude>
						</excludes>
					</configuration>
				</plugin>

			</plugins>
		</pluginManagement>
	</build>

	<!-- =================================================================== -->
	<!-- More Project Information - More Project Information - More Project  -->
	<!-- =================================================================== -->

	<licenses>
		<license>
			<name>The Apache Software License, Version 2.0</name>
			<url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
			<distribution>repo</distribution>
		</license>
	</licenses>

	<!-- =================================================================== -->
	<!-- Environment Settings - Environment Settings - Environment Settings  -->
	<!-- =================================================================== -->

	<issueManagement>
		<system>GitHub</system>
		<url>https://github.com/sweble/sweble-parent/issues</url>
	</issueManagement>

	<scm>
		<connection>scm:git://git@github.com/sweble/sweble-parent.git</connection>
		<developerConnection>scm:git://git@mojo-forge.cs.fau.de/sweble-public/sweble-parent.git</developerConnection>
		<url>https://github.com/sweble/sweble-parent</url>
		<tag>sweble-wikitext-3.1.7</tag>
	</scm>

	<!-- This is needed since SNAPSHOTs wouldn't find their parent pom otherwise -->
	<repositories>
		<repository>
			<releases>
				<enabled>true</enabled>
			</releases>
			<snapshots>
				<enabled>true</enabled>
				<updatePolicy>daily</updatePolicy>
				<checksumPolicy>warn</checksumPolicy>
			</snapshots>
			<id>osr-public-repo</id>
			<name>OSR Public Repository</name>
			<url>http://mojo-maven.cs.fau.de/content/repositories/public</url>
		</repository>
	</repositories>

	<!-- =================================================================== -->
	<!-- Profiles - Profiles - Profiles - Profiles - Profiles - Profiles - P -->
	<!-- =================================================================== -->

	<profiles>

		<!-- ==[ enable code coverage on Jenkins ]========================== -->
		<!--
			Jenkins by default defines a property BUILD_NUMBER which is used to
			enable the profile.
		-->
		<profile>
			<id>jenkins</id>
			<activation>
				<property>
					<name>env.BUILD_NUMBER</name>
				</property>
			</activation>
			<build>
				<plugins>
					<plugin>
						<groupId>org.codehaus.mojo</groupId>
						<artifactId>cobertura-maven-plugin</artifactId>
						<version>${cobertura-maven-plugin.version}</version>
						<configuration>
							<formats>
								<format>xml</format>
							</formats>
							<quiet>true</quiet>
							<aggregate>true</aggregate>
						</configuration>
						<executions>
							<execution>
								<phase>package</phase>
								<goals>
									<goal>cobertura</goal>
								</goals>
							</execution>
						</executions>
					</plugin>
				</plugins>
			</build>
		</profile>

    </profiles>
</project>
