<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/maven-v4_0_0.xsd">

	<modelVersion>4.0.0</modelVersion>

	<groupId>org.freehep</groupId>
	<artifactId>freehep-vectorgraphics</artifactId>
	<version>2.4</version>
	<packaging>pom</packaging>

	<name>FreeHEP Vector Graphics</name>
	<description>FreeHEP Vector Graphics Library</description>
	<url>http://freehep.github.com/freehep-vectorgraphics/</url>

	<licenses>
		<license>
			<name>Apache 2</name>
			<url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
			<distribution>repo</distribution>
			<comments>A business-friendly OSS license</comments>
		</license>
		<license>
			<name>LGPL 2</name>
			<url>http://www.gnu.org/licenses/lgpl-2.1.txt</url>
			<distribution>repo</distribution>
			<comments>GNU Lesser General Public License</comments>
		</license>
	</licenses>

	<distributionManagement>
		<repository>
			<id>sonatype-nexus-staging</id>
			<name>FreeHEP Release Repository</name>
			<url>http://oss.sonatype.org/service/local/staging/deploy/maven2/</url>
		</repository>
		<snapshotRepository>
			<id>sonatype-nexus-snapshots</id>
			<name>FreeHEP Snapshot Repository</name>
			<url>http://oss.sonatype.org/content/repositories/freehep-snapshots/</url>
		</snapshotRepository>
	</distributionManagement>

	<prerequisites>
		<maven>3.0.0</maven>
	</prerequisites>

	<scm>
		<connection>scm:git:git://github.com/freehep/freehep-vectorgraphics.git</connection>
		<developerConnection>scm:git:git@github.com:freehep/freehep-vectorgraphics.git</developerConnection>
		<url>http://github.com/freehep/freehep-vectorgraphics</url>
		<tag>freehep-vectorgraphics-2.4</tag>
	</scm>

	<issueManagement>
		<system>github</system>
		<url>http://github.com/freehep/freehep-vectorgraphics/issues</url>
	</issueManagement>

	<properties>
		<github.global.server>github</github.global.server>
		<mavenVersion>3.0.0</mavenVersion>
		<freehep-io-version>2.2.2</freehep-io-version>
		<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
	</properties>

	<developers>
		<developer>
			<id>duns</id>
			<name>Mark Donszelmann</name>
			<email>Mark.Donszelmann@gmail.com</email>
			<roles>
				<role>Architect</role>
				<role>Release Manager</role>
			</roles>
			<timezone>+1</timezone>
		</developer>
		<developer>
			<id>tonyj</id>
			<name>Tony Johnson</name>
			<email>tonyj@slac.stanford.edu</email>
			<organization>SLAC - Stanford Linear Accelerator Center</organization>
			<organizationUrl>http://www.slac.stanford.edu</organizationUrl>
			<roles>
				<role>Architect</role>
			</roles>
			<timezone>-8</timezone>
		</developer>
		<developer>
			<name>Cal Loomis</name>
			<email>loomis@lal.in2p3.fr</email>
			<organization>LAL - Laboratoire de l'Accelerateur Lineaire</organization>
			<organizationUrl>http://www.lal.in2p3.fr</organizationUrl>
			<roles>
				<role>Architect</role>
			</roles>
			<timezone>+1</timezone>
		</developer>
	</developers>

	<contributors>
		<contributor>
			<name>Simon Fischer</name>
			<organization>CERN - European Organization for Nuclear Research</organization>
			<organizationUrl>http://www.cern.ch</organizationUrl>
			<roles>
				<role>Summer Student 2001</role>
			</roles>
		</contributor>
		<contributor>
			<name>Andre Bach</name>
			<organization>SLAC - Stanford Linear Accelerator Center</organization>
			<organizationUrl>http://www.slac.stanford.edu</organizationUrl>
			<roles>
				<role>Summer Student 2004</role>
			</roles>
		</contributor>
		<contributor>
			<name>Partick Hellwig</name>
			<organization>CERN - European Organization for Nuclear Research</organization>
			<organizationUrl>http://www.cern.ch</organizationUrl>
			<roles>
				<role>Summer Student 2000</role>
			</roles>
		</contributor>
		<contributor>
			<name>Sami Kama</name>
			<organization>CERN - European Organization for Nuclear Research</organization>
			<organizationUrl>http://www.cern.ch</organizationUrl>
			<roles>
				<role>Summer Student 2001</role>
			</roles>
			<timezone />
		</contributor>
		<contributor>
			<name>Ian Graham</name>
			<organizationUrl>mailto:ian@kelman.com</organizationUrl>
		</contributor>
		<contributor>
			<name>Carsten Zerbst</name>
			<organizationUrl>mailto:carsten.zerbst@atlantec-es.com</organizationUrl>
		</contributor>
		<contributor>
			<name>Steffen Greiffenberg</name>
			<organization>Semture - Business Excellence Engineering</organization>
			<organizationUrl>http://www.semture.com</organizationUrl>
			<email>mailto:steffen.greiffenberg@semture.de</email>
			<timezone>+1</timezone>
		</contributor>
	</contributors>

	<build>
		<defaultGoal>install</defaultGoal>
		<pluginManagement>
			<plugins>
				<plugin>
					<groupId>org.freehep</groupId>
					<artifactId>freehep-chartable-converter-plugin</artifactId>
					<version>2.2.1</version>
				</plugin>
			</plugins>
		</pluginManagement>
		<plugins>
			<plugin>
				<artifactId>maven-compiler-plugin</artifactId>
				<version>3.1</version>
				<configuration>
					<source>1.6</source>
					<target>1.6</target>
					<optimize>true</optimize>
				</configuration>
			</plugin>
			<plugin>
				<groupId>org.apache.maven.plugins</groupId>
				<artifactId>maven-release-plugin</artifactId>
				<version>2.5</version>
				<configuration>
					<autoVersionSubmodules>true</autoVersionSubmodules>
					<preparationGoals>clean install</preparationGoals>
					<arguments>-DupdateReleaseInfo -Dvg.local=false</arguments>
					<mavenExecutorId>forked-path</mavenExecutorId>
					<goals>install</goals>					
				</configuration>
			</plugin>
			<plugin>
				<groupId>org.apache.maven.plugins</groupId>
				<artifactId>maven-site-plugin</artifactId>
				<version>3.4</version>
				<configuration>
					<skip>true</skip>
				</configuration>
			</plugin>
			<plugin>
				<artifactId>maven-assembly-plugin</artifactId>
				<version>2.4.1</version>
			</plugin>
			<plugin>
				<groupId>org.codehaus.mojo</groupId>
				<artifactId>exec-maven-plugin</artifactId>
				<version>1.2.1</version>
				<executions>
					<execution>
						<goals>
							<goal>java</goal>
						</goals>
					</execution>
				</executions>
				<configuration>
					<mainClass>org.freehep.graphicsio.test.TestApplication</mainClass>
					<keepAlive>true</keepAlive>
				</configuration>
			</plugin>
			<plugin>
				<artifactId>maven-surefire-plugin</artifactId>
				<version>2.17</version>
				<!-- <configuration> <forkMode>pertest</forkMode> <includes> <include>**/*TestSuite.java</include> 
					</includes> <excludes> <exclude>**/TestSuite.java</exclude> </excludes> </configuration> -->
			</plugin>
<!-- disabled as site is in gh-pages, and only created for apidocs
			<plugin>
				<artifactId>maven-project-info-reports-plugin</artifactId>
				<version>2.7</version>
			</plugin>
-->
<!-- no longer works, we need something else
			<plugin>
				<groupId>com.github.github</groupId>
				<artifactId>downloads-maven-plugin</artifactId>
				<version>0.6</version>
				<configuration>
					<description>${project.version} release of ${project.name}</description>
					<override>true</override>
					<includeAttached>true</includeAttached>
				</configuration>
				<executions>
					<execution>
						<goals>
							<goal>upload</goal>
						</goals>
						<phase>deploy</phase>
					</execution>
				</executions>
			</plugin>
-->
			<!-- <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-jxr-plugin</artifactId> 
				<configuration> <aggregate>true</aggregate> </configuration> </plugin> -->
			<plugin>
				<groupId>org.apache.maven.plugins</groupId>
				<artifactId>maven-javadoc-plugin</artifactId>
				<version>2.9.1</version>
				<configuration>
					<aggregate>true</aggregate>
					<overview>overview.html</overview>
					<nohelp>true</nohelp>
					<header>Vector Graphics, ${project.version}</header>
					<footer>Vector Graphics, ${project.version}</footer>
					<doctitle>Vector Graphics, ${project.version}</doctitle>
					<groups>
						<group>
							<title>VectorGraphics</title>
							<packages>org.freehep.graphics2d*:org.freehep.graphicsio:org.freehep.graphicsio.exportchooser:org.freehep.graphicsio.font*:org.freehep.graphicsio.test</packages>
						</group>
						<group>
							<title>Vector Formats</title>
							<packages>org.freehep.graphicsio.emf*:org.freehep.graphicsio.pdf*:org.freehep.graphicsio.ps*:org.freehep.graphicsio.svg*:org.freehep.graphicsio.swf*</packages>
						</group>
						<group>
							<title>Bitmap Formats</title>
							<packages>org.freehep.graphicsio.gif*:org.freehep.graphicsio.png*:org.freehep.graphicsio.ppm*:org.freehep.graphicsio.raw*</packages>
						</group>
					</groups>
				</configuration>
			</plugin>
<plugin>
    <groupId>org.apache.maven.plugins</groupId>
    <artifactId>maven-scm-publish-plugin</artifactId>
    <version>1.1</version>
    <configuration>
        <checkoutDirectory>${project.build.directory}/scmpublish</checkoutDirectory>
        <checkinComment>Publishing javadoc for ${project.artifactId}:${project.version}</checkinComment>
        <content>${project.reporting.outputDirectory}</content>
        <skipDeletedFiles>true</skipDeletedFiles>
        <pubScmUrl>scm:git:git@github.com:freehep/freehep-vectorgraphics.git</pubScmUrl>
        <scmBranch>gh-pages</scmBranch> 
<!-- 1.0 seems to ignore scmBranch and use master
        <tryUpdate>true</tryUpdate>
-->
<!-- to debug, see target/scmpublish
	<skipCheckin>true</skipCheckin>
-->
    </configuration>
</plugin>
		</plugins>
	</build>

	<dependencyManagement>
		<dependencies>
					<dependency>
						<groupId>org.freehep</groupId>
						<artifactId>freehep-io</artifactId>
						<version>${freehep-io-version}</version>
					</dependency>

			<dependency>
				<groupId>org.freehep</groupId>
				<artifactId>freehep-graphicsbase</artifactId>
				<version>${project.version}</version>
			</dependency>
			<dependency>
				<groupId>org.freehep</groupId>
				<artifactId>freehep-graphics2d</artifactId>
				<version>${project.version}</version>
			</dependency>
			<dependency>
				<groupId>org.freehep</groupId>
				<artifactId>freehep-graphicsio</artifactId>
				<version>${project.version}</version>
			</dependency>
			<dependency>
				<groupId>org.freehep</groupId>
				<artifactId>freehep-graphicsio-tests</artifactId>
				<version>${project.version}</version>
			</dependency>
			<dependency>
				<groupId>org.jdom</groupId>
				<artifactId>jdom</artifactId>
				<version>2.0.3</version>
				<!-- <version>1.1.3</version> -->
			</dependency>
			<dependency>
				<groupId>junit</groupId>
				<artifactId>junit</artifactId>
				<version>4.10</version>
				<scope>compile</scope>
			</dependency>
		</dependencies>
	</dependencyManagement>

	<modules>
		<module>freehep-graphicsbase</module>
		<module>freehep-graphics2d</module>
		<module>freehep-graphics2d-export-example</module>
		<module>freehep-graphics2d-headless-example</module>
		<module>freehep-graphicsio</module>
		<module>freehep-graphicsio-emf</module>
		<module>freehep-graphicsio-java</module>
		<module>freehep-graphicsio-pdf</module>
		<module>freehep-graphicsio-ps</module>
		<module>freehep-graphicsio-svg</module>
		<module>freehep-graphicsio-swf</module>
		<module>freehep-graphicsio-tests</module>
	</modules>

	<profiles>
		<profile>
			<id>release-sign-artifacts</id>
			<activation>
				<property>
					<name>performRelease</name>
					<value>true</value>
				</property>
			</activation>

			<build>
				<plugins>
					<plugin>
						<groupId>org.apache.maven.plugins</groupId>
						<artifactId>maven-gpg-plugin</artifactId>
						<version>1.5</version>
						<executions>
							<execution>
								<id>sign-artifacts</id>
								<phase>verify</phase>
								<goals>
									<goal>sign</goal>
								</goals>
							</execution>
						</executions>
					</plugin>
					<plugin>
						<inherited>true</inherited>
						<groupId>org.apache.maven.plugins</groupId>
						<artifactId>maven-source-plugin</artifactId>
						<version>2.3</version>
						<executions>
							<execution>
								<id>attach-sources</id>
								<goals>
									<goal>jar</goal>
								</goals>
							</execution>
						</executions>
					</plugin>
					<plugin>
						<inherited>true</inherited>
						<groupId>org.apache.maven.plugins</groupId>
						<artifactId>maven-javadoc-plugin</artifactId>
						<version>2.9.1</version>
						<executions>
							<execution>
								<id>attach-javadocs</id>
								<goals>
									<goal>jar</goal>
								</goals>
							</execution>
						</executions>
					</plugin>
					<plugin>
						<inherited>true</inherited>
						<groupId>org.apache.maven.plugins</groupId>
						<artifactId>maven-deploy-plugin</artifactId>
						<version>2.8.2</version>
						<configuration>
							<updateReleaseInfo>true</updateReleaseInfo>
						</configuration>
					</plugin>
				</plugins>
			</build>
		</profile>

	</profiles>
</project>
