<?xml version="1.0" encoding="UTF-8"?>
<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">

	<parent>
		<groupId>at.crea-doo.homer</groupId>
		<artifactId>hwabstraction</artifactId>
		<version>1.0.11</version>
		<relativePath>../</relativePath>
	</parent>

	<modelVersion>4.0.0</modelVersion>

	<artifactId>hwabstraction.amazon.dash</artifactId>
	<packaging>bundle</packaging>
	<name>HOMER - HWAbstraction - Amazon Dash</name>
	<description />

	<profiles>
		<profile>
			<id>test</id>
			<activation>
				<activeByDefault>false</activeByDefault>
			</activation>
			<build>
				<plugins>
					<plugin>
						<groupId>org.codehaus.mojo</groupId>
						<artifactId>exec-maven-plugin</artifactId>
						<executions>
							<execution>
								<id>runtests</id>
								<phase>test</phase>
								<goals>
									<goal>java</goal>
								</goals>
								<configuration>
									<classpathScope>test</classpathScope>
									<includeProjectDependencies>true</includeProjectDependencies>
									<includePluginDependencies>true</includePluginDependencies>
									<mainClass>at.creadoo.homer.hwabstraction.amazon.dash.test.Test</mainClass>
								</configuration>
							</execution>
						</executions>
					</plugin>
				</plugins>
			</build>
		</profile>
	</profiles>

	<properties>
		<pcap4j.version>1.7.1</pcap4j.version>
	</properties>

	<dependencies>
		<dependency>
			<groupId>at.ac.ait.hbs.homer</groupId>
			<artifactId>at.ac.ait.hbs.homer.core.common</artifactId>
		</dependency>

		<dependency>
			<groupId>org.osgi</groupId>
			<artifactId>org.osgi.core</artifactId>
			<scope>provided</scope>
		</dependency>
		<dependency>
			<groupId>org.osgi</groupId>
			<artifactId>org.osgi.compendium</artifactId>
			<scope>provided</scope>
		</dependency>

		<dependency>
			<groupId>org.pcap4j</groupId>
			<artifactId>pcap4j-core</artifactId>
			<version>${pcap4j.version}</version>
		</dependency>
		<dependency>
			<groupId>org.pcap4j</groupId>
			<artifactId>pcap4j-packetfactory-static</artifactId>
			<version>${pcap4j.version}</version>
		</dependency>
		<dependency>
			<groupId>net.java.dev.jna</groupId>
			<artifactId>jna</artifactId>
			<version>4.4.0</version>
		</dependency>
		<dependency>
			<groupId>commons-net</groupId>
			<artifactId>commons-net</artifactId>
		</dependency>

		<dependency>
			<groupId>org.slf4j</groupId>
			<artifactId>slf4j-simple</artifactId>
			<version>1.7.21</version>
		</dependency>

		<!-- Apache Karaf -->
		<dependency>
			<groupId>org.apache.karaf.shell</groupId>
			<artifactId>org.apache.karaf.shell.core</artifactId>
			<optional>true</optional>
		</dependency>
		<!-- /Apache Karaf -->
	</dependencies>

	<build>
		<plugins>
			<plugin>
				<groupId>org.codehaus.mojo</groupId>
				<artifactId>build-helper-maven-plugin</artifactId>
				<executions>
					<execution>
						<id>attach-artifact</id>
						<phase>package</phase>
						<inherited>false</inherited>
						<goals>
							<goal>attach-artifact</goal>
						</goals>
						<configuration>
							<artifacts>
								<artifact>
									<file>${project.build.outputDirectory}/config.cfg</file>
									<type>cfg</type>
								</artifact>
							</artifacts>
						</configuration>
					</execution>
				</executions>
			</plugin>
			<plugin>
				<groupId>org.apache.felix</groupId>
				<artifactId>maven-bundle-plugin</artifactId>
				<extensions>true</extensions>
				<configuration>
					<instructions>
						<Karaf-Commands>*</Karaf-Commands>
						<Import-Package>
							!org.slf4j.event,
							*
						</Import-Package>
						<Export-Package>
							at.creadoo.homer.hwabstraction.amazon.dash
						</Export-Package>
						<Private-Package>
							at.creadoo.homer.hwabstraction.amazon.dash.commands,
							at.creadoo.homer.hwabstraction.amazon.dash.commands.completers,
							at.creadoo.homer.hwabstraction.amazon.dash.impl,
							at.creadoo.homer.hwabstraction.amazon.dash.test,
							at.creadoo.homer.hwabstraction.amazon.dash.util
						</Private-Package>
						<Embed-Dependency>
							pcap4j-core;scope=compile|runtime;inline=true,
							pcap4j-packetfactory-static;scope=compile|runtime;inline=true,
							jna;scope=compile|runtime;inline=true,
							commons-net;scope=compile|runtime;inline=false,
							slf4j-simple;scope=compile|runtime;inline=false
						</Embed-Dependency>
						<Include-Resource>src/main/resources</Include-Resource>
					</instructions>
				</configuration>
			</plugin>
		</plugins>
	</build>
</project>