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

	<groupId>de.akquinet.gomobile.gpg</groupId>
	<artifactId>GPG-Classifier-Test</artifactId>
	<version>0.0.1-SNAPSHOT</version>
	<packaging>bundle</packaging>

	<name>GPG-Classifier-Test</name>

	<properties>
		<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
	</properties>


	<dependencies>
		<dependency>
			<groupId>net.sf.json-lib</groupId>
			<artifactId>json-lib</artifactId>
			<version>2.3</version>
			<classifier>jdk13</classifier>
		</dependency>

		<dependency>
			<groupId>net.sf.json-lib</groupId>
			<artifactId>json-lib</artifactId>
			<version>2.3</version>
			<classifier>jdk15</classifier>
		</dependency>

		<dependency>
			<groupId>net.sf.ezmorph</groupId>
			<artifactId>ezmorph</artifactId>
			<version>1.0.6</version>
		</dependency>
	</dependencies>

	<build>
		<plugins>
			<plugin>
				<groupId>org.apache.felix</groupId>
				<artifactId>maven-bundle-plugin</artifactId>
				<extensions>true</extensions>
				<executions>
					<execution>
						<id>jdk13</id>
						<phase>package</phase>
						<goals>
							<goal>bundle</goal>
						</goals>
						<configuration>
							<classifier>jdk13</classifier>
							<excludeDependencies>*;classifier=jdk15</excludeDependencies>
							<instructions>
								<Private-Package>
									de.akquinet.gomobile.gpg
                                </Private-Package>
							</instructions>
						</configuration>
					</execution>
				</executions>
				<configuration>
				    <!-- Main configuration -->
					<classifier>jdk15</classifier> <!-- Specifying a classifier triggers the bug -->
					<excludeDependencies>*;classifier=jdk13</excludeDependencies>
					<instructions>
						<Private-Package>
							de.akquinet.gomobile.gpg
                        </Private-Package>
					</instructions>
				</configuration>
			</plugin>
		</plugins>
	</build>

</project>

