<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/xsd/maven-4.0.0.xsd">

	<modelVersion>4.0.0</modelVersion>

	<artifactId>jmock-testjar</artifactId>
	<packaging>jar</packaging>
	<name>jMock 2 Test Jar</name>
	<description>Source for jar files used in jmock core tests</description>

	<parent>
		<groupId>org.jmock</groupId>
		<artifactId>jmock-parent</artifactId>
		<version>2.8.1</version>
		<relativePath>../pom.xml</relativePath>
	</parent>

	<build>
		<finalName>signed</finalName>
		<plugins>
			<plugin>
				<!-- Copy jar for unsigned tests -->
				<groupId>org.apache.maven.plugins</groupId>
				<artifactId>maven-dependency-plugin</artifactId>
				<version>2.9</version>
				<executions>
					<execution>
						<id>copy</id>
						<phase>package</phase>
						<goals>
							<goal>copy</goal>
						</goals>
						<configuration>
							<artifactItems>
								<artifactItem>
									<groupId>${project.groupId}</groupId>
									<artifactId>${project.artifactId}</artifactId>
									<version>${project.version}</version>
									<type>jar</type>
									<overWrite>true</overWrite>
									<outputDirectory>${project.build.directory}</outputDirectory>
									<destFileName>unsigned.jar</destFileName>
								</artifactItem>
							</artifactItems>
						</configuration>
					</execution>
				</executions>
			</plugin>

			<plugin>
				<groupId>org.apache.maven.plugins</groupId>
				<artifactId>maven-gpg-plugin</artifactId>
				<version>1.6</version>
				<executions>
					<execution>
						<id>sign-artifacts</id>
						<phase>verify</phase>
						<goals>
							<goal>sign</goal>
						</goals>
						<configuration>
							<keyname>899FD4CB</keyname>
							<secretKeyring>${basedir}/secring.gpg</secretKeyring>
							<publicKeyring>${basedir}/pubring.gpg</publicKeyring>
							<passphrase>secret</passphrase>
						</configuration>
					</execution>
				</executions>
			</plugin>

		</plugins>
	</build>

</project>
