<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.squirrel-sql</groupId>
	<artifactId>squirrel-root-pom</artifactId>
	<version>3.2.2</version>
	<packaging>pom</packaging>

	<parent>
		<groupId>org.sonatype.oss</groupId>
		<artifactId>oss-parent</artifactId>
		<version>5</version>
	</parent>

	<name>SQuirreL Root POM</name>
	<description>
		The top-most POM file for building the SQuirreL SQL Client. If a profile is defined that is called 
		"installer", the build will also include building projects that produce the installer and the 
		installer itself. 
	</description>
	<inceptionYear>2001</inceptionYear>
	<developers>
		<developer>
			<name>Gerd Wagner</name>
			<roles>
				<role>Administrator</role>
				<role>Developer</role>
			</roles>
		</developer>
		<developer>
			<name>Rob Manning</name>
			<roles>
				<role>Developer</role>
				<role>Release Manager</role>
			</roles>
		</developer>
	</developers>
	<licenses>
		<license>
			<name>GNU Lesser General Public License</name>
			<url>http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt</url>
			<distribution>repo</distribution>
		</license>
	</licenses>
	<url>http://www.squirrelsql.org/</url>
	<scm>
		<connection>scm:svn:https://squirrel-sql.svn.sourceforge.net/svnroot/squirrel-sql/tags/squirrel-root-pom-3.2.2</connection>
		<developerConnection>scm:svn:https://squirrel-sql.svn.sourceforge.net/svnroot/squirrel-sql/tags/squirrel-root-pom-3.2.2</developerConnection>
		<url>http://squirrel-sql.svn.sourceforge.net/viewvc/squirrel-sql/tags/squirrel-root-pom-3.2.2</url>
	</scm>
	<issueManagement>
		<system>SourceForge Tracker</system>
		<url>http://sourceforge.net/tracker/?group_id=28383%26atid=393414</url>
	</issueManagement>
	<ciManagement>
		<system>Hudson</system>
		<url>https://www.squirrel-sql.org/hudson/</url>
	</ciManagement>
	<properties>
		<!-- Maven plugin versions -->
		<assembly-plugin-version>2.2</assembly-plugin-version>
		<checkstyle-plugin-version>2.2</checkstyle-plugin-version>
		<compiler-plugin-version>2.3.2</compiler-plugin-version>
		<dependency-plugin-version>2.0</dependency-plugin-version>
		<exec-plugin-version>1.2</exec-plugin-version>
		<findbugs-plugin-version>2.1</findbugs-plugin-version>
		<gpg-plugin-version>1.1</gpg-plugin-version>
		<javac-source-version>1.6</javac-source-version>
		<javac-target-version>1.6</javac-target-version>
		<jar-plugin-version>2.3.1</jar-plugin-version>
		<javadoc-plugin-version>2.6</javadoc-plugin-version>
		<maven-plugin-api-version>2.0</maven-plugin-api-version>
		<pmd-plugin-version>2.4</pmd-plugin-version>
		<release-plugin-version>2.1</release-plugin-version>
		<scm-plugin-version>1.4</scm-plugin-version>
		<source-plugin-version>2.1.2</source-plugin-version>
		<squirrelsql-version-plugin-version>1.0.6</squirrelsql-version-plugin-version>
		<squirrelsql-update-site-plugin-version>1.0.6</squirrelsql-update-site-plugin-version>
		<surefire-plugin-version>2.6</surefire-plugin-version>
		<surefire-report-plugin-version>2.0-beta-1</surefire-report-plugin-version>
		<wagon-plugin-version>1.0-beta-3</wagon-plugin-version>

		<!-- Thirdparty Library Versions -->
		<clover-version>3.0.2</clover-version>
		<easymock-version>2.4</easymock-version>
		<easymockclassextension-version>2.4</easymockclassextension-version>
		<gsbase-version>2.0.1</gsbase-version>
		<hibernate-annotations-version>3.3.0.ga</hibernate-annotations-version>
		<izpack-standalone.version>4.3.1</izpack-standalone.version>
		<izpack-plugin-version>1.0-alpha-4</izpack-plugin-version>
		<junit-version>4.4</junit-version>
		<jgoodies-forms-version>1.0.5</jgoodies-forms-version>
		<mockito-version>1.8.5</mockito-version>
		<spring-framework-version>2.5.2</spring-framework-version>
	
		<!--  Other -->
		<surefire-parallel-type>classes</surefire-parallel-type>
		<surefire-thread-count>4</surefire-thread-count>
		<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
		
	</properties>
	<modules>
		<module>fw</module>
		<module>app</module>
		<module>plugins</module>
	</modules>
	<dependencyManagement>
		<dependencies>
			<dependency>
				<groupId>jgoodies</groupId>
				<artifactId>forms</artifactId>
				<version>${jgoodies-forms-version}</version>
			</dependency>
			<dependency>
				<groupId>gsbase</groupId>
				<artifactId>gsbase</artifactId>
				<version>${gsbase-version}</version>
				<scope>test</scope>
			</dependency>
			<dependency>
				<groupId>junit</groupId>
				<artifactId>junit</artifactId>
				<version>${junit-version}</version>
				<scope>test</scope>
			</dependency>
			<dependency>
				<groupId>org.easymock</groupId>
				<artifactId>easymock</artifactId>
				<version>${easymock-version}</version>
				<scope>test</scope>
			</dependency>
			<dependency>
				<groupId>org.easymock</groupId>
				<artifactId>easymockclassextension</artifactId>
				<version>${easymockclassextension-version}</version>
				<scope>test</scope>
			</dependency>
			<dependency>
				<groupId>org.mockito</groupId>
				<artifactId>mockito-all</artifactId>
				<version>${mockito-version}</version>
				<scope>test</scope>
			</dependency>
		</dependencies>
	</dependencyManagement>
	<build>
		<!--
			Plugin versions are declared here so that they may be omitted in poms that inherit from those
			that are decendants of this one. This way, plugin versions are only specified in one place.
		-->
		<pluginManagement>
			<plugins>
				<plugin>
					<groupId>org.apache.maven.plugins</groupId>
					<artifactId>maven-assembly-plugin</artifactId>
					<version>${assembly-plugin-version}</version>
				</plugin>
				<plugin>
					<groupId>org.apache.maven.plugins</groupId>
					<artifactId>maven-compiler-plugin</artifactId>
					<version>${compiler-plugin-version}</version>
				</plugin>
				<plugin>
					<groupId>org.apache.maven.plugins</groupId>
					<artifactId>maven-dependency-plugin</artifactId>
					<version>${dependency-plugin-version}</version>
				</plugin>
				<plugin>
					<groupId>org.codehaus.mojo</groupId>
					<artifactId>exec-maven-plugin</artifactId>
					<version>${exec-plugin-version}</version>
				</plugin>
				<plugin>
					<groupId>org.apache.maven.plugins</groupId>
					<artifactId>maven-jar-plugin</artifactId>
					<version>${jar-plugin-version}</version>
				</plugin>
				<plugin>
					<groupId>org.apache.maven.plugins</groupId>
					<artifactId>maven-scm-plugin</artifactId>
					<version>${scm-plugin-version}</version>
				</plugin>
				<plugin>
					<groupId>org.apache.maven.plugins</groupId>
					<artifactId>maven-source-plugin</artifactId>
					<version>${source-plugin-version}</version>
				</plugin>
				<plugin>
					<groupId>org.apache.maven.plugins</groupId>
					<artifactId>maven-surefire-plugin</artifactId>
					<version>${surefire-plugin-version}</version>
					<configuration>
						<redirectTestOutputToFile>true</redirectTestOutputToFile>
					</configuration>
				</plugin>
				<plugin>
					<groupId>org.codehaus.izpack</groupId>
					<artifactId>izpack-maven-plugin</artifactId>
					<version>${izpack-plugin-version}</version>
				</plugin>
				<plugin>
					<groupId>org.apache.maven.plugins</groupId>
					<artifactId>maven-release-plugin</artifactId>
					<version>${release-plugin-version}</version>
				</plugin>
		        <plugin>
		            <groupId>com.atlassian.maven.plugins</groupId>
		            <artifactId>maven-clover2-plugin</artifactId>
		            <version>${clover-version}</version>
		        </plugin>
			</plugins>
		</pluginManagement>
	</build>
	<profiles>
		<!--
			There are a few additional projects that are needed to build the installer. These are probably
			not needed for developing plugins, so the default is to build them only when the installer
			profile is activated.
		-->
		<profile>
			<id>installer</id>
			<build>
				<plugins>
					<plugin>
						<groupId>net.sf.squirrel-sql</groupId>
						<artifactId>squirrelsql-version-plugin</artifactId>
						<version>${squirrelsql-version-plugin-version}</version>
						<executions>
							<execution>
								<phase>initialize</phase>
								<goals>
									<goal>set-version</goal>
								</goals>
							</execution>
						</executions>
					</plugin>
				</plugins>
			</build>
			<modules>
				<module>fw</module>
				<module>app</module>
				<module>plugins</module>
				<module>squirrelsql-translations</module>
				<module>doc</module>
				<module>web-site</module>
				<module>installer</module>
			</modules>
		</profile>
		<!--
			Since signing jars is probably only useful for releasing, this is not done unless the "sign-jar"
			profile is activated
		-->
		<profile>
			<id>sign-jar</id>
			<build>
				<plugins>
					<plugin>
						<groupId>org.apache.maven.plugins</groupId>
						<artifactId>maven-gpg-plugin</artifactId>
						<version>${gpg-plugin-version}</version>
						<executions>
							<execution>
								<id>sign-artifacts</id>
								<phase>verify</phase>
								<goals>
									<goal>sign</goal>
								</goals>
								<configuration>
									<homedir>${gpg.homedir}</homedir>
									<keyname>${gpg.keyname}</keyname>
									<passphrase>${gpg.passphrase}</passphrase>
								</configuration>
							</execution>
						</executions>
					</plugin>
				</plugins>
			</build>
		</profile>
	</profiles>
</project>
