<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>
		<groupId>org.mobicents</groupId>
		<artifactId>mobicents-parent</artifactId>
		<version>2.19</version>
	</parent>

	<artifactId>ussd-example-parent</artifactId>
	<groupId>org.mobicents.examples.ussd</groupId>
	<version>1.0.0.BETA1</version>
	<name>Mobicents :: Examples :: ${pom.artifactId}</name>

	<properties>
		<version.sipra>2.5.0.FINAL</version.sipra>
		<version.ussdgateway>1.0.0.BETA1</version.ussdgateway>
		<version.http.servlet>2.4.0.FINAL</version.http.servlet>
		<version.jbpm>3.2.3</version.jbpm>
	</properties>

	<dependencyManagement>
		<dependencies>
			<dependency>
				<groupId>org.mobicents.resources</groupId>
				<artifactId>sip11-ratype</artifactId>
				<version>${version.sipra}</version>
			</dependency>
			<dependency>
				<artifactId>ussdgateway-xml</artifactId>
				<groupId>org.mobicents.applications.ussd</groupId>
				<version>${version.ussdgateway}</version>				
			</dependency>
			<dependency>
				<groupId>javax.xml.bind</groupId>
				<artifactId>jaxb-api</artifactId>
				<version>2.1</version>
				<scope>provided</scope>
			</dependency>
			<dependency>
				<groupId>javax.xml</groupId>
				<artifactId>jaxb-impl</artifactId>
				<version>2.1</version>
				<scope>provided</scope>
			</dependency>
			<dependency>
				<groupId>org.jbpm</groupId>
				<artifactId>jbpm-jpdl</artifactId>
				<version>${version.jbpm}</version>
			</dependency>
			<dependency>
				<groupId>org.mobicents.resources</groupId>
				<artifactId>http-servlet-ratype</artifactId>
				<version>${version.http.servlet}</version>
			</dependency>
			<dependency>
				<groupId>org.mobicents.resources</groupId>
				<artifactId>http-servlet-events</artifactId>
				<version>${version.http.servlet}</version>
			</dependency>
		</dependencies>

	</dependencyManagement>




	<modules>
		<module>library</module>
		<module>sbb</module>
		<module>du</module>
	</modules>


	<profiles>
		<profile>
			<id>maven-release</id>
			<!-- need to include those ones for maven releases -->
    		<modules>
    			<module>du</module>
				<module>docs</module>
				<module>release</module>
    		</modules>
			<build>
				<plugins>
					<plugin>
					<groupId>org.apache.maven.plugins</groupId>
					<artifactId>maven-release-plugin</artifactId>
					<configuration>
						<autoVersionSubmodules>true</autoVersionSubmodules>
						<tagBase>https://mobicents.googlecode.com/svn/tags/servers/jain-slee/2.x.y/examples/ussd</tagBase>
						<branchBase>https://mobicents.googlecode.com/svn/branches/servers/jain-slee/2.x.y/examples/ussd</branchBase>
						<preparationGoals>clean install</preparationGoals>
					</configuration>
					</plugin>
				</plugins>
			</build>		
		</profile>
		<profile>
			<id>release</id>
			<modules>
    			<module>du</module>
				<module>docs</module>
				<module>release</module>
			</modules>
		</profile>
	</profiles>

	<build>
		<plugins>
			<plugin>
				<artifactId>maven-eclipse-plugin</artifactId>
				<groupId>org.mobicents.tools</groupId>
				<inherited>false</inherited>
				<executions />
				<configuration>
					<excludePoms />
					<classpathExcludes>
						<exclude>xml-apis:xml-apis</exclude>
						<exclude>jtidy:jtidy</exclude>
					</classpathExcludes>
					<resolveTransitiveDependencies>true</resolveTransitiveDependencies>
					<eclipseProjectName>mobicents-ussd-example</eclipseProjectName>
				</configuration>
			</plugin>
		</plugins>
	</build>
	
	<!--  define repository so we dont have to checkout parent edit settings.xml -->
	<repositories>
		<repository>
			<id>jboss-public-repository-group</id>
			<name>JBoss Public Maven Repository Group</name>
			<url>https://repository.jboss.org/nexus/content/groups/public</url>
			<layout>default</layout>
			<releases>
				<enabled>true</enabled>
				<updatePolicy>never</updatePolicy>
			</releases>
			<snapshots>
				<enabled>true</enabled>
				<updatePolicy>never</updatePolicy>
			</snapshots>
		</repository>
	</repositories>


  <scm>
    <connection>scm:svn:https://mobicents.googlecode.com/svn/tags/servers/jain-slee/2.x.y/examples/ussd/1.0.0.BETA1</connection>
    <developerConnection>scm:svn:https://mobicents.googlecode.com/svn/tags/servers/jain-slee/2.x.y/examples/ussd/1.0.0.BETA1</developerConnection>
    <url>http://mobicents.googlecode.com/svn/tags/servers/jain-slee/2.x.y/examples/ussd/1.0.0.BETA1</url>
  </scm>
</project>
