<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>
	<groupId>org.overlord.rtgov.activity-management</groupId>
	<artifactId>av-loader-jee</artifactId> 
	<packaging>jar</packaging>
	<name>Overlord RTGov::Modules::Activity Management::AV Loader JEE</name>

	<parent>
		<groupId>org.overlord.rtgov</groupId>
		<artifactId>activity-management</artifactId>
		<version>1.0.0.20130611-M5</version>
	</parent>

	<properties>
		<compiler.endorsed>${project.build.directory}/endorsed</compiler.endorsed>
	</properties>
	
	<dependencies>
		<dependency>
			<groupId>org.overlord.rtgov.activity-management</groupId>
			<artifactId>activity</artifactId>
			<version>${project.version}</version>
			<scope>provided</scope>
		</dependency>
		<dependency>
		    <groupId>javax</groupId>
		    <artifactId>javaee-api</artifactId>
		    <scope>provided</scope>
		</dependency>
		<dependency>
			<groupId>junit</groupId>
			<artifactId>junit</artifactId>
			<scope>test</scope>
		</dependency>
	</dependencies>

	<build>
		<plugins>
			<plugin>
				<groupId>org.apache.maven.plugins</groupId>
				<artifactId>maven-dependency-plugin</artifactId>
				<version>2.1</version>
				<executions>
					<execution>
						<goals>
							<goal>copy</goal>
						</goals>
						<configuration>
							<artifactItems>
								<artifactItem>
									<groupId>javax</groupId>
									<artifactId>javaee-api</artifactId>
								</artifactItem>
							</artifactItems>
							<outputDirectory>${compiler.endorsed}</outputDirectory>
						</configuration>
					</execution>
				</executions>
			</plugin>

			<plugin>
				<artifactId>maven-compiler-plugin</artifactId>
				<configuration>
					<compilerArgument>-Djava.endorsed.dirs=${compiler.endorsed}</compilerArgument>
				</configuration>
			</plugin>
		</plugins>
	</build>
</project>
