<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">
    <parent>
        <groupId>com.atlassian.crowd.distribution</groupId>
        <artifactId>crowd-distribution</artifactId>
        <version>1.5-studio-1</version>
    </parent>
    <modelVersion>4.0.0</modelVersion>
    
    <artifactId>crowd-standalone-distribution</artifactId>
    <version>1.5-studio-1</version>

    <packaging>pom</packaging>
    <name>Atlassian Crowd Standalone Distribution</name>
    
    <dependencies>
        <dependency>
            <groupId>com.atlassian.crowd.distribution</groupId>
            <artifactId>crowd-common-distribution</artifactId>
        </dependency>
        <dependency>
            <groupId>com.atlassian.crowd</groupId>
            <artifactId>crowd-demo-app</artifactId>
            <type>war</type>
            <version>${pom.version}</version>
        </dependency>
        <dependency>
            <groupId>com.atlassian.crowd</groupId>
            <artifactId>crowd-openid-client</artifactId>
            <type>war</type>
            <version>${pom.version}</version>
        </dependency>
        <dependency>
            <groupId>com.atlassian.crowd</groupId>
            <artifactId>crowd-openid-server</artifactId>
            <type>war</type>
            <version>${pom.version}</version>
        </dependency>
        <!-- Console -->
        <dependency>
            <groupId>com.atlassian.crowd</groupId>
            <artifactId>crowd-web-app</artifactId>
            <type>war</type>
            <version>${pom.version}</version>
        </dependency>
        <dependency>
            <groupId>com.atlassian.crowd</groupId>
            <artifactId>crowd-client-libraries</artifactId>
            <type>zip</type>
            <version>${pom.version}</version>
        </dependency>
        
        <!-- javadoc
        <dependency>
            <groupId>com.atlassian.crowd</groupId>
            <artifactId>crowd-javadoc</artifactId>
            <type>zip</type>
            <version>${pom.version}</version>
        </dependency>
	-->
        
        <!-- demo app source -->
        <dependency>
            <groupId>com.atlassian.crowd</groupId>
            <artifactId>crowd-demo-app</artifactId>
            <type>java-source</type>
            <version>${pom.version}</version>
        </dependency>
        
        <!-- tomcat libraries -->
        <dependency>
            <groupId>com.atlassian.crowd</groupId>
            <artifactId>crowd-tomcat-libraries</artifactId>
            <type>zip</type>
            <version>${pom.version}</version>
        </dependency>
        
        <dependency>
            <groupId>org.apache.tomcat</groupId>
            <artifactId>apache-tomcat</artifactId>
            <version>${tomcat5x.version}</version>
            <type>zip</type>
        </dependency>
        
    </dependencies>
    <groupId>com.atlassian.crowd</groupId>
    <build>
        <finalName>atlassian-crowd</finalName>
        <plugins>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-dependency-plugin</artifactId>
                <executions>
                    <execution>
                        <id>unpack</id>
                        <phase>package</phase>
                        <goals>
                            <goal>unpack</goal>
                        </goals>
                    </execution>
                </executions>
                <configuration>
                    <artifactItems>
                        <artifactItem>
                            <groupId>org.apache.tomcat</groupId>
                            <artifactId>apache-tomcat</artifactId>
                            <version>${tomcat5x.version}</version>
                            <type>zip</type>
                            <outputDirectory>${project.build.directory}</outputDirectory>
                        </artifactItem>
                    </artifactItems>
                </configuration>
            </plugin>
            
            <plugin>
                <artifactId>maven-assembly-plugin</artifactId>
                <executions>
                    <execution>
                        <id>standalone</id>
                        <phase>package</phase>
                        <goals>
                            <goal>attached</goal>
                        </goals>
                        <configuration>
                            <descriptors>
                                <descriptor>src/main/assembly/standalone.xml</descriptor>
                            </descriptors>
                        </configuration>
                    </execution>
                </executions>
            </plugin>
        </plugins>
    </build>
    <properties>
        <!-- Ship with bundled JDK 1.4 compat -->
        <tomcat5x.version>5.5.25</tomcat5x.version>
    </properties>
</project>