<?xml version="1.0" encoding="UTF-8"?>
<!--
 # BEGIN_HEADER - DO NOT EDIT
 #
 # The contents of this file are subject to the terms
 # of the Common Development and Distribution License
 # (the "License").  You may not use this file except
 # in compliance with the License.
 #
 # You can obtain a copy of the license at
 # https://open-esb.dev.java.net/public/CDDLv1.0.html.
 # See the License for the specific language governing
 # permissions and limitations under the License.
 #
 # When distributing Covered Code, include this CDDL
 # HEADER in each file and include the License file at
 # https://open-esb.dev.java.net/public/CDDLv1.0.html.
 # If applicable add the following below this CDDL HEADER,
 # with the fields enclosed by brackets "[]" replaced with
 # your own identifying information: Portions Copyright
 # [year] [name of copyright owner]
-->

<!--
 # @(#)pom.xml
 # Copyright 2004-2007 Sun Microsystems, Inc. All Rights Reserved.
 #
 # END_HEADER - DO NOT EDIT
-->
<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>
        <artifactId>esb-packages</artifactId>
        <groupId>net.open-esb.core</groupId>
        <version>2.4.2</version>
    </parent>
    <modelVersion>4.0.0</modelVersion>
    <groupId>net.open-esb.core</groupId>
    <artifactId>jbi-ext</artifactId>
    <name>esb-internal-interfaces</name>
    <description>Open ESB Internal (IPI) interfaces</description>
    <build>
        <plugins>
            <plugin>
                <artifactId>maven-dependency-plugin</artifactId>
                <executions>
                    <execution>
                        <id>${project.artifactId}-unpack-deps</id>
                        <phase>generate-sources</phase>
                        <goals><goal>unpack-dependencies</goal></goals>
                        <configuration>
                            <outputDirectory>${project.build.outputDirectory}</outputDirectory>
                            <overWriteReleases>true</overWriteReleases>
                            <excludeTransitive>true</excludeTransitive>
                            <excludeGroupIds>junit,ant,commons-beanutils,commons-collections</excludeGroupIds>
                        </configuration>
                    </execution>
                </executions>
            </plugin>
            <plugin>
                <artifactId>maven-antrun-plugin</artifactId>
                <executions>
                    <execution>
                        <id>${project.artifactId}-delete-classes</id>
                        <!-- package phase *does not work* when we call from top.  RT 2/6/07 -->
                        <phase>compile</phase>
                        <goals><goal>run</goal></goals>
                        <configuration>
                            <tasks>
                                <echo message="EDIT package contents for ${project.artifactId}" />
                                <delete includeEmptyDirs="true">
                                    <fileset dir="${project.build.outputDirectory}">
                                        <exclude name="com/**/ComponentContext.class" />
                                        <exclude name="com/**/StringTranslator.class" />
                                        <exclude name="com/**/ManagementMessageFactory.class" />
                                        <exclude name="com/**/ManagementMessageBuilder.class" />
                                        <exclude name="com/**/ComponentMessageHolder.class" />
                                        <exclude name="com/**/DeploymentServiceMBean.class" />
                                        <exclude name="com/sun/jbi/wsdl2/*.class" />
                                        <exclude name="com/sun/jbi/security/*.class" />
                                        <exclude name="com/**/EndpointListener.class" />	 
                                        <exclude name="com/**/TimeoutListener.class" />	 
                                        <exclude name="com/**/DeliveryChannel.class" />	 
                                        <exclude name="com/**/MessageExchange.class" />	 
                                        <exclude name="com/**/ExchangeEntry.class" />	 
                                        <exclude name="com/**/ResolverSupport.class" />	 
                                        <exclude name="com/**/ResolverExtension.class" />	 
                                    </fileset>
                                </delete>
                            </tasks>
                        </configuration>
                    </execution>
                </executions>
            </plugin>
        </plugins>
    </build>
    <dependencies>
        <dependency>
            <groupId>net.open-esb.core</groupId>
            <artifactId>base</artifactId>
            <version>${project.version}</version>
        </dependency>
    </dependencies>
</project>
