<!--
  ~ 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>
    <modelVersion>4.0.0</modelVersion>
    <artifactId>org.apache.geronimo.runtime.common</artifactId>
    <packaging>jar</packaging>
    <version>${org.apache.geronimo.runtime.common_version}</version>
    <name>${artifactId}</name>
    <parent>
        <groupId>org.apache.geronimo.devtools</groupId>
        <artifactId>eclipse-plugins-parent</artifactId>
        <version>1.0</version>
        <relativePath>../pom.xml</relativePath>
    </parent>
    <properties>
        <xbeanVersion>2.0.0</xbeanVersion>
        <mx4jVersion>3.0.1</mx4jVersion>
        <commonsLoggingVersion>1.0.4</commonsLoggingVersion>
    </properties>
    <build>
        <resources>
            <resource>
                <directory>.</directory>
                <includes>
                    <include>plugin.xml</include>
                </includes>
            </resource>
            <resource>
                <directory>lib</directory>
                <targetPath>lib</targetPath>
                <includes>
                    <include>*.jar</include>
                </includes>
            </resource>
            <resource>
                <targetPath>META-INF</targetPath>
                <directory>.</directory>
                <includes>
                    <include>LICENSE</include>
                    <include>NOTICE</include>
                </includes>
            </resource>
        </resources>
        <plugins>
        	<plugin>
            	<artifactId>maven-antrun-plugin</artifactId>
            </plugin>
            <plugin>
                <groupId>org.codehaus.mojo</groupId>
                <artifactId>dependency-maven-plugin</artifactId>
                <executions>
                    <execution>
                        <id>copy</id>
                        <phase>generate-resources</phase>
                        <goals>
                            <goal>copy</goal>
                        </goals>
                        <configuration>
                            <artifactItems>
                                <artifactItem>
                                    <groupId>org.apache.geronimo.specs</groupId>
                                    <artifactId>geronimo-j2ee-deployment_1.1_spec</artifactId>
                                    <version>${geronimo_spec_version}</version>
                                </artifactItem>
                                <artifactItem>
                                    <groupId>commons-logging</groupId>
                                    <artifactId>commons-logging</artifactId>
                                    <version>${commonsLoggingVersion}</version>
                                </artifactItem>
                                <artifactItem>
                                    <groupId>cglib</groupId>
                                    <artifactId>cglib-nodep</artifactId>
                                    <version>2.1_3</version>
                                </artifactItem>
                                <artifactItem>
                                    <groupId>stax</groupId>
                                    <artifactId>stax-api</artifactId>
                                    <version>1.0</version>
                                </artifactItem>
                                <artifactItem>
                                    <groupId>mx4j</groupId>
                                    <artifactId>mx4j</artifactId>
                                    <version>3.0.1</version>
                                </artifactItem>
                                <artifactItem>
                                    <groupId>mx4j</groupId>
                                    <artifactId>mx4j-remote</artifactId>
                                    <version>3.0.1</version>
                                </artifactItem>
                                <artifactItem>
                                    <groupId>xstream</groupId>
                                    <artifactId>xstream</artifactId>
                                    <version>1.1.3</version>
                                </artifactItem>
                                <artifactItem>
                                    <groupId>xmlbeans</groupId>
                                    <artifactId>xbean</artifactId>
                                    <version>${xbeanVersion}</version>
                                </artifactItem>
                            </artifactItems>
                            <outputDirectory>lib</outputDirectory>
                        </configuration>
                    </execution>
                </executions>
            </plugin>
            <plugin>
                <groupId>org.apache.geronimo.devtools</groupId>
                <artifactId>maven-geronimodevtools-plugin</artifactId>
                <configuration>
                    <libDir>lib</libDir>
                </configuration>
                <executions>
                    <execution>
                        <id>generate-classpath</id>
                        <phase>process-resources</phase>
                        <goals>
                            <goal>classpath</goal>
                        </goals>
                        <configuration>
                            <templateFile>classpathXmlTemplate.vm</templateFile>
                            <destFile>.classpath</destFile>
                        </configuration>
                    </execution>
                </executions>
            </plugin>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-jar-plugin</artifactId>
            </plugin>
        </plugins>
    </build>
    <dependencies>
        <dependency>
            <groupId>org.apache.geronimo.specs</groupId>
            <artifactId>geronimo-j2ee-deployment_1.1_spec</artifactId>
            <version>${geronimo_spec_version}</version>
        </dependency>
        <dependency>
            <groupId>commons-logging</groupId>
            <artifactId>commons-logging</artifactId>
            <version>${commonsLoggingVersion}</version>
        </dependency>
        <dependency>
            <groupId>cglib</groupId>
            <artifactId>cglib-nodep</artifactId>
            <version>2.1_3</version>
        </dependency>
        <dependency>
            <groupId>stax</groupId>
            <artifactId>stax-api</artifactId>
            <version>1.0</version>
        </dependency>
        <dependency>
            <groupId>mx4j</groupId>
            <artifactId>mx4j</artifactId>
            <version>3.0.1</version>
        </dependency>
        <dependency>
            <groupId>mx4j</groupId>
            <artifactId>mx4j-remote</artifactId>
            <version>3.0.1</version>
        </dependency>
        <dependency>
            <groupId>xstream</groupId>
            <artifactId>xstream</artifactId>
            <version>1.1.3</version>
        </dependency>
    </dependencies>
</project>
