<?xml version="1.0" encoding="UTF-8"?>
<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>
		<artifactId>foo</artifactId>
		<groupId>com.example.foo</groupId>
		<version>0.0.8-SNAPSHOT</version>
	</parent>
	<groupId>com.example.foo</groupId>
	<artifactId>foo-j2ee</artifactId>
	<version>0.0.8-SNAPSHOT</version>
	<packaging>ejb</packaging>
	<name>foo J2EE</name>
	<description>foo J2EE</description>
	<dependencies>
		<dependency>
			<groupId>com.example.foo</groupId>
			<artifactId>foo-kernel-impl</artifactId>
			<version>0.0.8-SNAPSHOT</version>
		</dependency>
		<dependency>
			<groupId>com.ibm.ws</groupId>
			<artifactId>runtime</artifactId>
			<version>6.1.0</version>
			<scope>system</scope>
			<systemPath>${wasHome}/plugins/com.ibm.ws.runtime_6.1.0.jar</systemPath>
		</dependency>
		<dependency>
			<groupId>com.ibm.ws</groupId>
			<artifactId>ejbportable</artifactId>
			<version>6.1.0</version>
			<scope>system</scope>
			<systemPath>${wasHome}/plugins/com.ibm.ws.ejbportable_6.1.0.jar</systemPath>
		</dependency>
		<dependency>
  			<groupId>javax</groupId> 
  			<artifactId>j2ee</artifactId> 
  			<version>1.4.1</version> 
			<scope>system</scope>
			<systemPath>${wasHome}/lib/j2ee.jar</systemPath>	
  		</dependency>			
	</dependencies>
	<build>
		<plugins>
			<plugin>
			        <groupId>org.codehaus.mojo</groupId>
			        <artifactId>was6-maven-plugin</artifactId>
			        <executions>
			                <execution>
			                        <goals>
			                                <goal>clean</goal>
			                                <goal>ejbdeploy</goal>
			                        </goals>
			                </execution>
			        </executions>
			        <configuration>
							<wasHome>${wasHome}</wasHome>
			                <legacyMode>true</legacyMode>
			        </configuration>
			</plugin>		
			<plugin>
				<artifactId>maven-ejb-plugin</artifactId>
				<configuration>
					<archive>
						<manifest>
							<!-- Include dependencies in MANIFEST classpath -->
							<addClasspath>true</addClasspath>
						</manifest>
					</archive>
				</configuration>
			</plugin>
			<plugin>
				<groupId>org.apache.maven.plugins</groupId>
				<artifactId>maven-eclipse-plugin</artifactId>
				<configuration>
					<wtpdefaultserver>WebSphere Application Server v6.1</wtpdefaultserver>
					<wtpmanifest>true</wtpmanifest>
					<wtpapplicationxml>true</wtpapplicationxml>
					<wtpversion>1.5</wtpversion>    
					<additionalBuildcommands>
						<buildcommand>org.eclipse.jdt.core.javabuilder</buildcommand>
						<buildcommand>org.eclipse.wst.common.project.facet.core.builder</buildcommand>
						<buildcommand>org.eclipse.wst.validation.validationbuilder</buildcommand>
					</additionalBuildcommands>
					<additionalProjectnatures>
						<projectnature>org.eclipse.jdt.core.javanature</projectnature> 					
						<projectnature>org.eclipse.wst.common.project.facet.core.nature</projectnature>
						<projectnature>org.eclipse.wst.common.modulecore.ModuleCoreNature</projectnature>
					</additionalProjectnatures>
					<classpathContainers>
						<classpathContainer>org.eclipse.jdt.launching.JRE_CONTAINER</classpathContainer>     
						<classpathContainer>org.eclipse.jst.j2ee.internal.module.container</classpathContainer>
					</classpathContainers>
				</configuration>
			</plugin> 
		</plugins>
	</build> 	
</project>