<?xml version="1.0" encoding="UTF-8"?>
<!-- Copyright (C) Red Hat, Inc. http://redhat.com 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/xsd/maven-4.0.0.xsd">
  <parent>
    <groupId>org.jboss.amq</groupId>
    <artifactId>mq-project</artifactId>
    <version>6.2.0.redhat-099</version>
  </parent>
  <modelVersion>4.0.0</modelVersion>

  <groupId>org.jboss.amq</groupId>
  <artifactId>jboss-a-mq-cpp</artifactId>
  <packaging>pom</packaging>

  <name>JBoss A-MQ CMS Client :: Distribution</name>

  <prerequisites>
    <maven>3.0.2</maven>
  </prerequisites>

  <build>
    <defaultGoal>install</defaultGoal>
    <plugins>
      <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-assembly-plugin</artifactId>
        <executions>
          <execution>
            <id>unix-bin</id>
            <phase>package</phase>
            <goals>
              <goal>single</goal>
            </goals>
            <configuration>
              <descriptors>
                <descriptor>src/main/descriptors/assembly.xml</descriptor>
              </descriptors>
              <finalName>${project.artifactId}-${project.version}</finalName>
              <appendAssemblyId>false</appendAssemblyId>
              <filters>
                <filter>${project.basedir}/src/main/descriptors/unix.properties</filter>
              </filters>
            </configuration>
          </execution>
        </executions>
      </plugin>
      <plugin>
        <groupId>com.googlecode.maven-download-plugin</groupId>
        <artifactId>maven-download-plugin</artifactId>
        <version>1.1.0</version>
        <executions>
          <execution>
            <id>download-activemq-cpp-tar</id>
            <phase>prepare-package</phase>
            <goals>
              <goal>wget</goal>
            </goals>
            <configuration>
              <url>http://www.eu.apache.org/dist/activemq/activemq-cpp/${activemqcpp.version}/activemq-cpp-library-${activemqcpp.version}-src.tar.gz</url>
              <unpack>false</unpack>
              <outputDirectory>target/dependencies/</outputDirectory>
            </configuration>
          </execution>
          <execution>
            <id>download-activemq-cpp-zip</id>
            <phase>prepare-package</phase>
            <goals>
              <goal>wget</goal>
            </goals>
            <configuration>
              <url>http://www.eu.apache.org/dist/activemq/activemq-cpp/${activemqcpp.version}/activemq-cpp-library-${activemqcpp.version}-src.zip</url>
              <unpack>false</unpack>
              <outputDirectory>target/dependencies/</outputDirectory>
            </configuration>
          </execution>
        </executions>
      </plugin>
    </plugins>
    <pluginManagement>
      <plugins>
        <!--This plugin's configuration is used to store Eclipse m2e settings only. It has no influence
          on the Maven build itself. -->
        <plugin>
          <groupId>org.eclipse.m2e</groupId>
          <artifactId>lifecycle-mapping</artifactId>
          <version>1.0.0</version>
          <configuration>
            <lifecycleMappingMetadata>
              <pluginExecutions>
                <pluginExecution>
                  <pluginExecutionFilter>
                    <groupId>
                      org.apache.karaf.tooling
                    </groupId>
                    <artifactId>
                      features-maven-plugin
                    </artifactId>
                    <versionRange>
                      [2.2.2-fuse-02-06,)
                    </versionRange>
                    <goals>
                      <goal>
                        add-features-to-repo
                      </goal>
                    </goals>
                  </pluginExecutionFilter>
                  <action>
                    <ignore />
                  </action>
                </pluginExecution>
              </pluginExecutions>
            </lifecycleMappingMetadata>
          </configuration>
        </plugin>
      </plugins>
    </pluginManagement>
  </build>
</project>
