<?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 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>eclipse-plugins-parent</artifactId>
		<groupId>org.apache.openejb</groupId>
		<version>1.0.0.beta-SNAPSHOT</version>
	</parent>
	<modelVersion>4.0.0</modelVersion>
	<groupId>org.apache.openejb</groupId>
	<artifactId>org.apache.openejb.devtools.core</artifactId>
	<name>${artifactId}</name>
	<build>
		<resources>
			<resource>
				<directory>.</directory>
				<includes>
					<include>plugin.xml</include>
					<include>about.html</include>
					<include>plugin.properties</include>
					<include>plugin_*.properties</include>
				</includes>
			</resource>
			<resource>
				<directory>src/main/resources</directory>
				<includes>
					<include>**/*</include>
				</includes>
			</resource>
			<resource>
				<targetPath>META-INF</targetPath>
				<directory>META-INF</directory>
				<includes>
					<include>MANIFEST.MF</include>
				</includes>
			</resource>
			<resource>
				<targetPath>lib</targetPath>
				<directory>lib</directory>
				<includes>
					<include>*.jar</include>
				</includes>
			</resource>
		</resources>
		<plugins>
			<plugin>
				<artifactId>maven-eclipse-plugin</artifactId>
			</plugin>
			<plugin>
				<groupId>org.apache.geronimo.devtools</groupId>
				<artifactId>maven-eclipsepde-plugin</artifactId>
			</plugin>
			<plugin>
				<artifactId>maven-antrun-plugin</artifactId>
			</plugin>
			<plugin>
				<artifactId>maven-jar-plugin</artifactId>
			</plugin>
			<plugin>
				<artifactId>maven-dependency-plugin</artifactId>
				<executions>
					<execution>
						<id>copy</id>
						<phase>generate-resources</phase>
						<goals>
							<goal>copy</goal>
						</goals>
						<configuration>
							<outputDirectory>lib</outputDirectory>
							<overWriteSnapshots>
								true
							</overWriteSnapshots>
							<artifactItems>
								<artifactItem>
									<groupId>
										org.apache.openejb
									</groupId>
									<artifactId>
										plugins-common
									</artifactId>
									<version>${version}</version>
									<destFileName>plugins-common_${openejb.eclipse.plugin.version}.jar</destFileName>
								</artifactItem>
								<artifactItem>
									<groupId>
										org.apache.openejb
									</groupId>
									<artifactId>openejb-jee</artifactId>
									<version>${openejb.version}</version>
								</artifactItem>
								<artifactItem>
									<groupId>
										org.apache.openejb
									</groupId>
									<artifactId>openejb-api</artifactId>
									<version>${openejb.version}</version>
								</artifactItem>
								<artifactItem>
									<groupId>
										org.apache.openejb
									</groupId>
									<artifactId>
										openejb-core
									</artifactId>
									<version>${openejb.version}</version>
								</artifactItem>
								<artifactItem>
									<groupId>
										org.apache.openejb
									</groupId>
									<artifactId>
										openejb-loader
									</artifactId>
									<version>${openejb.version}</version>
								</artifactItem>
								<artifactItem>
									<groupId>
										org.apache.openejb
									</groupId>
									<artifactId>javaee-api</artifactId>
									<version>5.0-2</version>
								</artifactItem>
								<artifactItem>
									<groupId>
										log4j
									</groupId>
									<artifactId>
										log4j
									</artifactId>
									<version>1.2.12</version>
								</artifactItem>
								<artifactItem>
									<groupId>com.sun.xml.bind</groupId>
									<artifactId>jaxb-impl</artifactId>
									<version>2.0.5</version>
								</artifactItem>
								<artifactItem>
									<groupId>org.codehaus.swizzle</groupId>
									<artifactId>swizzle-stream</artifactId>
									<version>1.0.1</version>
								</artifactItem>
							</artifactItems>
						</configuration>
					</execution>
				</executions>
			</plugin>
		</plugins>
	</build>
	<dependencies>
		<dependency>
			<groupId>org.apache.openejb</groupId>
			<artifactId>plugins-common</artifactId>
			<version>${version}</version>
		</dependency>		
		<dependency>
			<groupId>org.apache.openejb</groupId>
			<artifactId>openejb-jee</artifactId>
			<version>${openejb.version}</version>
		</dependency>
		<dependency>
			<groupId>org.apache.openejb</groupId>
			<artifactId>openejb-core</artifactId>
			<version>${openejb.version}</version>
		</dependency>
		<dependency>
			<groupId>org.apache.openejb</groupId>
			<artifactId>openejb-loader</artifactId>
			<version>${openejb.version}</version>
		</dependency>
		<dependency>
			<groupId>org.apache.openejb</groupId>
			<artifactId>javaee-api</artifactId>
			<version>5.0-2</version>
		</dependency>
	</dependencies>
</project>
