<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>
		<groupId>org.mobicents.servlet.sip.example</groupId>
		<artifactId>alerting-app-parent</artifactId>
		<version>2.0.0.ALPHA2</version>
		<relativePath>../pom.xml</relativePath>
	</parent>
	<groupId>org.mobicents.servlet.sip.example</groupId>
	<artifactId>alerting-app</artifactId>
	<packaging>war</packaging>
	<version>2.0.0.ALPHA2</version>
	<name>Alerting Application</name>
	<dependencies>	
		<!-- media dependencies -->
		<dependency>
			<groupId>org.mobicents.external.jsr309</groupId>
			<artifactId>mscontrol</artifactId>
			<version>1.0</version>
		</dependency>

		<dependency>
			<groupId>org.mobicents.jsr309</groupId>
			<artifactId>mobicents-jsr309-impl</artifactId>
			<version>2.0.0.BETA4</version>
		</dependency>
		<!-- jslee deps : Commented out since the prefferred way is through SMS Servlets -->
		<!--dependency>		
			<groupId>org.mobicents.servlet.sip.example</groupId>
			<artifactId>alerting-app-jslee-custom-events</artifactId>
			<version>1.5-SNAPSHOT</version>
			<scope>provided</scope>
		</dependency>
		<dependency>
			<groupId>javax.slee</groupId>
			<artifactId>jain-slee</artifactId>
			<version>1.0</version>	
			<scope>provided</scope>		
		</dependency-->
		<!-- various -->			
		<dependency>
			<groupId>org.apache.geronimo.specs</groupId>
			<artifactId>geronimo-ejb_3.0_spec</artifactId>
			<version>1.0</version>
			<scope>provided</scope>
		</dependency>
		<dependency>
			<groupId>org.apache.geronimo.specs</groupId>
			<artifactId>geronimo-j2ee_1.4_spec</artifactId>
			<version>1.1</version>
			<scope>provided</scope>
		</dependency>	
	</dependencies>
	<build>
		<plugins>
			<plugin>
				<artifactId>maven-compiler-plugin</artifactId>
				<configuration>
					<source>1.5</source>
					<target>1.5</target>
				</configuration>
			</plugin>
			<plugin>
				<artifactId>maven-war-plugin</artifactId>
				<configuration>
					<warSourceDirectory>
						${basedir}/src/main/sipapp
					</warSourceDirectory>
				</configuration>
			</plugin>
			<plugin>
				<groupId>org.apache.maven.plugins</groupId>
				<artifactId>maven-antrun-plugin</artifactId>
				<version>1.1</version>
				<executions>
					<execution>
						<phase>package</phase>
						<configuration>
							<tasks>
								<copy verbose="true" file="${project.build.directory}/${project.build.finalName}.${project.packaging}" tofile="${env.JBOSS_HOME}/server/default/deploy/alerting-app.war" />
							</tasks>
						</configuration>
						<goals>
							<goal>run</goal>
						</goals>
					</execution>
				</executions>
			</plugin>					
		</plugins>		
	</build>
</project>
