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

  <groupId>org.apache.portals.applications</groupId>

  <!-- POM Identification -->

  <artifactId>apa-demo</artifactId>
  <parent>
    <groupId>org.apache.portals</groupId>
    <artifactId>applications-pom</artifactId>
    <version>1.1</version>
  </parent>
  <packaging>war</packaging>
  <name>Apache Portals Applications Demo Application</name>
  <version>1.0</version>
  <description>Portals Applications Demo</description>

  <properties>
    <portals.portlet2-api-spec.version>1.0</portals.portlet2-api-spec.version>
    <portals.applications.apa-gems.version>1.0</portals.applications.apa-gems.version>
    <velocity.version>1.5</velocity.version>
    <velocity-tools.version>1.3</velocity-tools.version>
    <org.apache.portals.bridges.common.version>1.0.4</org.apache.portals.bridges.common.version>
    <org.apache.portals.bridges.velocity.version>1.0.4</org.apache.portals.bridges.velocity.version>
    <org.apache.portals.bridges.groovy.version>1.0.4</org.apache.portals.bridges.groovy.version>
    <slf4j.version>1.5.6</slf4j.version>
    <log4j.version>1.2.14</log4j.version>
    <javax.servlet.jstl.version>1.1.2</javax.servlet.jstl.version>
    <javax.servlet.version>2.4</javax.servlet.version>
    <taglibs-standard.version>1.1.2</taglibs-standard.version>
    <taglibs-random.version>1.0.2</taglibs-random.version>
    <taglibs-request.version>1.0.1</taglibs-request.version>
    <javax.servlet.version>2.4</javax.servlet.version>
    <javax.servlet.jsp.version>2.0</javax.servlet.jsp.version>
    <asm.version>2.2</asm.version>
    <antlr.version>2.7.6</antlr.version>
    <castor.version>1.1.1-xml</castor.version>
    <groovy.version>1.1-beta-2</groovy.version>
    <commons-collections.version>3.2</commons-collections.version>
    <commons-digester.version>1.8</commons-digester.version>
    <commons-lang.version>2.1</commons-lang.version>
  </properties>

  <!-- Dependencies -->

  <dependencies>

    <!-- Build Dependencies -->
    <dependency>
      <groupId>org.apache.portals</groupId>
      <artifactId>portlet-api_2.0_spec</artifactId>
      <version>${portals.portlet2-api-spec.version}</version>
      <scope>provided</scope>
    </dependency>
    <dependency>
      <groupId>javax.servlet</groupId>
      <artifactId>servlet-api</artifactId>
      <version>${javax.servlet.version}</version>
      <scope>provided</scope>
    </dependency>
    <dependency>
      <groupId>javax.servlet.jsp</groupId>
      <artifactId>jsp-api</artifactId>
      <version>${javax.servlet.jsp.version}</version>
      <scope>provided</scope>
    </dependency>
    <dependency>
      <groupId>velocity</groupId>
      <artifactId>velocity</artifactId>
      <version>${velocity.version}</version>
    </dependency>
    <dependency>
      <groupId>org.apache.portals.applications</groupId>
      <artifactId>apa-gems</artifactId>
      <version>${portals.applications.apa-gems.version}</version>
      <scope>runtime</scope>
    </dependency>
    <dependency>
      <groupId>javax.servlet</groupId>
      <artifactId>jstl</artifactId>
      <version>${javax.servlet.jstl.version}</version>
      <scope>runtime</scope>
    </dependency>
    <dependency>
      <groupId>taglibs</groupId>
      <artifactId>standard</artifactId>
      <version>${taglibs-standard.version}</version>
      <scope>runtime</scope>
    </dependency>
    <dependency>
      <groupId>taglibs</groupId>
      <artifactId>request</artifactId>
      <version>${taglibs-request.version}</version>
      <scope>runtime</scope>
    </dependency>
    <dependency>
      <groupId>org.apache.portals.bridges</groupId>
      <artifactId>portals-bridges-common</artifactId>
      <version>${org.apache.portals.bridges.common.version}</version>
      <scope>provided</scope>
    </dependency>
    <dependency>
      <groupId>org.apache.portals.bridges</groupId>
      <artifactId>portals-bridges-velocity</artifactId>
      <version>${org.apache.portals.bridges.velocity.version}</version>
    </dependency>
    <dependency>
      <groupId>org.apache.portals.bridges</groupId>
      <artifactId>portals-bridges-groovy</artifactId>
      <version>${org.apache.portals.bridges.groovy.version}</version>
      <exclusions>
        <exclusion>
          <groupId>org.apache.portals.jetspeed-2</groupId>
          <artifactId>jetspeed-api</artifactId>
        </exclusion>
      </exclusions>
    </dependency>
    <dependency>
      <groupId>velocity-tools</groupId>
      <artifactId>velocity-tools</artifactId>
      <version>${velocity-tools.version}</version>
      <scope>runtime</scope>
    </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>org.slf4j</groupId>
      <artifactId>jcl-over-slf4j</artifactId>
      <version>${slf4j.version}</version>
    </dependency>
    <dependency>
      <groupId>commons-collections</groupId>
      <artifactId>commons-collections</artifactId>
      <version>${commons-collections.version}</version>
      <scope>runtime</scope>
    </dependency>
    <dependency>
      <groupId>commons-digester</groupId>
      <artifactId>commons-digester</artifactId>
      <version>${commons-digester.version}</version>
      <scope>runtime</scope>
      <exclusions>
        <exclusion>
          <groupId>commons-logging</groupId>
          <artifactId>commons-logging</artifactId>
        </exclusion>
      </exclusions>
    </dependency>
    <dependency>
      <groupId>commons-lang</groupId>
      <artifactId>commons-lang</artifactId>
      <scope>runtime</scope>
      <version>${commons-lang.version}</version>
    </dependency>
    <dependency>
      <groupId>log4j</groupId>
      <artifactId>log4j</artifactId>
      <version>${log4j.version}</version>
      <scope>runtime</scope>
    </dependency>
    <!-- for groovy -->
    <dependency>
      <groupId>groovy</groupId>
      <artifactId>groovy</artifactId>
      <version>${groovy.version}</version>
      <scope>runtime</scope>
    </dependency>
    <dependency>
      <groupId>asm</groupId>
      <artifactId>asm</artifactId>
      <version>${asm.version}</version>
      <scope>runtime</scope>
    </dependency>
    <dependency>
      <groupId>antlr</groupId>
      <artifactId>antlr</artifactId>
      <version>${antlr.version}</version>
      <scope>runtime</scope>
    </dependency>
    <dependency>
      <groupId>castor</groupId>
      <artifactId>castor</artifactId>
      <version>${castor.version}</version>
      <scope>runtime</scope>
    </dependency>
  </dependencies>

  <!-- Project Information -->

  <scm>
    <connection>scm:svn:http://svn.apache.org/repos/asf/portals/applications/demo/tags/apa-demo-1.0</connection>
    <developerConnection>scm:svn:https://svn.apache.org/repos/asf/portals/applications/demo/tags/apa-demo-1.0</developerConnection>
    <url>http://svn.apache.org/viewcvs.cgi/portals/applications/demo/tags/apa-demo-1.0</url>
  </scm>

   <build>
   
     <plugins>
      <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>
          <!-- suppress generation of -javadoc for the war as the m-r-r-p doesn't see it/doesn't add legal files to it? -->
          <skip>true</skip>
        </configuration>
      </plugin>
      <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>
     </plugins>
   </build>

  <profiles>
    <profile>
      <id>rat</id>
      <build>
        <plugins>
          <plugin>
            <groupId>org.codehaus.mojo</groupId>
            <artifactId>rat-maven-plugin</artifactId>            
            <configuration>
              <excludes combine.children="append">
                <exclude>src/main/webapp/META-INF/SLF4J-LICENSE</exclude>
                <exclude>src/main/webapp/META-INF/ANTLR2-LICENSE</exclude>
                <exclude>src/main/webapp/META-INF/ASM-LICENSE</exclude>
              </excludes>
            </configuration>
          </plugin>
        </plugins>
      </build>
    </profile>
    <profile>
      <id>apache-release</id>
      <build>
        <plugins>
          <plugin>
            <!-- only include this in top level project poms -->
            <groupId>org.apache.maven.plugins</groupId>
            <artifactId>maven-assembly-plugin</artifactId>
          </plugin>
        </plugins>
      </build>
    </profile>
  </profiles>

</project>
