<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">

	<properties>
		<staging.dir>${project.build.directory}/staging</staging.dir>
		<install4j.home>NOT_CONFIGURED</install4j.home>
		<install4j.winKeystorePassword>NOT_CONFIGURED</install4j.winKeystorePassword>
		<install4j.macKeystorePassword>NOT_CONFIGURED</install4j.macKeystorePassword>
	</properties>
	<modelVersion>4.0.0</modelVersion>
	<artifactId>unitty-install4j</artifactId>
	<name>UniTTY Install4J</name>
	<description>Uses Install4J to create installer. Should not be deployed to a public repository.</description>
	<parent>
		<groupId>com.sshtools.unitty</groupId>
		<artifactId>unitty</artifactId>
		<version>3.2.0-SNAPSHOT</version>
		<relativePath>..</relativePath>
	</parent>
	<url>${scmWebRoot}/${project.artifactId}/</url>

	<build>
		<plugins>
			<!-- prepare dependencies so that izpack jar tag to pickup at compile 
				time -->
			<plugin>
				<groupId>org.apache.maven.plugins</groupId>
				<artifactId>maven-dependency-plugin</artifactId>
				<version>2.8</version>
				<executions>
					<execution>
						<id>copy-dependencies</id>
						<phase>package</phase>
						<goals>
							<goal>copy-dependencies</goal>
						</goals>
						<configuration>
							<stripVersion>true</stripVersion>
							<outputDirectory>${staging.dir}/dependency</outputDirectory>
						</configuration>
					</execution>
				</executions>
			</plugin>

			<plugin>
				<groupId>org.sonatype.install4j</groupId>
				<artifactId>install4j-maven-plugin</artifactId>
				<executions>
					<execution>
						<id>compile-installers</id>
						<phase>package</phase>
						<goals>
							<goal>compile</goal>
						</goals>
						<configuration>
							<projectFile>${basedir}/src/install4j/unitty.install4j</projectFile>
						</configuration>
					</execution>
				</executions>
			</plugin>

			<plugin>
				<groupId>org.sonatype.install4j</groupId>
				<artifactId>install4j-maven-plugin</artifactId>
				<executions>
					<execution>
						<id>compile-mac-installer</id>
						<phase>package</phase>
						<goals>
							<goal>compile</goal>
						</goals>
						<configuration>
							<projectFile>${basedir}/src/install4j/unitty-macosx.install4j</projectFile>
						</configuration>
					</execution>
				</executions>
			</plugin>

			<plugin>
				<groupId>org.codehaus.mojo</groupId>
				<artifactId>wagon-maven-plugin</artifactId>
				<version>1.0-beta-4</version>
				<executions>
					<execution>
						<id>upload</id>
						<phase>deploy</phase>
						<goals>
							<goal>upload</goal>
						</goals>
						<configuration>
							<fromDir>target</fromDir>
							<includes>*.exe,*.sh,*.dmg</includes>
							<url>${assemblyDeploymentLocation}</url>
						</configuration>
					</execution>
				</executions>
			</plugin>
		</plugins>
	</build>
	<distributionManagement>
		<repository>
			<id>libs-releases</id>
			<url>http://artifactory.javassh.com/libs-releases-local</url>
		</repository>
		<snapshotRepository>
			<id>libs-snapshots</id>
			<url>http://artifactory.javassh.com/libs-snapshots-local</url>
		</snapshotRepository>
	</distributionManagement>
	<dependencies>
		<dependency>
			<groupId>com.sshtools.unitty</groupId>
			<artifactId>unitty-macosx-app</artifactId>
			<version>${project.version}</version>
			<scope>compile</scope>
			<exclusions>
				<exclusion>
					<artifactId>sshapi-ganymed</artifactId>
					<groupId>net.sf.sshapi</groupId>
				</exclusion>
				<exclusion>
					<artifactId>sshapi-j2ssh</artifactId>
					<groupId>net.sf.sshapi</groupId>
				</exclusion>
			</exclusions>
		</dependency>

		<dependency>
			<groupId>net.sf.sshapi</groupId>
			<artifactId>sshapi-maverick-16</artifactId>
			<version>${sshapiVersion}</version>
		</dependency>
		<dependency>
			<groupId>com.sshtools.unitty</groupId>
			<artifactId>unitty-sshapi-maverick-license</artifactId>
			<version>${project.version}</version>
			<scope>compile</scope>
		</dependency>

	</dependencies>
</project>