<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.jakubholy.testing</groupId>
	<artifactId>dbunit-embeddedderby-parenttest</artifactId>
	<name>Embedded Derby DbUnit Abstract TestCase</name>
	<version>1.0.2</version>

	<dependencies>

		<dependency>
			<groupId>org.apache.derby</groupId>
			<artifactId>derby</artifactId>
			<version>10.3.2.1</version>
			<type>jar</type>
		</dependency>
		<dependency>
			<!-- Issue mvn dependency:sources to download also its sources. -->
			<groupId>org.dbunit</groupId>
			<artifactId>dbunit</artifactId>
			<version>2.2</version>
			<type>jar</type>
		</dependency>

		<!--
			dependency> <groupId>commons-logging</groupId>
			<artifactId>commons-logging</artifactId> <version>1.1.1</version>
			</dependency -->
	</dependencies>

	<description>
	The project helps you to setup a DbUnit test using an embedded Derby database
	by providing an  AbstractEmbeddedDbTestCase.java that you extend, instructions
	for using it, and the utility DatabaseCreator.java for creating and initializing the DB.
	</description>

	<licenses>
		<license>
			<comments>Also, the author promises to never sue IBM for any use of this file.</comments>
			<name>LGPL 2.1</name>
			<url>http://www.gnu.org/licenses/lgpl-2.1.html</url>
		</license>
	</licenses>

	<url>http://sourceforge.net/apps/mediawiki/jeeutils/index.php?title=DbUnit_Test_Skeleton</url>

	<developers>
		<developer>
			<id>malyvelky</id>
			<name>Jakub Holy</name>
			<email>malyvelky@users.sf.net</email>
			<timezone>GMT+1</timezone>
			<roles>
			</roles>
		</developer>
	</developers>

	<scm>
		<connection>scm:svn:https://jeeutils.svn.sourceforge.net/svnroot/jeeutils/tags/dbunit-embeddedderby-parenttest-1.0.2</connection>
		<developerConnection>scm:svn:https://jeeutils.svn.sourceforge.net/svnroot/jeeutils/tags/dbunit-embeddedderby-parenttest-1.0.2</developerConnection>
		<url>http://jeeutils.svn.sourceforge.net/viewvc/jeeutils/tags/dbunit-embeddedderby-parenttest-1.0.2</url>
	</scm>
	<build>
		<finalName>dbunit-embeddedderby-parenttest</finalName>
		<plugins>

			<!-- Enforce JVM compatibility of sources and binaries. -->
			<plugin>
				<artifactId>maven-compiler-plugin</artifactId>
				<configuration>
					<source>1.4</source>
					<target>1.4</target>
				</configuration>
			</plugin>
			<!-- Enforce JVM version used for build -->
			<plugin>
				<groupId>org.apache.maven.plugins</groupId>
				<artifactId>maven-enforcer-plugin</artifactId>
				<executions>
					<execution>
						<id>enforce-versions</id>
						<goals>
							<goal>enforce</goal>
						</goals>
						<configuration>
							<rules>
								<requireJavaVersion>
									<version>[1.4,)</version>
								</requireJavaVersion>
							</rules>
						</configuration>
					</execution>
				</executions>
			</plugin>

			<!--
				Produce also dbunit-embeddedderby-parenttest-sources.jar when
				packaging.
			-->
			<plugin>
				<groupId>org.apache.maven.plugins</groupId>
				<artifactId>maven-source-plugin</artifactId>
				<executions>
					<execution>
						<id>attach-sources</id>
						<goals>
							<goal>jar</goal>
						</goals>
					</execution>
				</executions>
			</plugin>

			<!-- Produce ZIP with dependencies and samples. -->
			<plugin>
				<artifactId>maven-assembly-plugin</artifactId>
				<version>2.2-beta-2</version>
				<executions>
					<execution>
						<id>assemble-zip</id>
						<phase>package</phase>
						<goals>
							<goal>single</goal>
						</goals>
					</execution>
				</executions>
				<configuration>
					<descriptors>
						<descriptor>maven-assembly-dist.xml</descriptor>
					</descriptors>
				</configuration>
			</plugin>

			<!--
				Release Plugin (Update version in POM before/after release, create
				tag, deploy) to try: mvn release:prepare -DdryRun=true && mvn
				release:clean to perform:

				mvn release:prepare release:perform

				Read http://nexus.sonatype.org/oss-repository-hosting.html#3 for
				instructions on releasing to this project's Sonatype repository
			-->
			<plugin>
				<groupId>org.apache.maven.plugins</groupId>
				<artifactId>maven-release-plugin</artifactId>
				<version>2.0-beta-7</version>
			</plugin>



		</plugins>
	</build>

	<distributionManagement>
		<!-- My project's Sonatype repository to be used by the release plugin -->
		<repository>
			<id>nexus-releases</id>
			<name>Nexus Release Repository</name>
			<url>http://oss.sonatype.org/service/local/staging/deploy/maven2/</url>
		</repository>
	</distributionManagement>

	<!--repositories>
		<repository>
			<id>ibiblio.org</id>
			<name>ibiblio Mirror of http://repo1.maven.org/maven2/</name>
			<url>http://mirrors.ibiblio.org/pub/mirrors/maven2</url>
		</repository>
	</repositories-->

	<profiles>

		<profile>
			<id>release-sign-artifacts</id>

			<activation>
				<property>
					<!--
						will be set by the release plugin upon performing mvn
						release:perform
					-->
					<name>performRelease</name>
					<value>true</value>
				</property>
			</activation>

			<properties>
				<gpg.keyname>66AE163A</gpg.keyname>	<!-- GPG Key ID to use for signing -->
				<release.username>malyvelky</release.username> <!-- username for our svn repository -->
			</properties>

			<build>
				<plugins>
					<!--
						Enable signing of the artifacts For gpg:sign-and-deploy-file it's
						necessary to have a <server> with the repositoryId provided or
						id="remote-repository" defined in settings.xml (it contains the
						repository's login, psw) Signing: mvn gpg:sign-and-deploy-file
						-DpomFile=target/myapp-1.0.pom \ > -Dfile=target/myapp-1.0.jar \ >
						-Durl=http://oss.sonatype.org/content/repositories/malyvelky/ \ >
						-DrepositoryId=sonatype_oss Note normally it uses the defaul key
						but we can ovveride it by either setting the property gpg.keyname
						(done in this POM) or by providing -Dkeyname=66AE163A on the
						command line. OR directly w/ gpg: gpg -u 66AE163A - -sign -
						-detach-sign -a target/dbunit-embeddedderby-parenttest.jar Note:
						"mvn gpg:sign" results in NPE with v 1.o-a.-4, use "mvn package
						gpg:sign" instead; see the issue MGPG-18
					-->
					<plugin>
						<groupId>org.apache.maven.plugins</groupId>
						<artifactId>maven-gpg-plugin</artifactId>
						<version>1.0-alpha-4</version>
						<executions>
							<execution>
								<id>sign-artifacts</id>
								<phase>verify</phase>
								<goals>
									<goal>sign</goal>
								</goals>
							</execution>
						</executions>
					</plugin>
				</plugins>
			</build>

		</profile>

	</profiles>

</project>
