<?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/xsd/maven-4.0.0.xsd">

	<modelVersion>4.0.0</modelVersion>

	<groupId>com.unisys.comms.asb</groupId>
	<artifactId>KarafRuntime</artifactId>
	<version>0.0.2-SNAPSHOT</version>
	<packaging>karaf-assembly</packaging>

	<name>KarafRuntime-feature</name>
	<description>KarafRuntime details</description>

	<properties>
		<karaf.version>4.0.9</karaf.version>
		<activemq.version>5.14.5</activemq.version>
		<camel.version>2.21.1</camel.version>
		<cxf.version>3.1.9</cxf.version>
		<hawtio.version>1.5.9</hawtio.version>
	</properties>

	<dependencies>
		<dependency>
			<groupId>org.apache.karaf.features</groupId>
			<artifactId>framework</artifactId>
			<version>${karaf.version}</version>
			<type>kar</type>
		</dependency>
		<dependency>
			<groupId>org.apache.karaf.features</groupId>
			<artifactId>standard</artifactId>
			<version>${karaf.version}</version>
			<classifier>features</classifier>
			<type>xml</type>
			<scope>runtime</scope>
		</dependency>
		<dependency>
			<groupId>org.apache.karaf.features</groupId>
			<artifactId>spring</artifactId>
			<version>${karaf.version}</version>
			<classifier>features</classifier>
			<type>xml</type>
			<scope>runtime</scope>
		</dependency>
		<dependency>
			<groupId>org.apache.karaf.features</groupId>
			<artifactId>enterprise</artifactId>
			<version>${karaf.version}</version>
			<classifier>features</classifier>
			<type>xml</type>
			<scope>runtime</scope>
		</dependency>
		<dependency>
			<groupId>org.apache.camel.karaf</groupId>
			<artifactId>apache-camel</artifactId>
			<version>${camel.version}</version>
			<classifier>features</classifier>
			<type>xml</type>
			<scope>runtime</scope>
		</dependency>
		<dependency>
			<groupId>org.apache.activemq</groupId>
			<artifactId>activemq-karaf</artifactId>
			<version>${activemq.version}</version>
			<classifier>features</classifier>
			<type>xml</type>
			<scope>runtime</scope>
		</dependency>
		<dependency>
			<groupId>org.apache.cxf.karaf</groupId>
			<artifactId>apache-cxf</artifactId>
			<version>${cxf.version}</version>
			<classifier>features</classifier>			
			<type>xml</type>
			<scope>runtime</scope>
		</dependency>
		<dependency>
			<groupId>io.hawt</groupId>
			<artifactId>hawtio-karaf</artifactId>
			<version>${hawtio.version}</version>
			<classifier>features</classifier>
			<type>xml</type>
			<scope>runtime</scope>
		</dependency>
	</dependencies>

	<build>
		<resources>
			<resource>
				<directory>src/main/resources</directory>
				<filtering>false</filtering>
				<includes>
					<include>**/*</include>
				</includes>
			</resource>
			<resource>
				<directory>src/main/filtered-resources</directory>
				<filtering>true</filtering>
				<includes>
					<include>**/*</include>
				</includes>
			</resource>
		</resources>
		<plugins>
			<plugin>
				<groupId>org.apache.karaf.tooling</groupId>
				<artifactId>karaf-maven-plugin</artifactId>
				<version>4.2.0</version>
				<extensions>true</extensions>
				<configuration>
					<startupFeatures>
						<feature>wrapper</feature>
						<feature>camel</feature>
						<feature>spring</feature>
						<feature>activemq</feature>
						<feature>activemq-broker-noweb</feature>
						<feature>cxf</feature>
						<feature>hawtio</feature>
						<feature>pax-jdbc</feature>
						<feature>pax-jdbc-config</feature>
						<feature>jdbc</feature>
						<feature>pax-jdbc-mysql</feature>
					</startupFeatures>
					<bootFeatures>
						<feature>standard</feature>
					</bootFeatures>
					<installedFeatures>
					</installedFeatures>
					<excludedArtifactIds>
						<artifactId>slf4j-api</artifactId>
					</excludedArtifactIds>
					<javase>1.8</javase>
				</configuration>
			</plugin>
		</plugins>
	</build>

</project>
