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

    <parent>
        <groupId>com.atlassian.crowd</groupId>
        <artifactId>atlassian-crowd</artifactId>
        <version>2.6.2-rc</version>
    </parent>

    <groupId>com.atlassian.crowd.distribution</groupId>
    <artifactId>crowd-distribution</artifactId>
    <packaging>pom</packaging>
    <name>Atlassian Crowd Distribution Project</name>
    <inceptionYear>2007</inceptionYear>

    <modules>
        <module>common</module>
        <module>crowd-plugin-test-resources</module>
        <module>server-war</module>
        <module>openid-war</module>
        <module>standalone</module>
        <module>source</module>
        <module>crowd-integration-client</module>
        <module>crowd-client-libraries</module>
        <module>crowd-tomcat-libraries</module>
    </modules>

    <properties>
        <crowd.version>${project.version}</crowd.version>
        <maven.version.source>3.0.4</maven.version.source>
    </properties>

    <!-- Fail the build early with Maven 2.
          (MNG-4840; it won't work under M3, but we don't care) -->
    <prerequisites>
        <maven>3.0.4</maven>
    </prerequisites>

    <build>
        <plugins>
            <!-- Full Crowd releases require Maven 3 -->
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-enforcer-plugin</artifactId>
                <executions>
                    <!-- Ensure Crowd releases have Maven 3 -->
                    <execution>
                        <id>enforce-build-environment</id>
                        <goals>
                            <goal>enforce</goal>
                        </goals>
                        <configuration>
                            <rules>
                                <requireMavenVersion>
                                    <version>3.0.4</version>
                                </requireMavenVersion>
                            </rules>
                        </configuration>
                    </execution>
                </executions>
            </plugin>
        </plugins>

        <pluginManagement>
            <plugins>
                <plugin>
                    <artifactId>maven-assembly-plugin</artifactId>
                    <configuration>
                        <finalName>${project.build.finalName}-${project.version}</finalName>
                        <tarLongFileMode>gnu</tarLongFileMode>
                        <archive>
                            <compress>true</compress>
                        </archive>
                    </configuration>
                </plugin>
                <plugin>
                    <groupId>com.atlassian.maven.plugins</groupId>
                    <artifactId>maven-clover2-plugin</artifactId>
                    <configuration>
                        <skip>true</skip>
                    </configuration>
                </plugin>
            </plugins>
        </pluginManagement>
    </build>

    <dependencyManagement>
        <dependencies>
            <dependency>
                <groupId>com.atlassian.crowd.distribution</groupId>
                <artifactId>crowd-common-distribution</artifactId>
                <version>${project.version}</version>
                <scope>runtime</scope>
            </dependency>
            <dependency>
                <groupId>org.apache.maven</groupId>
                <artifactId>apache-maven</artifactId>
                <version>${maven.version.source}</version>
                <type>zip</type>
                <classifier>bin</classifier>
            </dependency>
        </dependencies>
    </dependencyManagement>
</project>
