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

<!-- $Rev$ $Date$ -->

<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>org.apache.geronimo.plugins</groupId>
        <artifactId>plugins</artifactId>
        <version>3.0.2-SNAPSHOT</version>
    </parent>

    <artifactId>tomcat</artifactId>
    <name>Geronimo Plugins, Tomcat</name>
    <packaging>pom</packaging>

    <description>
        Tomcat plugin
    </description>
    <profiles>
        <profile>
            <id>all-subprojects</id>
            <modules>
                <module>geronimo-tomcat7</module>
                <module>geronimo-tomcat7-builder</module>
                <module>tomcat7</module>
                <module>tomcat7-no-ha</module>
                <module>tomcat7-deployer</module>
                <module>geronimo-tomcat7-clustering-wadi</module>
                <module>geronimo-tomcat7-clustering-builder-wadi</module>
                <module>tomcat7-clustering-wadi</module>
                <module>tomcat7-clustering-builder-wadi</module>
            </modules>
        </profile>
        <profile>
            <id>all</id>

            <activation>
                <activeByDefault>true</activeByDefault>
            </activation>

            <modules>
                <module>geronimo-tomcat7</module>
                <module>geronimo-tomcat7-builder</module>
                <module>tomcat7</module>
                <module>tomcat7-no-ha</module>
                <module>tomcat7-deployer</module>
                <module>geronimo-tomcat7-clustering-wadi</module>
                <module>geronimo-tomcat7-clustering-builder-wadi</module>
                <module>tomcat7-clustering-wadi</module>
                <module>tomcat7-clustering-builder-wadi</module>
            </modules>
        </profile>
        <profile>
            <id>noclustering</id>

            <activation>
                <property>
                    <name>buildclustering</name>
                    <value>false</value>
                </property>
            </activation>

            <modules>
                <module>geronimo-tomcat7</module>
                <module>geronimo-tomcat7-builder</module>
                <module>tomcat7</module>
                <module>tomcat7-no-ha</module>
                <module>tomcat7-deployer</module>                
            </modules>
        </profile>
    </profiles>

    

    <dependencyManagement>
        <dependencies>
            <!-- Tomcat web container -->
            <dependency>
                <groupId>${tomcatGroupId}</groupId>
                <artifactId>jasper</artifactId>
                <version>${tomcatVersion}</version>
                <exclusions>
                    <!--exclusion>
                        <groupId>${tomcatGroupId}</groupId>
                        <artifactId>servlet-api</artifactId>
                    </exclusion-->
                    <exclusion>
                        <groupId>${tomcatGroupId}</groupId>
                        <artifactId>juli</artifactId>
                    </exclusion>
                    <!--exclusion>
                        <groupId>${tomcatGroupId}</groupId>
                        <artifactId>jsp-api</artifactId>
                    </exclusion-->
                    <!--exclusion>
                        <groupId>${tomcatGroupId}</groupId>
                        <artifactId>el-api</artifactId>
                    </exclusion-->
                    <exclusion>
                        <groupId>${tomcatGroupId}</groupId>
                        <artifactId>catalina</artifactId>
                    </exclusion>
                    <!--exclusion>
                        <groupId>${tomcatGroupId}</groupId>
                        <artifactId>annotations-api</artifactId>
                    </exclusion-->
                </exclusions>
            </dependency>
            <dependency>
                <groupId>${tomcatGroupId}</groupId>
                <artifactId>jasper-el</artifactId>
                <version>${tomcatVersion}</version>
                <exclusions>
                    <!--exclusion>
                        <groupId>${tomcatGroupId}</groupId>
                        <artifactId>servlet-api</artifactId>
                    </exclusion-->
                    <exclusion>
                        <groupId>${tomcatGroupId}</groupId>
                        <artifactId>juli</artifactId>
                    </exclusion>
                    <!--exclusion>
                        <groupId>${tomcatGroupId}</groupId>
                        <artifactId>jsp-api</artifactId>
                    </exclusion>
                    <exclusion>
                        <groupId>${tomcatGroupId}</groupId>
                        <artifactId>el-api</artifactId>
                    </exclusion-->
                    <exclusion>
                        <groupId>${tomcatGroupId}</groupId>
                        <artifactId>catalina</artifactId>
                    </exclusion>
                    <!--exclusion>
                        <groupId>${tomcatGroupId}</groupId>
                        <artifactId>annotations-api</artifactId>
                    </exclusion-->
                </exclusions>
            </dependency>

<!-- should never be used, use pax logging version instead
            <dependency>
                <groupId>${tomcatGroupId}</groupId>
                <artifactId>juli</artifactId>
                <version>${tomcatVersion}</version>
            </dependency>
  -->
            <dependency>
                <groupId>${tomcatGroupId}</groupId>
                <artifactId>catalina</artifactId>
                <version>${tomcatVersion}</version>
                <exclusions>
                    <exclusion>
                        <groupId>${tomcatGroupId}</groupId>
                        <artifactId>juli</artifactId>
                    </exclusion>
                    <exclusion>        
                        <groupId>org.apache.geronimo.specs</groupId>
                        <artifactId>geronimo-javamail_1.4_spec</artifactId>
                    </exclusion>
                </exclusions>
            </dependency>

            <dependency>
                <groupId>${tomcatGroupId}</groupId>
                <artifactId>catalina-ha</artifactId>
                <version>${tomcatVersion}</version>
                <exclusions>
                    <exclusion>
                        <groupId>${tomcatGroupId}</groupId>
                        <artifactId>juli</artifactId>
                    </exclusion>
                 </exclusions>
            </dependency>
            <dependency>
                <groupId>${tomcatGroupId}</groupId>
                <artifactId>tribes</artifactId>
                <version>${tomcatVersion}</version>
                <exclusions>
                    <exclusion>
                        <groupId>${tomcatGroupId}</groupId>
                        <artifactId>juli</artifactId>
                    </exclusion>
                </exclusions>
            </dependency>

            <dependency>
                <groupId>${tomcatGroupId}</groupId>
                <artifactId>util</artifactId>
                <version>${tomcatVersion}</version>
                <exclusions>
                    <exclusion>
                        <groupId>${tomcatGroupId}</groupId>
                        <artifactId>juli</artifactId>
                    </exclusion>
                </exclusions>
            </dependency>   
        </dependencies>
    </dependencyManagement>

</project>
