<?xml version="1.0"?>
<project
	xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"
	xmlns="http://maven.apache.org/POM/4.0.0"
	xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
	<modelVersion>4.0.0</modelVersion>
	<parent>
		<groupId>com.smcentral</groupId>
		<artifactId>smcentral</artifactId>
		<version>${revision}</version>
	</parent>
	<artifactId>core-karaf</artifactId>
	<name>SMCentral :: Core :: Karaf</name>
	<packaging>karaf-assembly</packaging>

	<url>http://maven.apache.org</url>
	<properties>
		<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
	</properties>

	<dependencies>
		<dependency>
			<!-- scope is compile so all features (there is only one) are installed 
				into startup.properties and the feature repository itself is not added in 
				etc/org.apache.karaf.features.cfg file -->
			<groupId>org.apache.karaf.features</groupId>
			<artifactId>framework</artifactId>
			<version>${karaf.version}</version>
			<type>kar</type>
		</dependency>
		<dependency>
			<!-- scope is runtime so the feature repository is listed in etc/org.apache.karaf.features.cfg 
				file, and features will installed into the system directory -->
			<groupId>org.apache.karaf.features</groupId>
			<artifactId>standard</artifactId>
			<version>${karaf.version}</version>
			<classifier>features</classifier>
			<type>xml</type>
			<scope>runtime</scope>
		</dependency>
		
		<!-- Jackson -->
		<dependency>
			<groupId>com.smcentral</groupId>
			<artifactId>core-feature-jackson</artifactId>
			<version>${project.version}</version>
			<classifier>features</classifier>
			<type>xml</type>
			<scope>runtime</scope>
		</dependency>
		
		<!-- Apache CXF -->
		<dependency>
			<groupId>org.apache.cxf.karaf</groupId>
			<artifactId>cxf-karaf-commands</artifactId>
			<version>${cxf.version}</version>
			<scope>runtime</scope>
		</dependency>
		<dependency>
			<groupId>org.apache.cxf.karaf</groupId>
			<artifactId>apache-cxf</artifactId>
			<version>${cxf.version}</version>
			<type>xml</type>
			<classifier>features</classifier>
			<scope>runtime</scope>
		</dependency>
		
		<!-- SM Central -->
		<dependency>
			<groupId>com.smcentral</groupId>
			<artifactId>core-feature-foss</artifactId>
			<version>${project.version}</version>
			<classifier>features</classifier>
			<type>xml</type>
			<scope>runtime</scope>
		</dependency>
		<dependency>
			<groupId>com.smcentral</groupId>
			<artifactId>core-jetty-fragment</artifactId>
			<version>${project.version}</version>
			<scope>runtime</scope>
		</dependency>
		<dependency>
			<groupId>com.smcentral</groupId>
			<artifactId>core-ojdbc</artifactId>
			<version>${project.version}</version>
			<scope>runtime</scope>
		</dependency>
		<dependency>
			<groupId>com.smcentral</groupId>
			<artifactId>core</artifactId>
			<version>${project.version}</version>
			<scope>runtime</scope>
		</dependency>
		<dependency>
			<groupId>com.smcentral</groupId>
			<artifactId>core-apidocs</artifactId>
			<version>${project.version}</version>
			<scope>runtime</scope>
		</dependency>
		<dependency>
			<groupId>com.smcentral</groupId>
			<artifactId>core-ui</artifactId>
			<version>${project.version}</version>
			<scope>runtime</scope>
		</dependency>
	</dependencies>
	<build>
		<!-- if you want to include resources in the distribution -->
		<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>
			<!-- karaf-maven-plugin will call both assembly and archive goals -->
			<plugin>
				<groupId>org.apache.karaf.tooling</groupId>
				<artifactId>karaf-maven-plugin</artifactId>
				<version>${karaf.version}</version>
				<extensions>true</extensions>
				<configuration>
					<archiveZip>false</archiveZip>
					<startupFeatures>
					</startupFeatures>
					<bootFeatures>
						<feature>standard</feature>
						<feature>core-feature-foss</feature>
						<feature>core-feature-jackson</feature>
						<feature>war</feature>
						<feature>cxf-karaf-commands</feature>
						<feature>cxf</feature>
					</bootFeatures>
					<installedFeatures>
						<feature>wrapper</feature>
					</installedFeatures>
				</configuration>
			</plugin>
		</plugins>
	</build>
</project>
