blob: c6fe311ae2a777c9e33c4a8cccfbf0fa7c0e7ade [file] [log] [blame]
<?xml version="1.0" encoding="UTF-8"?>
<!--
Licensed to the Apache Software Foundation (ASF) under one or more
contributor license agreements. See the NOTICE file distributed with
this work for additional information regarding copyright ownership.
The ASF licenses this file to You 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.apache.activemq</groupId>
<artifactId>apollo-scala</artifactId>
<version>1.7</version>
<relativePath>../apollo-scala</relativePath>
</parent>
<groupId>org.apache.activemq</groupId>
<artifactId>apollo-war</artifactId>
<packaging>war</packaging>
<version>1.7</version>
<name>${project.artifactId}</name>
<description>Packages Apollo so it be be run in a Web container.</description>
<properties>
<jetty-port>8080</jetty-port>
</properties>
<dependencies>
<!-- Core Dependency -->
<dependency>
<groupId>javax.servlet</groupId>
<artifactId>servlet-api</artifactId>
<version>2.5</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>org.apache.activemq</groupId>
<artifactId>apollo-broker</artifactId>
<version>1.7</version>
</dependency>
<dependency>
<groupId>org.apache.activemq</groupId>
<artifactId>apollo-cli</artifactId>
<version>1.7</version>
</dependency>
<dependency>
<groupId>org.apache.activemq</groupId>
<artifactId>apollo-leveldb</artifactId>
<version>1.7</version>
</dependency>
<dependency>
<groupId>org.xerial.snappy</groupId>
<artifactId>snappy-java</artifactId>
<version>1.0.3</version>
<optional>true</optional>
</dependency>
<dependency>
<groupId>org.iq80.snappy</groupId>
<artifactId>snappy</artifactId>
<version>0.2</version>
<optional>true</optional>
</dependency>
<dependency>
<groupId>org.apache.activemq</groupId>
<artifactId>apollo-bdb</artifactId>
<version>1.7</version>
</dependency>
<dependency>
<groupId>org.apache.activemq</groupId>
<artifactId>apollo-stomp</artifactId>
<version>1.7</version>
</dependency>
<dependency>
<groupId>org.apache.activemq</groupId>
<artifactId>apollo-openwire</artifactId>
<version>1.7</version>
</dependency>
<dependency>
<groupId>org.apache.activemq</groupId>
<artifactId>apollo-mqtt</artifactId>
<version>1.7</version>
</dependency>
<dependency>
<groupId>org.apache.activemq</groupId>
<artifactId>apollo-amqp</artifactId>
<version>1.7</version>
</dependency>
<dependency>
<groupId>org.apache.activemq</groupId>
<artifactId>apollo-web</artifactId>
<version>1.7</version>
<classifier>classes</classifier>
</dependency>
<dependency>
<groupId>org.apache.activemq</groupId>
<artifactId>apollo-jmx</artifactId>
<version>1.7</version>
</dependency>
<dependency>
<groupId>org.jasypt</groupId>
<artifactId>jasypt</artifactId>
<version>${jasypt-version}</version>
</dependency>
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-api</artifactId>
<version>${slf4j-version}</version>
</dependency>
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-log4j12</artifactId>
<version>${slf4j-version}</version>
</dependency>
<dependency>
<groupId>log4j</groupId>
<artifactId>log4j</artifactId>
<version>${log4j-version}</version>
</dependency>
<dependency>
<groupId>com.sun.jersey</groupId>
<artifactId>jersey-server</artifactId>
<version>${jersey-version}</version>
</dependency>
</dependencies>
<build>
<plugins>
<!-- we are going to generate the webapp resources -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-war-plugin</artifactId>
<version>2.3</version>
<configuration>
<warSourceDirectory>${project.build.directory}/webapp</warSourceDirectory>
</configuration>
</plugin>
<!-- reuse the web resources in the -web module -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-dependency-plugin</artifactId>
<version>2.8</version>
<executions>
<execution>
<id>unpack</id>
<phase>generate-resources</phase>
<goals>
<goal>unpack</goal>
</goals>
<configuration>
<artifactItems>
<artifactItem>
<groupId>org.apache.activemq</groupId>
<artifactId>apollo-web</artifactId>
<version>99-trunk-SNAPSHOT</version>
<classifier>resources</classifier>
<type>jar</type>
<overWrite>false</overWrite>
<outputDirectory>${project.build.directory}/webapp</outputDirectory>
<excludes>WEB-INF/web.xml</excludes>
</artifactItem>
</artifactItems>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<artifactId>maven-resources-plugin</artifactId>
<version>2.6</version>
<executions>
<execution>
<id>copy-resources</id>
<phase>process-resources</phase>
<goals>
<goal>copy-resources</goal>
</goals>
<configuration>
<outputDirectory>${project.build.directory}/webapp</outputDirectory>
<resources>
<resource>
<directory>src/main/webapp</directory>
<filtering>false</filtering>
</resource>
</resources>
</configuration>
</execution>
</executions>
</plugin>
<!-- let the jetty plugin know where the webapp resources are located -->
<plugin>
<groupId>org.mortbay.jetty</groupId>
<artifactId>jetty-maven-plugin</artifactId>
<version>${jetty-plugin-version}</version>
<configuration>
<webAppSourceDirectory>${project.build.directory}/webapp</webAppSourceDirectory>
<webAppConfig>
<contextPath>/</contextPath>
</webAppConfig>
<scanIntervalSeconds>0</scanIntervalSeconds>
</configuration>
</plugin>
</plugins>
</build>
<profiles>
</profiles>
</project>