<?xml version="1.0" encoding="ISO-8859-1"?>
<!--
    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>corba</artifactId>
        <version>4.0.0-SNAPSHOT</version>
    </parent>
    
    <groupId>org.apache.geronimo.modules</groupId>
    <name>Geronimo Plugins, Corba :: Core</name>
    <packaging>bundle</packaging>
    <artifactId>geronimo-corba</artifactId>

    <dependencies>
        <!-- g-kernel, g-security, g-transaction, g-management comes transistively -->
        <!-- from this via g-connector -->
        <dependency>
            <groupId>org.apache.geronimo.configs</groupId>
            <artifactId>openejb</artifactId>
            <version>${project.version}</version>
            <type>car</type>
            <scope>provided</scope>
        </dependency>
        
        <dependency>
            <groupId>org.apache.geronimo.framework</groupId>
            <artifactId>geronimo-kernel</artifactId>
            <version>${project.version}</version>
        </dependency>
        <dependency>
            <groupId>org.apache.geronimo.modules</groupId>
            <artifactId>geronimo-openejb</artifactId>
            <version>${project.version}</version>
        </dependency>
        <dependency>
            <groupId>org.apache.geronimo.modules</groupId>
            <artifactId>geronimo-j2ee</artifactId>
            <version>${project.version}</version>
        </dependency>

        <dependency>
            <groupId>org.apache.yoko</groupId>
            <artifactId>yoko-spec-corba</artifactId>
            <scope>provided</scope>
        </dependency>
        
        <dependency>
            <groupId>org.apache.yoko</groupId>
            <artifactId>yoko-rmi-impl</artifactId>
            <exclusions>
                <exclusion>
                    <groupId>org.apache.yoko</groupId>
                    <artifactId>yoko-spec-corba</artifactId>
                </exclusion>
                <exclusion>
                    <groupId>org.apache.yoko</groupId>
                    <artifactId>yoko-rmi-spec</artifactId>
                </exclusion>
                <exclusion>
                    <groupId>org.apache.yoko</groupId>
                    <artifactId>yoko-osgi</artifactId>
                </exclusion>
                <exclusion>
                    <groupId>org.apache.servicemix.bundles</groupId>
                    <artifactId>org.apache.servicemix.bundles.bcel</artifactId>
                </exclusion>                    
            </exclusions>
        </dependency>
        
        <dependency>
            <groupId>org.apache.servicemix.bundles</groupId>
            <artifactId>org.apache.servicemix.bundles.cglib</artifactId>
            <scope>provided</scope>
        </dependency>
    </dependencies>

    <build>
        <plugins>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-surefire-plugin</artifactId>
                <configuration>
                    <excludes>
                        <!-- TestPrincipal.java is not a test - if this is common across OpenEJB we should use **/Test*.java instead -->
                        <exclude>**/TestPrincipal.java</exclude>
                        <!-- E2EIntegrationTest is failing in a WADI call to activecluster, probably some kind of versionitis... -->
                        <exclude>**/E2EIntegrationTest.java</exclude>
                    </excludes>
                </configuration>
            </plugin>
            <!-- CRACK: CORBAHandleDelegate needs org.apache.yoko.rmi.impl.RMIPersistentStub to do deserialization -->
            <!-- No dependency added for that package, so just ignore the compilation warning of "Missing Constraint" -->
            <plugin>
                <groupId>org.apache.felix</groupId>
                <artifactId>maven-bundle-plugin</artifactId>
                <configuration>
                    <instructions>                            
                        <Import-Package>
                        org.apache.yoko.rmi.impl,*
                        </Import-Package>
                    </instructions>
                </configuration>
            </plugin>
        </plugins>
    </build>

</project>
