<?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.    
-->
<project>
    <modelVersion>4.0.0</modelVersion>
    <parent>
        <groupId>org.apache.tuscany.sca</groupId>
        <artifactId>parent</artifactId>
        <version>0.1-integration-incubating-SNAPSHOT</version>
    </parent>
    <groupId>org.apache.tuscany.sca.kernel</groupId>
    <artifactId>parent</artifactId>
    <packaging>pom</packaging>
    <name>Apache Tuscany SCA Kernel Sub-Project</name>
    <version>0.1-integration-incubating-SNAPSHOT</version>

    <properties>
        <!-- version the SCA API that we implement -->
        <scaSpecVersion>1.0</scaSpecVersion>
    </properties>

    <!-- definition of repositories where the parent pom can be found -->
    <repositories>
        <repository>
            <id>apache.snapshots</id>
            <name>Apache Snapshot Repository</name>
            <url>http://people.apache.org/repo/m2-snapshot-repository</url>
            <releases>
                <enabled>false</enabled>
            </releases>
            <snapshots>
                <enabled>true</enabled>
            </snapshots>
        </repository>
        <repository>
            <id>apache.incubator</id>
            <name>Apache Incubator Repository</name>
            <url>http://people.apache.org/repo/m2-incubating-repository/</url>
            <releases>
                <enabled>true</enabled>
            </releases>
            <snapshots>
                <enabled>false</enabled>
            </snapshots>
        </repository>
    </repositories>

    <!-- dependencies used by the kernel -->
    <dependencyManagement>
        <dependencies>
            <!-- org.osoa.sca API -->
            <dependency>
                <groupId>org.osoa</groupId>
                <artifactId>sca-api-r${scaSpecVersion}</artifactId>
                <version>0.1-integration-incubating-SNAPSHOT</version>
                <scope>compile</scope>
            </dependency>

            <!-- javax.servlet API -->
            <dependency>
                <groupId>javax.servlet</groupId>
                <artifactId>servlet-api</artifactId>
                <version>2.5</version>
                <scope>provided</scope>
            </dependency>

            <!-- javax.resource.spi.Work API -->
            <dependency>
                <groupId>org.apache.geronimo.specs</groupId>
                <artifactId>geronimo-j2ee-connector_1.5_spec</artifactId>
                <version>1.0.1</version>
                <scope>provided</scope>
            </dependency>

            <!-- java.xml.stream API -->
            <dependency>
                <groupId>stax</groupId>
                <artifactId>stax-api</artifactId>
                <version>1.0.1</version>
                <scope>compile</scope>
            </dependency>

            <!-- junit version -->
            <dependency>
                <groupId>junit</groupId>
                <artifactId>junit</artifactId>
                <version>4.2</version>
                <scope>test</scope>
            </dependency>

            <!-- EasyMock version -->
            <dependency>
                <groupId>org.easymock</groupId>
                <artifactId>easymock</artifactId>
                <version>2.2</version>
                <scope>test</scope>
            </dependency>
            <dependency>
                <groupId>org.easymock</groupId>
                <artifactId>easymockclassextension</artifactId>
                <version>2.2</version>
                <scope>test</scope>
            </dependency>
        </dependencies>
    </dependencyManagement>

    <build>
        <defaultGoal>install</defaultGoal>
    </build>

    <profiles>
        <profile>
            <id>stable</id>
            <activation>
                <activeByDefault>true</activeByDefault>
            </activation>
            <modules>
                <module>api</module>
                <module>host-api</module>
                <module>spi</module>
                <module>core</module>
            </modules>
        </profile>

        <profile>
            <id>integration</id>
            <modules>
                <module>api</module>
                <module>host-api</module>
                <module>spi</module>
                <module>core</module>
            </modules>
        </profile>

        <profile>
            <id>unstable</id>
            <modules>
                <module>api</module>
                <module>host-api</module>
                <module>spi</module>
                <module>core</module>
            </modules>
        </profile>

        <profile>
            <id>javadoc</id>
            <modules>
                <module>api</module>
                <module>host-api</module>
                <module>spi</module>
            </modules>
            <build>
                <plugins>
                    <plugin>
                        <groupId>org.apache.maven.plugins</groupId>
                        <artifactId>maven-javadoc-plugin</artifactId>
                        <configuration>
                            <aggregate>true</aggregate>
                        </configuration>
                    </plugin>
                </plugins>
            </build>
        </profile>
    </profiles>
</project>
