<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.servers.media</groupId>
		<artifactId>mobicents-media-server-core</artifactId>
		<version>1.0.0.CR5</version>
	</parent>
	
	<artifactId>mobicents-media-server-msc-api</artifactId>
	
	<name>Mobicents Media Server :: ${pom.artifactId}</name>
	
	<dependencies>
		<dependency>
			<groupId>org.mobicents.servers.media</groupId>
			<artifactId>mobicents-media-server-constants</artifactId>
			<version>${pom.version}</version>
		</dependency>
	</dependencies>
	
	<build>
		<finalName>${pom.artifactId}-${pom.version}</finalName>
		<plugins>
			<plugin>
				<artifactId>maven-compiler-plugin</artifactId>
				<version>RELEASE</version>
				<configuration>
					<source>1.5</source>
					<target>1.5</target>
				</configuration>
			</plugin>
			
			<plugin>
				<artifactId>maven-antrun-plugin</artifactId>
				<executions>
					<execution>
						<id>deploy</id>
						<phase>install</phase>
						<goals>
							<goal>run</goal>
						</goals>
						<configuration>
							<tasks>
								<condition property="jboss.dir" value="${jboss.home}" else="${env.JBOSS_HOME}">
									<isset property="jboss.home" />
								</condition>
								<copy file="target/${project.build.finalName}.jar" todir="${jboss.dir}/server/${node}/lib">
									
								</copy>
							</tasks>
						</configuration>
					</execution>
					<execution>
						<id>undeploy</id>
						<phase>clean</phase>
						<goals>
							<goal>run</goal>
						</goals>
						<configuration>
							<tasks>
								<delete file="${env.JBOSS_HOME}/server/${node}/deploy/${project.build.finalName}.jar" />
							</tasks>
						</configuration>
					</execution>
				</executions>
			</plugin>
		</plugins>
	</build>	
</project>