<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>

	<parent>
		<groupId>org.appdapter</groupId>
		<artifactId>org.appdapter.modules.core</artifactId>
		<version>1.2.4</version>
		<relativePath>../org.appdapter.modules.core/pom.xml</relativePath>
	</parent>	

    <artifactId>org.appdapter.bundle.debug</artifactId>
	<packaging>bundle</packaging>
    <name>${project.artifactId} - OSGi Bundle</name>

	<!-- This debug bundle should not depend on anything but ext.bundles .
	-->
    <dependencies>
		<dependency>
			<groupId>${project.groupId}</groupId>
			<artifactId>ext.bundle.osgi.common</artifactId>
			<version>${project.version}</version>
		</dependency>
		<dependency>
			<groupId>${project.groupId}</groupId>
			<artifactId>ext.bundle.xml.dom4j_161</artifactId>
			<version>${project.version}</version>
		</dependency>
		<!-- ReflectUtils and AggregateConverter uses org.apache.jena.atlas.lib.			-->
		<!-- 2015-06-26   Stu replaces this with ref to ext.bundle.jena
		<dependency>
			<groupId>org.apache.jena</groupId>
			<artifactId>jena-osgi</artifactId>
            <version>2.13.0</version>
			<exclusions>
				<exclusion>
					<groupId>org.apache.httpcomponents</groupId>
					<artifactId>httpclient-osgi</artifactId>
				</exclusion>
				<exclusion>
					<groupId>org.apache.httpcomponents</groupId>
					<artifactId>httpcore-osgi</artifactId>
				</exclusion>
				<exclusion>
					<groupId>log4j</groupId>
					<artifactId>log4j</artifactId>
				</exclusion>
			</exclusions>
		</dependency>			
		-->
		<dependency>
			<groupId>${project.groupId}</groupId>
			<artifactId>ext.bundle.apache_httpclient</artifactId>
            <version>${project.version}</version>
		</dependency>	
	
		
		<dependency>
			<artifactId>ext.bundle.jena_all_2_13_0</artifactId>
			<groupId>${project.groupId}</groupId>
			<version>${project.version}</version>			
		</dependency>	
				
		<dependency>
			
			<groupId>org.slf4j</groupId>
			<artifactId>slf4j-log4j12</artifactId>
			<!-- Set to "runtime" to test standalone launch, but commit only at "test" scope -->
			<scope>test</scope>
			<exclusions>
				<!-- This embedded Log4J version is not OSGi friendly, so we exclude it.
					The "good" one is already inherited from ext.bundle.osgi.common.
				-->				
				<exclusion>
					<artifactId>log4j</artifactId>
					<groupId>log4j</groupId>
				</exclusion>
			</exclusions>
		</dependency>				
	</dependencies>

	<build>
		<plugins>
			<plugin>
				<groupId>org.apache.felix</groupId>
				<artifactId>maven-bundle-plugin</artifactId>
				<extensions>true</extensions>
				<configuration>
					<instructions>

						<Bundle-Activator>org.appdapter.bundle.debug.Activator</Bundle-Activator>
						<!-- If we are not specific enough in our Export-Package, BND will re-export imported packages 
							(e.g. the Activator packages it finds in the ext-bundles).
						-->
						<Export-Package>
							org.appdapter.core.*, 
							org.appdapter.bundle.debug, 
							org.appdapter.bind.log4j
						</Export-Package>
					</instructions>
				</configuration>
			</plugin>
		</plugins>
	</build>

</project>
