<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>	
	<packaging>pom</packaging>
	
	<parent>
		<artifactId>integrated-parent</artifactId>
		<groupId>org.mobicents.servers.sippresence</groupId>
		<version>1.0.0.BETA2</version>	
	</parent>
	
	<artifactId>integrated-sip-presence-control-DU</artifactId>
	
	<dependencies>
		<!-- components -->
		<dependency>
			<groupId>${pom.groupId}</groupId>
			<artifactId>sip-presence-publication-control-sbb</artifactId>
			<version>${pom.version}</version>			
		</dependency>		
		<dependency>
			<groupId>${pom.groupId}</groupId>
			<artifactId>integrated-subscription-control-sbb</artifactId>
			<version>${pom.version}</version>	
		</dependency>
		
		
		<!-- libs -->
		<dependency>
			<groupId>org.mobicents.servers.xdm.core</groupId>
			<artifactId>server-subscription-control-sbb</artifactId>
			<version>${pom.version}</version>
			<scope>runtime</scope>
		</dependency>
		<dependency>
			<groupId>${pom.groupId}</groupId>
			<artifactId>sip-presence-subscription-control-sbb</artifactId>
			<version>${pom.version}</version>	
			<scope>runtime</scope>			
		</dependency>
		<dependency>
			<groupId>${pom.groupId}</groupId>
			<artifactId>sip-presence-pojos</artifactId>
			<version>${pom.version}</version>	
			<scope>runtime</scope>		
		</dependency>
		<dependency>
			<groupId>javax.xml.bind</groupId>
			<artifactId>jaxb-api</artifactId>
			<scope>runtime</scope>
		</dependency>
		<dependency>
			<groupId>javax.xml</groupId>
			<artifactId>jaxb-impl</artifactId>
			<scope>runtime</scope>
		</dependency>
		
		<dependency>
			<groupId>org.mobicents.servers.sipevent</groupId>
			<artifactId>sip-event-publication-control-pojo</artifactId>
			<version>${pom.version}</version>	
			<scope>runtime</scope>		
		</dependency>
		<dependency>
			<groupId>org.mobicents.servers.sipevent</groupId>
			<artifactId>sip-event-publication-control-sbb</artifactId>
			<version>${pom.version}</version>	
			<scope>runtime</scope>		
		</dependency>		
		<dependency>
			<groupId>org.mobicents.servers.sipevent</groupId>
			<artifactId>sip-event-subscription-control-pojo</artifactId>
			<version>${pom.version}</version>	
			<scope>runtime</scope>		
		</dependency>
		<dependency>
			<groupId>org.mobicents.servers.sipevent</groupId>
			<artifactId>sip-event-subscription-control-sbb</artifactId>
			<version>${pom.version}</version>	
			<scope>runtime</scope>		
		</dependency>
		
		<dependency>
			<groupId>org.hibernate</groupId>
			<artifactId>hibernate-entitymanager</artifactId>
			<scope>runtime</scope>	
		</dependency>
	</dependencies>
		
	<build>
		<finalName>${mobicents.sip.presence.service.finalName.prefix}integrated-du-${pom.version}</finalName>
		<plugins>
			<plugin>
				<groupId>org.mobicents.tools</groupId>
				<artifactId>maven-du-plugin</artifactId>
				<version>${mobicents.tools.mavenplugin.du.version}</version>
				<extensions>true</extensions>
				<configuration />
				<executions>
					<execution>
						<phase>install</phase>
						<goals>
							<goal>create</goal>
						</goals>
					</execution>
				</executions>
			</plugin>
			<plugin>
				<artifactId>maven-antrun-plugin</artifactId>
				<executions>
					<execution>
						<id>deploy-DU</id>
						<phase>install</phase>
						<goals>
							<goal>run</goal>
						</goals>
						<configuration>
							<tasks>
								<copy overwrite="true" file="target/${project.build.finalName}.jar" todir="${jboss.home}/server/${node}/deploy" />
							</tasks>
						</configuration>
					</execution>
					<execution>
						<id>undeploy-DU</id>
						<phase>clean</phase>
						<goals>
							<goal>run</goal>
						</goals>
						<configuration>
							<tasks>
								<delete file="${jboss.home}/server/${node}/deploy/${project.build.finalName}.jar" />
							</tasks>
						</configuration>
					</execution>
				</executions>
			</plugin>
		</plugins>
	</build>
	
</project>