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

	<properties>
		<sitesUrl>http://www.sshtools.co.uk/maverick-maven</sitesUrl>

		<assemblyDeploymentLocation>sftp://root@sshtools.com:61222/var/www/html/maverick-maven/downloads</assemblyDeploymentLocation>
		<siteDeploymentLocation>sftp://root@sshtools.com:61222/var/www/html/maverick-maven</siteDeploymentLocation>

		<scmWebRoot>https://www.assembla.com/code/sshtools/subversion/nodes/trunk</scmWebRoot>
		<maverickOpensourceVersion>2.0.0</maverickOpensourceVersion>
	</properties>

	<groupId>com.sshtools.maverick</groupId>
	<artifactId>maverick-group</artifactId>
	<packaging>pom</packaging>
	<version>1.5.19-SNAPSHOT</version>
	<name>Maverick Suite</name>
	<url>${sitesUrl}/${project.groupId}.${project.artifactId}</url>

	<parent>
		<groupId>com.sshtools</groupId>
		<artifactId>sshtools-group</artifactId>
		<version>0.0.1</version>
	</parent>

	<modules>

		<module>../maverick-common</module>
		<module>../maverick</module>
		<module>../maverick-gssapi</module>
		<module>../maverick-dynamic-forward</module>
		<module>../maverick-all</module>
		<module>../maverick-assembly</module>
		<module>../maverick-vfs-ssh</module>
	</modules>
	<scm>
		<url>scm:cvs:ext:sshtools.com:/cvsroot</url>
	</scm>
	<build>
		<plugins>

			<!-- Preprocess all source. We do this twice, first for Enterprise build, 
				which contains no licensing code. Secondly, for the binary build handled 
				in the normal way by Maven. This has licensing code enabled -->
			<plugin>
				<groupId>org.sshtools</groupId>
				<artifactId>codeswitcher-maven-plugin</artifactId>
				<version>0.1-SNAPSHOT</version>
				<executions>

					<execution>
						<id>enterprise-build</id>
						<phase>compile</phase>
						<goals>
							<goal>pre-process</goal>
						</goals>

						<configuration>
							<changeBuildSourceDirectory>false</changeBuildSourceDirectory>
							<temporaryDirectory>target/generated-enterprise-src</temporaryDirectory>
							<comment>false</comment>
							<workOnCopy>true</workOnCopy>
							<enable>
								<symbol>J2SE</symbol>
								<symbol>SOURCE_RELEASE</symbol>
							</enable>
							<disable>
								<symbol>LICENSE</symbol>
							</disable>
							<timestampToken>/* RELEASE_DATE */</timestampToken>
							<tokens>
								<token>
									<key>/* VERSION */</key>
									<value>${project.version}</value>
								</token>
								<token>
									<key>SOFTWARE_VERSION_COMMENTS</key>
									<value>http://J2SSH_Maverick_${project.version}_</value>
								</token>
								<token>
									<key>/* HEADER */</key>
									<value><![CDATA[/******************************************************************************
 * Copyright (c) 2003-2011 SSHTools Ltd. All Rights Reserved.
 *
 * This file contains Original Code and/or Modifications of Original Code and
 * its use is subject to the terms of the SSHTOOLS Software License. You may not use
 * this file except in compliance with the license terms.
 *
 * You should have received a copy of the SSHTOOLS Software License along with this
 * software; see the file LICENSE.html.  If not, write to or contact:
 *
 * SSHTOOLS
 * PO BOX 9700
 * Langar
 * Nottinghamshire
 * United Kingdom
 * NG13 9WE
 *
 * +44 (0) 845 643 4498
 *
 * Sales:
 * sales@javassh.com 
 *
 * WWW:       http://www.sshtools.com
 *****************************************************************************/
]]></value>
								</token>
							</tokens>
						</configuration>
					</execution>

					<execution>
						<id>professional-build</id>
						<phase>compile</phase>
						<goals>
							<goal>pre-process</goal>
						</goals>

						<configuration>
							<changeBuildSourceDirectory>true</changeBuildSourceDirectory>
							<temporaryDirectory>target/pre</temporaryDirectory>
							<comment>true</comment>
							<workOnCopy>true</workOnCopy>
							<enable>
								<symbol>J2SE</symbol>
								<symbol>LICENSE</symbol>
							</enable>
							<timestampToken>/* RELEASE_DATE */</timestampToken>
							<tokens>
								<token>
									<key>SOFTWARE_VERSION_COMMENTS</key>
									<value>http://J2SSH_Maverick_${project.version}_</value>
								</token>
								<token>
									<key>/* VERSION */</key>
									<value>${project.version}</value>
								</token>
								<token>
									<key>NOT_LICENSED_TEXT</key>
									<value>This copy of J2SSH Maverick is not licensed!</value>
								</token>
							</tokens>
						</configuration>
					</execution>
				</executions>
			</plugin>
 
			<!-- Generate Javadoc jars and aggregate (for the binary distribution) -->
			<plugin>
				<groupId>org.apache.maven.plugins</groupId>
				<artifactId>maven-javadoc-plugin</artifactId>
				<version>2.7</version>
				<configuration>
				</configuration>
				<executions>
					<execution>
						<id>aggregate</id>
						<goals>
							<goal>aggregate</goal>
						</goals>
						<phase>package</phase>
						<configuration>
							<use>false</use>
						</configuration>
					</execution>
					<execution>
						<id>javadoc-jar</id>
						<phase>package</phase>
						<goals>
							<goal>jar</goal>
						</goals>
					</execution>
					<execution>
						<id>attach-javadocs</id>
						<goals>
							<goal>jar</goal>
						</goals>
					</execution>
				</executions>
			</plugin>

			<plugin>
				<groupId>org.apache.maven.plugins</groupId>
				<artifactId>maven-release-plugin</artifactId>
				<version>2.1</version>
				<configuration>
					<autoVersionSubmodules>true</autoVersionSubmodules>
				</configuration>
			</plugin>
		</plugins>
		<pluginManagement>
			<plugins>
				<!--This plugin's configuration is used to store Eclipse m2e settings only. It has no influence on the Maven build itself.-->
				<plugin>
					<groupId>org.eclipse.m2e</groupId>
					<artifactId>lifecycle-mapping</artifactId>
					<version>1.0.0</version>
					<configuration>
						<lifecycleMappingMetadata>
							<pluginExecutions>
								<pluginExecution>
									<pluginExecutionFilter>
										<groupId>org.sshtools</groupId>
										<artifactId>
											codeswitcher-maven-plugin
										</artifactId>
										<versionRange>
											[0.1-SNAPSHOT,)
										</versionRange>
										<goals>
											<goal>pre-process</goal>
										</goals>
									</pluginExecutionFilter>
									<action>
										<ignore></ignore>
									</action>
								</pluginExecution>
							</pluginExecutions>
						</lifecycleMappingMetadata>
					</configuration>
				</plugin>
			</plugins>
		</pluginManagement>
	</build>

	<distributionManagement>
		<site>
			<id>maverick-site</id>
			<url>${siteDeploymentLocation}/${project.artifactId}/</url>
		</site>
	</distributionManagement>
	
	<repositories>
		<repository>
			<id>opensource-releases</id>
			<url>http://artifactory.javassh.com/opensource-releases</url>
			<releases />
			<snapshots>
				<enabled>false</enabled>
			</snapshots>
		</repository>
		<repository>
			<id>opensource-snapshots</id>
			<url>http://artifactory.javassh.com/opensource-snapshots</url>
			<releases>
				<enabled>false</enabled>
			</releases>
			<snapshots />
		</repository>
		<repository>
			<id>libs-releases</id>
			<url>http://artifactory.javassh.com/libs-releases-local</url>
			<releases />
			<snapshots>
				<enabled>false</enabled>
			</snapshots>
		</repository>
		<repository>
			<id>libs-snapshots</id>
			<url>http://artifactory.javassh.com/libs-snapshots-local</url>
			<releases>
				<enabled>false</enabled>
			</releases>
			<snapshots />
		</repository>
		<repository>
			<id>ext-releases</id>
			<url>http://artifactory.javassh.com/ext-releases-local/</url>
			<releases />
			<snapshots>
				<enabled>false</enabled>
			</snapshots>
		</repository>
		<repository>
			<id>ext-snapshots</id>
			<url>http://artifactory.javassh.com/ext-snapshots-local/</url>
			<releases>
				<enabled>false</enabled>
			</releases>
			<snapshots />
		</repository>
	</repositories>
	

	<pluginRepositories>
		<pluginRepository>
			<id>opensource-releases</id>
			<url>http://artifactory.javassh.com/opensource-releases</url>
			<releases />
			<snapshots>
				<enabled>false</enabled>
			</snapshots>
		</pluginRepository>
		<pluginRepository>
			<id>opensource-snapshots</id>
			<url>http://artifactory.javassh.com/opensource-snapshots</url>
			<releases>
				<enabled>false</enabled>
			</releases>
			<snapshots />
		</pluginRepository>
	</pluginRepositories>
</project>
