<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>
		<repositoryUrl>http://artifactory.javassh.com</repositoryUrl>
		<releasesUrl>${repositoryUrl}/libs-releases-local/</releasesUrl>
		<snapshotsUrl>${repositoryUrl}/libs-snapshots-local/</snapshotsUrl>
		
		<!-- What version of Maverick SSH core should be used with this version of SSHD -->
		<maverickVersion>1.5.19-SNAPSHOT</maverickVersion>
		
		<!-- What version of Maverick Opensource (used for maverick-util only) should be used with this version of SSHD -->
		<maverickOpensourceVersion>2.0.0-SNAPSHOT</maverickOpensourceVersion>
	</properties>

	<groupId>com.sshtools.maverick</groupId>
	<artifactId>sshd-group</artifactId>
	<packaging>pom</packaging>
	<version>1.5.0-SNAPSHOT</version>
	<name>Maverick SSHD 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>../sshd-nio</module>
		<module>../sshd-jline</module>
		<module>../sshd</module>
		<module>../sshd-examples</module>
		<module>../sshd-all</module>
		<module>../sshd-assembly</module>
	</modules>
	
	<!-- <profiles>
  		<profile>
  			<id>dolphin-modules</id>
  			<modules>
  				<module>../sshd-dolphin</module>
  			</modules>
    		<activation>
      			<jdk>[1.7,)</jdk>
    		</activation>
  		</profile>
	</profiles>
	 -->
	
	<build>
		<plugins>

			<plugin>
				<groupId>org.apache.maven.plugins</groupId>
				<artifactId>maven-compiler-plugin</artifactId>
				<configuration>
					<source>1.6</source>
					<target>1.6</target>
				</configuration>
			</plugin>

			<!-- 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>2.0.0</version>
				<executions>
				
					<!-- First run, for the enterprise build -->
					<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>
							<disable>
								<symbol>LICENSE</symbol>
							</disable>
							<enable>
								<symbol>SOURCE_RELEASE</symbol>
							</enable>
							<timestampToken>System.currentTimeMillis() /* RELEASE_DATE */</timestampToken>
							<tokens>
								<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>
					
					<!-- Second run, for the binary build -->
					<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>LICENSE</symbol>
							</enable>
							<disable>
								<symbol>SOURCE_RELEASE</symbol>
							</disable>
							<timestampToken>System.currentTimeMillis() /* RELEASE_DATE */</timestampToken>
							<tokens>
								<token>
									<key>/* VERSION */</key>
									<value>${project.version}</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.8</version>
				<configuration>
					<use>false</use>
				</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>
	</build>
	<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>
