<?xml version="1.0" encoding="UTF-8"?>
<!--
- Copyright 2015 Red Hat Inc. and/or its affiliates and other contributors.
-
- Licensed under the Apache License, Version 2.0 (the "License")
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
- http://www.apache.org/licenses/LICENSE-2.0
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
-->
<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.switchyard.karaf</groupId>
        <artifactId>switchyard-karaf-parent</artifactId>
        <version>2.0.1.redhat-621216</version>
    </parent>
    <artifactId>switchyard</artifactId>
    <packaging>pom</packaging>
    <name>SwitchYard: Karaf Features</name>
    <description>Feature descriptions for running Switchyard on Karaf</description>
    <url>http://switchyard.org</url>
    <properties>
        <!-- These versions align with the Karaf container. -->
        <version.commons-beanutils>1.9.2</version.commons-beanutils>
        <version.org.apache.deltaspike>1.2.1</version.org.apache.deltaspike>
        <version.org.apache.geronimo.specs.geronimo-annotation_1.0_spec>1.1.1</version.org.apache.geronimo.specs.geronimo-annotation_1.0_spec>
        <version.org.apache.geronimo.specs.geronimo-el_1.0_spec>1.0.1</version.org.apache.geronimo.specs.geronimo-el_1.0_spec>
        <version.org.apache.geronimo.specs.geronimo-jms_1.1_spec>1.1.1</version.org.apache.geronimo.specs.geronimo-jms_1.1_spec>
        <version.org.apache.geronimo.specs.geronimo-jpa_2.0_spec>1.1</version.org.apache.geronimo.specs.geronimo-jpa_2.0_spec>
        <version.org.apache.geronimo.specs.geronimo-jta_1.1_spec>1.1.1</version.org.apache.geronimo.specs.geronimo-jta_1.1_spec>
        <version.org.apache.geronimo.specs.geronimo-servlet_2.5_spec>1.2</version.org.apache.geronimo.specs.geronimo-servlet_2.5_spec>
        <version.org.apache.geronimo.specs.geronimo-servlet_3.0_spec>1.0</version.org.apache.geronimo.specs.geronimo-servlet_3.0_spec>
        <version.org.apache.geronimo.specs.geronimo-validation_1.0_spec>1.1</version.org.apache.geronimo.specs.geronimo-validation_1.0_spec>
        <geronimo.jpa-spec.version>1.1</geronimo.jpa-spec.version>
        <version.org.apache.httpcomponents.httpcore>4.4.4</version.org.apache.httpcomponents.httpcore>
        <version.org.apache.httpcomponents.httpclient>4.5.2</version.org.apache.httpcomponents.httpclient>
        <version.org.apache.myfaces.core.myfaces-bundle>2.1.15</version.org.apache.myfaces.core.myfaces-bundle>
        <version.org.apache.servicemix.bundles.antlr>2.7.7_5</version.org.apache.servicemix.bundles.antlr>
        <version.org.apache.servicemix.bundles.asm>3.3_2</version.org.apache.servicemix.bundles.asm>
        <version.org.apache.servicemix.bundles.batik>1.7_3</version.org.apache.servicemix.bundles.batik>
        <version.org.apache.servicemix.bundles.bcel>5.2_4</version.org.apache.servicemix.bundles.bcel>
        <version.org.apache.servicemix.bundles.commons-dbcp>1.4_3</version.org.apache.servicemix.bundles.commons-dbcp>
        <version.org.apache.servicemix.bundles.freemarker>2.3.21_1</version.org.apache.servicemix.bundles.freemarker>
        <version.org.apache.servicemix.bundles.jaxb-impl>2.2.11_1</version.org.apache.servicemix.bundles.jaxb-impl>
        <version.org.apache.servicemix.bundles.jaxen>1.1.6_1</version.org.apache.servicemix.bundles.jaxen>
        <version.org.apache.servicemix.bundles.saaj-impl>1.3.23_2</version.org.apache.servicemix.bundles.saaj-impl>
        <version.org.apache.servicemix.bundles.wsdl4j>1.6.3_1</version.org.apache.servicemix.bundles.wsdl4j>
        <version.org.apache.servicemix.bundles.xalan>2.7.2_3</version.org.apache.servicemix.bundles.xalan>
        <version.org.apache.servicemix.bundles.xalan-serializer>2.7.2_1</version.org.apache.servicemix.bundles.xalan-serializer>
        <version.org.apache.servicemix.bundles.xmlbeans>2.6.0_2</version.org.apache.servicemix.bundles.xmlbeans>
        <version.org.apache.servicemix.bundles.xmlresolver>1.2_5</version.org.apache.servicemix.bundles.xmlresolver>
        <version.org.apache.servicemix.specs.jsr311-api-1.1.1>2.5.0</version.org.apache.servicemix.specs.jsr311-api-1.1.1>
        <version.org.apache.xbean>3.18</version.org.apache.xbean>
        <version.org.codehaus.groovy>1.8.6</version.org.codehaus.groovy>
        <version.org.codehaus.jettison>1.3.7</version.org.codehaus.jettison>
        <version.org.eclipse.aether.aether-api>0.9.0.M3</version.org.eclipse.aether.aether-api>
        <version.org.jboss.marshalling.jboss-marshalling-osgi>1.4.5.Final</version.org.jboss.marshalling.jboss-marshalling-osgi>
        <version.org.jvnet.staxex>1.7.6</version.org.jvnet.staxex>
        <version.org.ops4j.pax.cdi>0.11.0.redhat-001</version.org.ops4j.pax.cdi>
        <version.org.ow2.asm>5.0.3</version.org.ow2.asm>
        <version.org.ow2.bundles.opencsv>1.0.23</version.org.ow2.bundles.opencsv>
        <version.org.jboss.logging.jboss-logging>3.3.0.Final</version.org.jboss.logging.jboss-logging>
        <!-- Version ranges for features allow more flexibility with dependencies, specifically when moving between community (Karaf) and product (Fuse). -->
        <version.org.apache.activemq.features>[5.9,6.0)</version.org.apache.activemq.features>
        <version.org.apache.camel.features>[2.14,3)</version.org.apache.camel.features>
        <version.org.apache.camel.sap.features>[6.2,6.3)</version.org.apache.camel.sap.features>
        <version.org.apache.cxf.features>[3,4)</version.org.apache.cxf.features>
        <version.org.hibernate.features>[4.2,4.4)</version.org.hibernate.features>
        <version.org.springframework.features>[3.2,4)</version.org.springframework.features>
    </properties>
    <build>
        <resources>
            <resource>
                <directory>src/main/resources</directory>
                <filtering>true</filtering>
            </resource>
        </resources>
        <plugins>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-resources-plugin</artifactId>
                <executions>
                    <execution>
                        <id>filter</id>
                        <phase>generate-resources</phase>
                        <goals>
                            <goal>resources</goal>
                        </goals>
                    </execution>
                </executions>
            </plugin>
            <plugin>
                <groupId>org.codehaus.mojo</groupId>
                <artifactId>build-helper-maven-plugin</artifactId>
                <executions>
                    <execution>
                        <id>attach-artifacts</id>
                        <phase>package</phase>
                        <goals>
                            <goal>attach-artifact</goal>
                        </goals>
                        <configuration>
                            <artifacts>
                                <artifact>
                                    <file>target/classes/features-karaf.xml</file>
                                    <type>xml</type>
                                    <classifier>features</classifier>
                                </artifact>
                                <artifact>
                                    <file>target/classes/features.xml</file>
                                    <type>xml</type>
                                    <classifier>core-features</classifier>
                                </artifact>
                            </artifacts>
                        </configuration>
                    </execution>
                </executions>
            </plugin>
        </plugins>
    </build>
</project>
