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

	<groupId>net.sf.proguard</groupId>
	<artifactId>proguard-parent</artifactId>
	<version>4.8</version>
	<packaging>pom</packaging>
	<name>[${project.groupId}] ${project.artifactId}</name>
	<description>ProGuard is a free Java class file shrinker, optimizer, obfuscator, and preverifier.</description>
	<url>http://proguard.sourceforge.net/</url>
	
	<prerequisites>
		<maven>3</maven>
	</prerequisites>

	<developers>
		<developer>
			<id>lafortune</id>
			<name>Eric Lafortune</name>
			<url>http://www.graphics.cornell.edu/~eric/</url>
			<organization>Luciad</organization>
			<organizationUrl>http://www.luciad.com/</organizationUrl>
			<roles>
				<role>Project Administrator</role>
				<role>Developer</role>
			</roles>
		</developer>
	</developers>

	<licenses>
		<license>
			<name>GNU General Public License, Version 2</name>
			<url>http://www.gnu.org/licenses/gpl-2.0.txt</url>
			<distribution>repo</distribution>
		</license>
	</licenses>

	<issueManagement>
		<system>SourceForge.net Tracker</system>
		<url>http://sourceforge.net/tracker/?atid=474704&amp;group_id=54750</url>
	</issueManagement>

	<scm>
		<url>git://github.com/mcpat/proguard-maven-modules.git</url>
		<connection>scm:git:git://github.com/mcpat/proguard-maven-modules.git</connection>
	</scm>

	<properties>
		<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
	</properties>

	<build>
		<resources>
			<resource>
				<directory>src/main/resources</directory>
			</resource>
			<resource>
				<directory>src/main/java</directory>
				<includes>
					<include>**/*.html</include>
				</includes>
			</resource>
		</resources>
		
		<pluginManagement>
			<plugins>
				<plugin>
					<groupId>org.apache.maven.plugins</groupId>
					<artifactId>maven-jar-plugin</artifactId>
					<version>2.4</version>
				</plugin>
			</plugins>
		</pluginManagement>

		<plugins>
			<plugin>
				<groupId>org.apache.maven.plugins</groupId>
				<artifactId>maven-compiler-plugin</artifactId>
				<version>2.3.2</version>
				<configuration>
					<source>1.5</source>
					<target>1.5</target>
				</configuration>
			</plugin>
			<plugin>
				<groupId>org.apache.maven.plugins</groupId>
				<artifactId>maven-javadoc-plugin</artifactId>
				<version>2.8.1</version>
				<configuration>
					<links>
						<link>http://download.oracle.com/javase/1.5.0/docs/api/</link>
					</links>
					<quiet>true</quiet>
				</configuration>
				<executions>
					<execution>
						<id>attach-javadoc</id>
						<phase>package</phase>
						<goals>
							<goal>jar</goal>
						</goals>
					</execution>
				</executions>
			</plugin>
			<plugin>
				<groupId>org.apache.maven.plugins</groupId>
				<artifactId>maven-source-plugin</artifactId>
				<version>2.1.2</version>
				<executions>
					<execution>
						<id>attach-sources</id>
						<phase>package</phase>
						<goals>
							<goal>jar</goal>
						</goals>
					</execution>
				</executions>
			</plugin>

			<plugin>
				<groupId>org.apache.maven.plugins</groupId>
				<artifactId>maven-gpg-plugin</artifactId>
				<version>1.1</version>
				<executions>
					<execution>
						<id>sign-artifacts</id>
						<phase>verify</phase>
						<goals>
							<goal>sign</goal>
						</goals>
					</execution>
				</executions>
			</plugin>
		</plugins>
	</build>

	<distributionManagement>
		<repository>
			<id>sonatype-nexus-staging</id>
			<name>Nexus Release Repository</name>
			<url>https://oss.sonatype.org/service/local/staging/deploy/maven2</url>
		</repository>
	</distributionManagement>

	<modules>
		<module>proguard-base</module>
		<module>proguard-retrace</module>
		<module>proguard-gui</module>
		<module>proguard-anttask</module>
	</modules>
	
	<profiles>
		<profile>
			<id>__wtk_plugin_build__</id>
			<activation>
				<file>
					<exists>${wireless-toolkit-path}/wtklib/kenv.zip</exists>
				</file>
			</activation>
			<modules>
				<module>proguard-wtk-plugin</module>
			</modules>
		</profile>
	</profiles>
</project>
