<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</artifactId>
		<version>1.14</version>
		<relativePath>../../../../parent/pom.xml</relativePath>
	</parent>

	<groupId>org.mobicents.servers.diameter.examples</groupId>
	<artifactId>cx-dx-parent</artifactId>
	<version>1.0.0.BETA2</version>

	<name>Mobicents :: Diameter Examples :: ${pom.artifactId}</name>

	<modules>
		<module>sbb</module>
		<module>du</module>
	</modules>

	<properties>
		<!-- Mobicents Diameter Components Versions -->
		<mobicents.diameter.jdiameter.version>1.5.3.0-build350</mobicents.diameter.jdiameter.version>
		<mobicents.diameter.mux.version>1.1.1.GA</mobicents.diameter.mux.version>
		<mobicents.diameter.resources.base.version>1.1.1.GA</mobicents.diameter.resources.base.version>
		<mobicents.diameter.resources.cx-dx.version>1.0.0.BETA3</mobicents.diameter.resources.cx-dx.version>

		<!-- Other Mobicents Components Versions -->
		<mobicents.servers.jainslee.version>1.2.7.GA</mobicents.servers.jainslee.version>
		<mobicents.tools.mavenplugin.du.version>1.0.0.BETA2</mobicents.tools.mavenplugin.du.version>
		<mobicents.tools.mavenplugin.eclipse.version>1.0.0.BETA2</mobicents.tools.mavenplugin.eclipse.version>
	</properties>

	<profiles>
		<profile>
			<id>maven-release</id>
			<modules>
				<!-- any module not bound to default modules, such as the ones for test, release, etc... -->
			</modules>
			<build>
				<plugins>
					<plugin>
						<groupId>org.apache.maven.plugins</groupId>
						<artifactId>maven-release-plugin</artifactId>
						<version>2.0-beta-9</version>
						<configuration>
							<remoteTagging>true</remoteTagging>
							<autoVersionSubmodules>true</autoVersionSubmodules>
							<resume>false</resume>
							<tagBase>https://mobicents.googlecode.com/svn/tags/servers/diameter/examples/cx-dx</tagBase>
						</configuration>
					</plugin>
				</plugins>
			</build>
		</profile>

		<profile>
			<id>release</id>
			<build>
				<plugins>
					<plugin>
						<artifactId>maven-antrun-plugin</artifactId>
						<inherited>false</inherited>
						<executions>
							<execution>
								<phase>install</phase>
								<goals>
									<goal>run</goal>
								</goals>
								<configuration>
									<tasks>
										<copy overwrite="true" todir="${basedir}/../../release/${release.name}/examples/diameter-cx-dx">
											<fileset dir="${basedir}/du/target">
												<include name="**.jar" />
												<include name="*.xml" />
												<include name="*.properties" />
											</fileset>
										</copy>
										<copy overwrite="true" file="${basedir}/du/target/build.xml" tofile="${basedir}/../../release/${release.name}/examples/diameter-cx-dx/du-management.xml" />
										<copy overwrite="true" file="${basedir}/release/build.xml" todir="${basedir}/../../release/${release.name}/examples/diameter-cx-dx">
											<filterset>
												<filter token="JBOSS.PATH" value="${jboss.path}" />
												<filter token="JBOSS.CONFIG" value="${node}" />
											</filterset>
										</copy>
									</tasks>
								</configuration>
							</execution>
						</executions>
					</plugin>
				</plugins>
			</build>
		</profile>
	</profiles>

	<scm>
		<connection>scm:svn:https://mobicents.googlecode.com/svn/tags/servers/diameter/examples/cx-dx/cx-dx-1.0.0.BETA2</connection>
		<developerConnection>scm:svn:https://mobicents.googlecode.com/svn/tags/servers/diameter/examples/cx-dx/cx-dx-1.0.0.BETA2</developerConnection>
		<url>scm:svn:https://mobicents.googlecode.com/svn/tags/servers/diameter/examples/cx-dx/cx-dx-1.0.0.BETA2</url>
	</scm>

</project>
