<?xml version="1.0" encoding="UTF-8"?>
<!--

    Copyright (C) 2010 FuseSource, Corp. All rights reserved.
    http://fusesource.com

    The software in this package is published under the terms of the AGPL license
    a copy of which has been included with this distribution in the license.txt file.

-->
<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>
    <artifactId>components</artifactId>
    <groupId>org.apache.camel</groupId>
    <version>2.8.x-fuse-SNAPSHOT</version>
  </parent>

  <parent>
    <groupId>org.fusesource.rider</groupId>
    <artifactId>project</artifactId>
    <version>1.0.5-SNAPSHOT</version>
    <relativePath>../..</relativePath>
  </parent>
  -->

  <parent>
    <groupId>com.fusesource.fmc</groupId>
    <artifactId>fmc-project</artifactId>
    <version>0.9.8-beta</version>
    <relativePath>../..</relativePath>
  </parent>


  <modelVersion>4.0.0</modelVersion>
  <artifactId>camel-activemq-web</artifactId>

  <name>${project.artifactId}</name>
  <description>Camel ActiveMQ Web Application with REST support</description>
  <packaging>war</packaging>

  <properties>
    <camel.osgi.export.pkg>org.apache.camel.activemq.web.*</camel.osgi.export.pkg>

<!--
    <camel-version>2.8.x-fuse-SNAPSHOT</camel-version>
-->

  </properties>

  <dependencies>
    <dependency>
      <groupId>org.apache.camel</groupId>
      <artifactId>camel-web</artifactId>
      <version>${camel-version}</version>
      <type>war</type>
      <scope>runtime</scope>
    </dependency>

    <!-- lets add some camel components -->
    <dependency>
      <groupId>org.apache.activemq</groupId>
      <artifactId>activemq-camel</artifactId>
      <version>${activemq-version}</version>
    </dependency>

    <dependency>
      <groupId>org.apache.xbean</groupId>
      <artifactId>xbean-spring</artifactId>
      <version>${xbean-version}</version>
    </dependency>
  </dependencies>

	<repositories>
		<repository>
			<id>java.net.m2</id>
			<name>Java.net Repository for Maven</name>
			<url>http://download.java.net/maven/2/</url>
			<layout>default</layout>
		</repository>
<!--
		<repository>
			<id>glassfish-repo-archive</id>
			<name>Nexus repository collection for Glassfish</name>
			<url>http://maven.glassfish.org/content/groups/glassfish</url>
			<snapshots>
				<updatePolicy>never</updatePolicy>
			</snapshots>
		</repository>
-->
		<repository>
			<id>release.openqa.org</id>
			<name>OpenQA Releases</name>
			<url>http://archiva.openqa.org/repository/releases</url>
			<releases>
				<enabled>true</enabled>
			</releases>
			<snapshots>
				<enabled>false</enabled>
			</snapshots>
		</repository>
	</repositories>

	<pluginRepositories>
		<pluginRepository>
			<id>java.net.m2</id>
			<name>Java.net Repository for Maven</name>
			<url>http://download.java.net/maven/2/</url>
			<layout>default</layout>
		</pluginRepository>
	</pluginRepositories>


  <build>
    <plugins>
      <plugin>
				<groupId>org.mortbay.jetty</groupId>
				<artifactId>jetty-maven-plugin</artifactId>
				<version>${jetty-version}</version>

        <configuration>
          <webAppConfig>
            <contextPath>/</contextPath>
            <unpackOverlays>true</unpackOverlays>
          </webAppConfig>

          <systemProperties>
            <!-- enable easy JMX connection to JConsole -->
            <systemProperty>
              <name>com.sun.management.jmxremote</name>
              <value />
            </systemProperty>
          </systemProperties>
          <scanIntervalSeconds>0</scanIntervalSeconds>
        </configuration>
      </plugin>
    </plugins>
  </build>
</project>
