<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>12</version>
		<relativePath>../../../../parent/pom.xml</relativePath>
	</parent>

  <groupId>org.mobicents.servers.diameter.examples</groupId>
	<artifactId>openims-parent</artifactId>
	<version>1.1.0.GA</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-build315</mobicents.diameter.jdiameter.version>
    <mobicents.diameter.mux.version>1.1.0.GA</mobicents.diameter.mux.version>
    <mobicents.diameter.resources.sh-client.version>1.1.0.GA</mobicents.diameter.resources.sh-client.version>
    
    <!-- Other Mobicents Components Versions -->
    <mobicents.servers.jainslee.version>1.2.6.GA</mobicents.servers.jainslee.version>
    <mobicents.servers.jainslee.resources.sip11.version>1.2.6.GA</mobicents.servers.jainslee.resources.sip11.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/openims</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-openims">
    									<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-openims/du-management.xml" />
                    <copy overwrite="true" file="${basedir}/release/build.xml" todir="${basedir}/../../release/${release.name}/examples/diameter-openims">
    									<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/openims/openims-1.1.0.GA</connection>
    <developerConnection>scm:svn:https://mobicents.googlecode.com/svn/tags/servers/diameter/examples/openims/openims-1.1.0.GA</developerConnection>
    <url>scm:svn:https://mobicents.googlecode.com/svn/tags/servers/diameter/examples/openims/openims-1.1.0.GA</url>
  </scm>

</project>
