<?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: pom.xml 930078 2010-04-01 20:31:11Z ate $
-->
<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.9</maven>
  </prerequisites>

  <parent>
    <groupId>org.apache</groupId>
    <artifactId>apache</artifactId>
    <version>7</version>
  </parent>

  <groupId>org.apache.portals</groupId>
  <artifactId>portals-pom</artifactId>
  <name>Apache Portals</name>
  <version>1.3</version>

  <packaging>pom</packaging>

  <description>Apache Portals is a collaborative software development project dedicated to providing robust, full-featured,
    commercial-quality, and freely available Portal related software on a wide variety of platforms and programming languages.
    This project is managed in cooperation with various individuals worldwide (both independent and company-affiliated experts),
    who use the Internet to communicate, plan, and develop Portal software and related documentation.
  </description>

  <url>http://portals.apache.org</url>

  <inceptionYear>2004</inceptionYear>
  <scm>
    <connection>scm:svn:http://svn.apache.org/repos/asf/portals/portals-pom/tags/portals-pom-1.3</connection>
    <developerConnection>scm:svn:https://svn.apache.org/repos/asf/portals/portals-pom/tags/portals-pom-1.3</developerConnection>
    <url>http://svn.apache.org/viewcvs.cgi/portals/portals-pom/tags/portals-pom-1.3</url>
  </scm>

  <build>
    <pluginManagement>
      <plugins>
        <plugin>
          <groupId>org.codehaus.mojo</groupId>
          <artifactId>ianal-maven-plugin</artifactId>
          <version>1.0-alpha-1</version>
        </plugin>
        <plugin>
          <groupId>org.apache.rat</groupId>
          <artifactId>apache-rat-plugin</artifactId>
          <version>0.6</version>
        </plugin>
        <plugin>
          <groupId>org.apache.maven.plugins</groupId>
          <artifactId>maven-clean-plugin</artifactId>
          <configuration>
            <filesets>
              <fileset>
                <directory>${basedir}</directory>
                <includes>
                  <include>*.log</include>
                </includes>
                <followSymlinks>false</followSymlinks>
              </fileset>
            </filesets>
          </configuration>
        </plugin>
      </plugins>
    </pluginManagement>
    <plugins>
      <plugin>
        <groupId>org.codehaus.mojo</groupId>
        <artifactId>ianal-maven-plugin</artifactId>
        <executions>
          <execution>
            <goals>
              <goal>verify-legal-files</goal>
            </goals>
            <configuration>
              <!-- Fail the build if any artifacts are missing legal files -->
              <strict>true</strict>
            </configuration>
          </execution>
        </executions>
      </plugin>
    </plugins>
  </build>

  <profiles>
    <!--
    We should execute this profile manually to make sure that all files in our source code contain proper licenses.
    This is very important and should not be skipped in any scenario.  It is very importnt for us to follow ASF policy.
    Example:  mvn -P prepare-release install
    -->
    <profile>
      <id>rat</id>
      <build>
        <plugins>
          <plugin>
            <groupId>org.apache.rat</groupId>
            <artifactId>apache-rat-plugin</artifactId>
            <configuration>
              <excludes>
                <!--  Used by maven-remote-resources-plugin -->
                <exclude>src/main/appended-resources/META-INF/*</exclude>
                <!--  Generated by maven-remote-resources-plugin -->
                <exclude>velocity.log</exclude>
                <!-- don't check anything in target -->
                <exclude>target/*</exclude>
              </excludes>
            </configuration>
            <executions>
              <execution>
                <phase>verify</phase>
                <goals>
                  <goal>check</goal>
                </goals>
              </execution>
            </executions>
          </plugin>
        </plugins>
      </build>
    </profile>
  </profiles>
</project>
