<?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.

  $Id:$
-->
<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>
    <prerequisites>
        <maven>2.0.4</maven>
    </prerequisites>

    <!-- POM Identification -->

    <artifactId>rss</artifactId>
    <parent>
        <groupId>org.apache.portals.jetspeed-2</groupId>
        <artifactId>rss-applications</artifactId>
        <version>2.1.4</version>
        <relativePath>../pom.xml</relativePath>
    </parent>
    <packaging>war</packaging>
    <name>Jetspeed-2 RSS Application WAR</name>

    <!-- Dependencies -->

    <dependencies>

        <!-- Runtime Dependencies -->
        <dependency>
            <groupId>${pom.groupId}</groupId>
            <artifactId>jetspeed-rss</artifactId>
            <scope>runtime</scope>
        </dependency>
        <dependency>
            <groupId>velocity-tools</groupId>
            <artifactId>velocity-tools</artifactId>
            <scope>runtime</scope>
        </dependency>
        <dependency>
            <groupId>commons-digester</groupId>
            <artifactId>commons-digester</artifactId>
            <scope>runtime</scope>
        </dependency>
        <dependency>
            <groupId>commons-lang</groupId>
            <artifactId>commons-lang</artifactId>
            <scope>runtime</scope>
        </dependency>
        <dependency>
            <groupId>commons-collections</groupId>
            <artifactId>commons-collections</artifactId>
            <scope>runtime</scope>
        </dependency>        
        <dependency>
            <groupId>oro</groupId>
            <artifactId>oro</artifactId>
            <scope>runtime</scope>
        </dependency>        
        <dependency>
            <groupId>log4j</groupId>
            <artifactId>log4j</artifactId>
            <scope>runtime</scope>
        </dependency>
        <dependency>
            <groupId>${pom.groupId}</groupId>
            <artifactId>jetspeed-webapp-logging</artifactId>
            <scope>runtime</scope>
        </dependency>

    </dependencies>

    <!-- Build Configuration -->

    <build>

        <!-- Plugin Configuration -->
        <pluginManagement>    
            <plugins>

                <!-- WAR plugin -->
                <plugin>
                    <groupId>org.apache.maven.plugins</groupId>
                    <artifactId>maven-war-plugin</artifactId>
                    <configuration>
                        <warSourceDirectory>../src/webapp</warSourceDirectory>
                    </configuration>
                </plugin> 

            </plugins>
        </pluginManagement>    

        <!-- Plugins -->
        <plugins>
      <plugin>
        <!--
          workaround for war processing of m-r-r-plugin causing the generated
          NOTICE and LICENSE file to be put under WEB-INF/classes/META-INF
        -->
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-remote-resources-plugin</artifactId>
        <executions>
          <execution>
            <goals>
              <goal>process</goal>
            </goals>
            <configuration>
              <outputDirectory>${project.build.directory}/${build.finalName}</outputDirectory>
              <attached>false</attached>
            </configuration>
          </execution>
        </executions>
      </plugin>
	  <plugin>
		<groupId>org.apache.maven.plugins</groupId>
         <artifactId>maven-source-plugin</artifactId>
          <configuration>
          <attach>false</attach>
         </configuration>
      </plugin>          
      <plugin>
		<groupId>org.apache.maven.plugins</groupId>
         <artifactId>maven-javadoc-plugin</artifactId>
          <configuration>
          <attach>false</attach>
         </configuration>
      </plugin>                    
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-antrun-plugin</artifactId>
                <executions>
                    <execution>
                        <id>hot-deploy-application</id>
                        <phase>install</phase>
                        <configuration>
                            <tasks>
                                <ant target="hot-deploy-war" antfile="build.xml" dir="${basedir}/../../../app-servers" inheritall="off">
                                    <property name="org.apache.jetspeed.deploy.enable"
                                              value="${org.apache.jetspeed.env.hotdeploy}"/>
                                    <property name="org.apache.jetspeed.deploy.target"
                                              value="${org.apache.jetspeed.env.deploy.target}"/>
                                    <property name="org.apache.jetspeed.server.home"
                                              value="${org.apache.jetspeed.server.home}"/>
                                    <property name="org.apache.jetspeed.deploy.groupid"
                                              value="${pom.groupId}"/>
                                    <property name="org.apache.jetspeed.deploy.artifactid"
                                              value="${pom.artifactId}"/>
                                    <property name="org.apache.jetspeed.deploy.version"
                                              value="${pom.version}"/>
                                </ant>
                            </tasks>
                        </configuration>
                        <goals>
                            <goal>run</goal>
                        </goals>
                    </execution>
                </executions>
            </plugin>
        </plugins>

    </build>

</project>
