<?xml version="1.0"?>
<!--
/*
 * $Id$
 *
 * 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/xsd/maven-4.0.0.xsd">

    <parent>
        <groupId>org.apache.tiles</groupId>
        <artifactId>tiles-master</artifactId>
        <version>7</version>
    </parent>

    <modelVersion>4.0.0</modelVersion>
    <artifactId>tiles-site</artifactId>
    <version>2.0-SNAPSHOT</version>
    <packaging>pom</packaging>
    <name>Apache Tiles</name>
    <description>
        Tiles allows authors to define page fragments which can be assembled
        into a complete page at runtime. These fragments, or tiles, can be used
        as simple includes in order to reduce the duplication of common page
        elements or embedded within other tiles to develop a series of reusable
        templates. These templates streamline the development of a consistent
        look and feel across an entire application.
    </description>

    <scm>
        <connection>scm:svn:http://svn.apache.org/repos/asf/tiles/site/</connection>
        <developerConnection>scm:svn:https://svn.apache.org/repos/asf/tiles/site/</developerConnection>
        <url>http://svn.apache.org/viewvc/tiles/site/</url>
    </scm>

    <ciManagement />

    <issueManagement>
        <system>JIRA</system>
        <url>https://issues.apache.org/jira/browse/TILES</url>
    </issueManagement>

    <distributionManagement>
        <site>
            <id>apache-site</id>
            <url>scm:svn:https://svn.apache.org/repos/asf/tiles/site/staging/</url>
        </site>
    </distributionManagement>

    <build>
        <plugins>
            <plugin>
                <artifactId>maven-antrun-plugin</artifactId>
                <executions>
                    <execution>
                        <id>get-dtds</id>
                        <phase>site</phase>
                        <configuration>
                            <tasks>
                                <mkdir
                                    dir="${project.build.directory}/site/dtds" />
                                <get
                                    src="http://svn.apache.org/repos/asf/tiles/framework/branches/TILES_2_0_X/tiles-core/src/main/resources/org/apache/tiles/resources/tiles-config_2_0.dtd"
                                    dest="${project.build.directory}/site/dtds/tiles-config_2_0.dtd"
                                    verbose="true" ignoreerrors="true" />
                                <get
                                    src="http://svn.apache.org/repos/asf/tiles/framework/branches/TILES_2_1_X/tiles-core/src/main/resources/org/apache/tiles/resources/tiles-config_2_1.dtd"
                                    dest="${project.build.directory}/site/dtds/tiles-config_2_1.dtd"
                                    verbose="true" ignoreerrors="true" />
                                <get
                                    src="http://svn.apache.org/repos/asf/tiles/framework/branches/TILES_3_0_X/tiles-core/src/main/resources/org/apache/tiles/resources/tiles-config_3_0.dtd"
                                    dest="${project.build.directory}/site/dtds/tiles-config_3_0.dtd"
                                    verbose="true" ignoreerrors="true" />
                            </tasks>
                        </configuration>
                        <goals>
                            <goal>run</goal>
                        </goals>
                    </execution>
                </executions>
            </plugin>
            <plugin>
              <groupId>org.apache.maven.plugins</groupId>
              <artifactId>maven-scm-publish-plugin</artifactId>
              <extensions>true</extensions>
                <configuration>
                    <pubScmUrl>scm:svn:https://svn.apache.org/repos/asf/tiles/site/staging/</pubScmUrl>
                    <ignorePathsToDelete>
                        <ignorePathToDelete>framework</ignorePathToDelete>
                        <ignorePathToDelete>2.0</ignorePathToDelete>
                        <ignorePathToDelete>2.1</ignorePathToDelete>
                        <ignorePathToDelete>2.2</ignorePathToDelete>
                        <ignorePathToDelete>autotag</ignorePathToDelete>
                        <ignorePathToDelete>tiles-autotag</ignorePathToDelete>
                        <ignorePathToDelete>eval</ignorePathToDelete>
                        <ignorePathToDelete>request</ignorePathToDelete>
                        <ignorePathToDelete>tiles-request</ignorePathToDelete>
                    </ignorePathsToDelete>
                </configuration>
            </plugin>
        </plugins>

        <defaultGoal>site</defaultGoal>
    </build>

    <reporting>
        <plugins>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-project-info-reports-plugin</artifactId>
                <reportSets>
                  <reportSet>
                    <reports>
                      <report>license</report>
                      <report>project-team</report>
                      <report>mailing-list</report>
                      <report>mailing-list</report>
                    </reports>
                  </reportSet>
                </reportSets>
            </plugin>
            <plugin>
                <groupId>org.apache.rat</groupId>
                <artifactId>apache-rat-plugin</artifactId>
                <configuration>
                    <excludes>
                        <exclude>forms/invitation*.txt</exclude>
                    </excludes>
                </configuration>
            </plugin>
            <plugin>
              <groupId>org.apache.maven.plugins</groupId>
              <artifactId>maven-checkstyle-plugin</artifactId>
              <configuration>
                <skip>true</skip>
              </configuration>
            </plugin>
            <plugin>
              <groupId>org.apache.maven.plugins</groupId>
              <artifactId>maven-surefire-report-plugin</artifactId>
              <configuration>
                  <skipSurefireReport>true</skipSurefireReport>
              </configuration>
            </plugin>
        </plugins>
    </reporting>
</project>
