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

	<parent>
		<groupId>org.eclipse.rdf4j</groupId>
		<artifactId>rdf4j-core</artifactId>
		<version>2.2.4</version>
	</parent>

	<artifactId>rdf4j-runtime-osgi</artifactId>
	<packaging>bundle</packaging>

	<name>RDF4J: Runtime - OSGi</name>
	<description>OSGi Runtime dependencies for an RDF4J application</description>

	<dependencies>
		<dependency>
			<groupId>${project.groupId}</groupId>
			<artifactId>rdf4j-http-client</artifactId>
			<version>${project.version}</version>
		</dependency>
		<dependency>
			<groupId>${project.groupId}</groupId>
			<artifactId>rdf4j-http-server-spring</artifactId>
			<version>${project.version}</version>
		</dependency>
	<dependency>
	    <groupId>${project.groupId}</groupId>
	    <artifactId>rdf4j-queryalgebra-geosparql</artifactId>
	    <version>${project.version}</version>
	</dependency>
	</dependencies>

	<build>
		<plugins>
			<plugin>
				<artifactId>maven-antrun-plugin</artifactId>
				<executions>
					<execution>
						<phase>process-classes</phase>
						<configuration>
							<target>
								<mkdir dir="target/services/META-INF/services" />
								<ant antfile="build.xml" target="create-service-files" dir="${basedir}" />
							</target>
						</configuration>
						<goals>
							<goal>run</goal>
						</goals>
					</execution>
				</executions>
			</plugin>
			<plugin>
				<groupId>org.apache.felix</groupId>
				<artifactId>maven-bundle-plugin</artifactId>
				<extensions>true</extensions>
				<configuration>
					<remoteOBR>NONE</remoteOBR>
					<instructions>
						<Bundle-SymbolicName>org.eclipse.rdf4j</Bundle-SymbolicName>
						<Export-Package>!*text-base,!*prop-base,org.eclipse.rdf4j.*</Export-Package>
						<Import-Package>
							org.slf4j.*,
							org.eclipse.rdf4j.*;version=0,
							javax.*;resolution:=optional,
							org.apache.*;resolution:=optional,
							org.springframework.*;resolution:=optional,
							*
						</Import-Package>
						<Include-Resource>
							{maven-resources},
							META-INF/services=target/services/META-INF/services
						</Include-Resource>
						<Embed-Dependency>
							*;
							groupId=org.eclipse.rdf4j;
							scope=compile|runtime;
							type=!pom;
							inline=true
						</Embed-Dependency>
						<Embed-Transitive>true</Embed-Transitive>
					</instructions>
				</configuration>
				<dependencies>
					<dependency>
						<groupId>biz.aQute.bnd</groupId>
						<artifactId>bndlib</artifactId>
						<version>2.4.0</version>
					</dependency>
				</dependencies>
			</plugin>
		</plugins>
	</build>

</project>
