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

	<!-- CAUTION: this module has not the io.janusproject.v1.kernel:janus-kernel 
		maven module as parent to avoid dependency on it. Indeed if this modules 
		has io.janusproject.v1.kernel:janus-kernel as parent, assembly in io.janusproject.v1.kernel:janus-kernel 
		is impossible due to the Maven dependency specifications. -->
	<parent>
		<artifactId>janus-kernel</artifactId>
		<groupId>io.janusproject.v1.kernel</groupId>
		<version>1.1</version>
	</parent>

	<properties>
		<manifest-location>META-INF</manifest-location>
	</properties>

	<artifactId>osgi</artifactId>
	<version>1.1.0</version>
	<packaging>bundle</packaging>
	<name>OSGified Janus Kernel</name>

	<build>
		<plugins>
			<plugin>
				<groupId>org.apache.felix</groupId>
				<artifactId>maven-bundle-plugin</artifactId>
				<extensions>true</extensions>
				<configuration>
					<instructions>
						<Export-Package>org.janusproject.kernel*;version="${janus.version}"</Export-Package>
						<Private-Package>org.janusproject.kernel.mmf.impl</Private-Package>
						<Bundle-Activator>org.janusproject.kernel.mmf.osgi.Activator</Bundle-Activator>
						<Export-Service>org.janusproject.kernel.mmf.IKernelService</Export-Service>
						<Include-Resource>
							{maven-resources}, {maven-dependencies},
							META-INF/license=target/classes/META-INF/license,
							META-INF/AUTHORS.janus.txt=target/classes/META-INF/AUTHORS.janus.txt,
							META-INF/NOTICE.janus.txt=target/classes/META-INF/NOTICE.janus.txt,
						</Include-Resource>
						<DynamicImport-Package>*</DynamicImport-Package>
					</instructions>
					<supportedProjectTypes>
						<supportedProjectType>jar</supportedProjectType>
						<supportedProjectType>bundle</supportedProjectType>
						<supportedProjectType>war</supportedProjectType>
					</supportedProjectTypes>
				</configuration>
			</plugin>
		</plugins>
	</build>

	<dependencies>
		<dependency>
			<groupId>org.apache.felix</groupId>
			<artifactId>org.osgi.core</artifactId>
		</dependency>
		<dependency>
			<groupId>org.apache.felix</groupId>
			<artifactId>org.apache.felix.bundlerepository</artifactId>
		</dependency>

		<dependency>
			<groupId>io.janusproject.v1.kernel</groupId>
			<artifactId>kernel</artifactId>
		</dependency>

		<dependency>
			<groupId>junit</groupId>
			<artifactId>junit</artifactId>
			<scope>test</scope>
			<optional>true</optional>
		</dependency>
	</dependencies>

</project>
