<?xml version="1.0" encoding="UTF-8"?>
<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">
<!--
    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.
-->
    <modelVersion>4.0.0</modelVersion>

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

    <!--
     * Please do not use this pom for other deltaspike modules.
     * Instead use the one from parent/pom.xml!
     *
     * This very pom.xml contains only the basic build layout
     * and no build-rules at all. See parent/pom.xml for all
     * the dependencyManagement and plugin configuration stuff.
    -->
    <groupId>org.apache.deltaspike</groupId>
    <artifactId>deltaspike-project</artifactId>
    <version>1.0.3</version>
    <packaging>pom</packaging>

    <name>Apache DeltaSpike</name>
    <description>
        Apache DeltaSpike CDI Extensions.
    </description>
    <url>http://deltaspike.apache.org</url>

    <scm>
        <connection>scm:git:https://git-wip-us.apache.org/repos/asf/deltaspike.git</connection>
        <developerConnection>scm:git:https://git-wip-us.apache.org/repos/asf/deltaspike.git</developerConnection>
        <url>https://git-wip-us.apache.org/repos/asf/deltaspike.git</url>
        <tag>deltaspike-project-1.0.3</tag>
    </scm>

    <modules>
        <module>checkstyle-rules</module>
        <module>parent</module>
        <module>test-utils</module>
        <module>core</module>
        <module>cdictrl</module>
        <module>modules</module>
        <module>examples</module>
    </modules>

    <build>
        <pluginManagement>
            <plugins>
                <plugin>
                    <groupId>org.apache.rat</groupId>
                    <artifactId>apache-rat-plugin</artifactId>
                    <version>0.8</version>
                    <configuration>
                        <excludes>
                            <exclude>.idea/**/*</exclude>
                            <exclude>readme/**/*</exclude>
                            <exclude>**/*.log</exclude>
                        </excludes>
                    </configuration>
                </plugin>

                <plugin>
                    <groupId>org.apache.maven.plugins</groupId>
                    <artifactId>maven-release-plugin</artifactId>
                    <version>2.3.1</version>
                    <configuration>
                        <pushChanges>false</pushChanges>
                        <localCheckout>true</localCheckout>
                        <autoVersionSubmodules>true</autoVersionSubmodules>
                        <releaseProfiles>distribution</releaseProfiles>
                    </configuration>
                </plugin>

                <plugin>
                    <groupId>org.apache.maven.plugins</groupId>
                    <artifactId>maven-remote-resources-plugin</artifactId>
                    <version>1.3</version>
                    <executions>
                        <execution>
                            <id>process-remote-resources</id>
                            <goals>
                                <goal>process</goal>
                            </goals>
                            <configuration>
                                <resourceBundles>
                                    <!-- Include the Incubating disclaimer -->
                                    <resourceBundle>org.apache:apache-incubator-disclaimer-resource-bundle:1.1</resourceBundle>
                                </resourceBundles>
                            </configuration>
                        </execution>
                    </executions>
                </plugin>
            </plugins>
        </pluginManagement>
    </build>

    <profiles>
        <profile>
            <id>rat</id>
            <build>
                <plugins>
                    <plugin>
                        <groupId>org.apache.rat</groupId>
                        <artifactId>apache-rat-plugin</artifactId>
                        <executions>
                            <execution>
                                <phase>validate</phase>
                                <goals>
                                    <goal>check</goal>
                                </goals>
                            </execution>
                        </executions>
                    </plugin>
                </plugins>
            </build>
        </profile>
        <profile>
            <id>distribution</id>
            <modules>
                <module>checkstyle-rules</module>
                <module>parent</module>
                <module>test-utils</module>
                <module>core</module>
                <module>cdictrl</module>
                <module>modules</module>
                <module>examples</module>
                <module>dist</module>
            </modules>
        </profile>
    </profiles>
</project>
