<?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/xsd/maven-4.0.0.xsd">

	<modelVersion>4.0.0</modelVersion>
	<name>${component.name}</name>
	<groupId>de.tesis.dynaware</groupId>
	<artifactId>de.tesis.dynaware.grapheditor</artifactId>
	<version>1.3.1</version>
	<packaging>pom</packaging>

	<description>A library for creating and editing graph-like diagrams in JavaFX</description>
	<url>https://github.com/tesis-dynaware/graph-editor</url>

	<organization>
		<name>TESIS DYNAware</name>
		<url>http://www.tesis-dynaware.com</url>
	</organization>

	<licenses>
		<license>
			<name>Eclipse Public License - v 1.0</name>
			<url>https://www.eclipse.org/legal/epl-v10.html</url>
		</license>
	</licenses>
	
	<developers>
		<developer>
			<name>Robert Fisher</name>
			<email>rfisher@tesis.de</email>
			<organization>TESIS Dynaware GmbH</organization>
			<organizationUrl>http://www.tesis-dynaware.com</organizationUrl>
		</developer>
	 </developers>
	 
	<scm>
		<connection>scm:git:git@github.com:tesis-dynaware/graph-editor.git</connection>
		<developerConnection>scm:git:git@github.com:tesis-dynaware/graph-editor.git</developerConnection>
		<url>git@github.com:tesis-dynaware/graph-editor.git</url>
	</scm>

	<properties>
		<component.name>Graph Editor</component.name>
		<manifest.bundle.version>1.3.1-${maven.build.timestamp}</manifest.bundle.version>
		<maven.build.timestamp.format>yyyymmddhhmm</maven.build.timestamp.format>
		<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
		<compiler.version>1.8</compiler.version>
		<maven.compiler.plugin.version>3.1</maven.compiler.plugin.version>
		<maven.surefire.plugin.version>2.17</maven.surefire.plugin.version>
		<maven.bundle.plugin.version>2.4.0</maven.bundle.plugin.version>
		<maven.jar.plugin.version>2.4</maven.jar.plugin.version>
		<maven.dependency.plugin.version>2.8</maven.dependency.plugin.version>
		<maven.source.plugin.version>2.0.4</maven.source.plugin.version>
		<maven.javadoc.plugin.version>2.3</maven.javadoc.plugin.version>
		<org.eclipse.emf.ecore.version>2.9.2-v20131212-0545</org.eclipse.emf.ecore.version>
		<org.eclipse.emf.common.version>2.9.2-v20131212-0545</org.eclipse.emf.common.version>
		<org.eclipse.emf.ecore.xmi.version>2.9.1-v20131212-0545</org.eclipse.emf.ecore.xmi.version>
		<org.eclipse.emf.edit.version>2.3.0-v200706262000</org.eclipse.emf.edit.version>
		<junit.version>4.11</junit.version>
		<mockito.version>1.9.5</mockito.version>
		<org.slf4j.version>1.7.5</org.slf4j.version>
		<ch.qos.logback.version>1.0.13</ch.qos.logback.version>
	</properties>

	<modules>
		<module>api</module>
		<module>core</module>
		<module>demo</module>
		<module>model</module>
	</modules>

	<distributionManagement>
		<snapshotRepository>
			<id>ossrh</id>
			<url>https://oss.sonatype.org/content/repositories/snapshots</url>
		</snapshotRepository>
	</distributionManagement>

	<profiles>
		<profile>
			<id>release</id>
			<activation>
				<property>
					<name>signArtifacts</name>
					<value>true</value>
				</property>
			</activation>
			<build>
				<plugins>
					<plugin>
						<groupId>org.apache.maven.plugins</groupId>
						<artifactId>maven-gpg-plugin</artifactId>
						<executions>
							<execution>
								<id>sign-artifacts</id>
								<phase>verify</phase>
								<goals>
									<goal>sign</goal>
								</goals>
							</execution>
						</executions>
					</plugin>
				</plugins>
			</build>
		</profile>
	</profiles>

	<build>
		<pluginManagement>
			<plugins>
				<plugin>
					<groupId>org.apache.felix</groupId>
					<artifactId>maven-bundle-plugin</artifactId>
					<version>${maven.bundle.plugin.version}</version>
					<extensions>true</extensions>
					<configuration>
						<instructions>
							<Bundle-SymbolicName>${project.artifactId}</Bundle-SymbolicName>
							<Bundle-Name>${project.name}</Bundle-Name>
							<Bundle-Version>${manifest.bundle.version}</Bundle-Version>
							<Bundle-Vendor>${project.organization.name}</Bundle-Vendor>
							<_nouses>true</_nouses>
							<_removeheaders>
								Private-Package,
								Bnd-LastModified,
								Created-By,
								Built-By,
								Tool,
								Build-Jdk,
								Bundle-DocURL,
								Include-Resource
							</_removeheaders>
						</instructions>
					</configuration>
				</plugin>
				<plugin>
					<groupId>org.apache.maven.plugins</groupId>
					<artifactId>maven-compiler-plugin</artifactId>
					<version>${maven.compiler.plugin.version}</version>
					<configuration>
						<source>${compiler.version}</source>
						<target>${compiler.version}</target>
					</configuration>
				</plugin>
				<plugin>
					<groupId>org.apache.maven.plugins</groupId>
					<artifactId>maven-surefire-plugin</artifactId>
					<version>${maven.surefire.plugin.version}</version>
				</plugin>
			</plugins>
		</pluginManagement>
		<plugins>
			<plugin>
				<groupId>org.apache.maven.plugins</groupId>
				<artifactId>maven-source-plugin</artifactId>
				<version>${maven.source.plugin.version}</version>
				<executions>
					<execution>
						<id>attach-sources</id>
						<goals>
							<goal>jar</goal>
						</goals>
					</execution>
				</executions>
			</plugin>
			<plugin>
				<groupId>org.apache.maven.plugins</groupId>
				<artifactId>maven-javadoc-plugin</artifactId>
				<version>${maven.javadoc.plugin.version}</version>
				<executions>
					<execution>
						<id>attach-javadocs</id>
						<goals>
							<goal>jar</goal>
						</goals>
					</execution>
				</executions>
				<configuration>
					<additionalparam>-Xdoclint:none</additionalparam>
					<quiet>true</quiet>
				</configuration>
			</plugin>
			<plugin>
				<groupId>org.sonatype.plugins</groupId>
				<artifactId>nexus-staging-maven-plugin</artifactId>
				<version>1.6.3</version>
				<extensions>true</extensions>
				<configuration>
					<serverId>ossrh</serverId>
					<nexusUrl>https://oss.sonatype.org/</nexusUrl>
					<autoReleaseAfterClose>true</autoReleaseAfterClose>
				</configuration>
			</plugin>
		</plugins>
	</build>

</project>
