<?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">
    <parent>
        <groupId>org.atmosphere</groupId>
        <artifactId>atmosphere-project</artifactId>
        <version>0.6.3</version>
    </parent>
    <modelVersion>4.0.0</modelVersion>
    <groupId>org.atmosphere.samples</groupId>
    <artifactId>atmosphere-samples</artifactId>
    <packaging>pom</packaging>
    <version>0.6.3</version>
    <name>atmosphere-samples</name>
    <modules>
        <module>commons</module>
        <module>chat</module>
        <module>flickr-comet</module>
        <module>rest-chat</module>
        <module>rest-cluster-chat</module>
        <module>twitter</module>
        <module>rest-twitter</module>
        <module>counter-longpolling</module>
        <module>rest-counter</module>
        <module>bayeux</module>
        <module>scala-chat</module>
        <module>tictactoe</module>
        <module>gwt-auction</module>
        <module>spade-chat</module>
        <module>meteor-chat</module>
        <module>pubsub</module>
        <module>jquery-pubsub</module>
        <module>appengine-chat</module>
        <module>twitter-live-feed</module>
        <module>scala-longpolling-chat</module>
        <module>chat-guice</module>
        <module>websocket-chat</module>
        <module>wicket-clock</module>
    </modules>
    <build>
        <finalName>${artifactId}</finalName>
        <plugins>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-compiler-plugin</artifactId>
                <configuration>
                    <source>1.5</source>
                    <target>1.5</target>
                </configuration>
            </plugin>
        </plugins>
    </build>
    <dependencies>
        <dependency>
            <groupId>org.atmosphere</groupId>
            <artifactId>atmosphere-runtime</artifactId>
            <version>${pom.version}</version>
        </dependency>
        <dependency>
            <groupId>org.apache.geronimo.specs</groupId>
            <artifactId>geronimo-servlet_3.0_spec</artifactId>
            <version>1.0</version>
            <scope>provided</scope>
        </dependency>
    </dependencies>
    <profiles>
        <profile>
            <id>tomcat</id>
            <dependencies>
                <dependency>
                    <groupId>org.atmosphere</groupId>
                    <artifactId>atmosphere-runtime</artifactId>
                    <version>${pom.version}</version>
                    <exclusions>
                        <exclusion>
                            <groupId>org.atmosphere</groupId>
                            <artifactId>atmosphere-compat-tomcat</artifactId>
                        </exclusion>
                    </exclusions>
                </dependency>
            </dependencies>
            <build>
                <plugins>
                    <plugin>
                        <artifactId>maven-war-plugin</artifactId>
                        <configuration>
                            <packagingExcludes>WEB-INF/context.xml,META-INF/context.xml</packagingExcludes>
                        </configuration>
                    </plugin>
                </plugins>
            </build>
        </profile>
        <profile>
            <id>jbossweb</id>
            <dependencies>
                <dependency>
                    <groupId>org.atmosphere</groupId>
                    <artifactId>atmosphere-runtime</artifactId>
                    <version>${pom.version}</version>
                    <exclusions>
                        <exclusion>
                            <groupId>org.atmosphere</groupId>
                            <artifactId>atmosphere-compat-jbossweb</artifactId>
                        </exclusion>
                    </exclusions>
                </dependency>
            </dependencies>
            <build>
                <plugins>
                    <plugin>
                        <artifactId>maven-war-plugin</artifactId>
                        <configuration>
                            <packagingExcludes>WEB-INF/context.xml,META-INF/context.xml</packagingExcludes>
                        </configuration>
                    </plugin>
                </plugins>
            </build>
        </profile>
    </profiles>
</project>
