<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.7</version>
	</parent>

	<artifactId>mobicents-slee-ra-jcc</artifactId>
	<groupId>org.mobicents.resources.jcc</groupId>
	<version>2.1.0.GA</version>

	<name>Mobicents :: Resources :: ${pom.artifactId}</name>

	<modules>
		<module>jcc-camel-provider</module>
		<module>library</module>
		<module>events</module>
		<module>ratype</module>
		<module>ra</module>
		<module>du</module>
	</modules>


	<properties>
	
		<docs.ra.name>JCC</docs.ra.name>
		<docs.ra.dirname>jcc</docs.ra.dirname>
		<docs.bookid>JCC</docs.bookid>
		<docs.profile>mobicents</docs.profile>
		
		<tcap.version>1.0.0.BETA1</tcap.version>
		<sccp.version>1.0.0.BETA1</sccp.version>
		<asn.version>1.0.0.BETA1</asn.version>
		<mtp.version>1.0.0.BETA2</mtp.version>
		
		<version.jcc>1.1</version.jcc>
		<version.concurrent>1.3.4</version.concurrent>
		<!--
			<version.junit>3.8.2</version.junit>

			<version.log4j>1.2.14</version.log4j> <version.jcc>1.1</version.jcc>
		-->
	</properties>
	<dependencyManagement>
		<dependencies>

			<!--
				<dependency> <groupId>log4j</groupId> <artifactId>log4j</artifactId>
				<version>${version.log4j}</version> <scope>provided</scope>
				</dependency> <dependency> <groupId>org.mobicents.core</groupId>
				<artifactId>mobicents-core-jar</artifactId>
				<version>${pom.version}</version> </dependency> <dependency>
				<groupId>junit</groupId> <artifactId>junit</artifactId>
				<version>${version.junit}</version> </dependency>
			-->
			<dependency>
				<groupId>concurrent</groupId>
				<artifactId>concurrent</artifactId>
				<scope>provided</scope>
				<version>${version.concurrent}</version>
			</dependency>
			<dependency>
				<groupId>javax.csapi.cc</groupId>
				<artifactId>jcc</artifactId>
				<version>${version.jcc}</version>
			</dependency>
			<dependency>
				<artifactId>sccp-api</artifactId>
				<groupId>org.mobicents.protocols.ss7.sccp</groupId>
				<version>${sccp.version}</version>
			</dependency>
			<dependency>
				<artifactId>sccp-impl</artifactId>
				<groupId>org.mobicents.protocols.ss7.sccp</groupId>
				<version>${sccp.version}</version>
			</dependency>
			<dependency>
				<artifactId>tcap-api</artifactId>
				<groupId>org.mobicents.protocols.ss7.tcap</groupId>
				<version>${tcap.version}</version>
			</dependency>
			<dependency>
				<artifactId>tcap-impl</artifactId>
				<groupId>org.mobicents.protocols.ss7.tcap</groupId>
				<version>${tcap.version}</version>
			</dependency>
			<dependency>
				<artifactId>MTP</artifactId>
				<groupId>org.mobicents.protocols.ss7.mtp</groupId>
				<version>${mtp.version}</version>
			</dependency>
			<dependency>
				<groupId>org.mobicents.protocols.asn</groupId>
				<artifactId>asn</artifactId>
				<version>${asn.version}</version>
			</dependency>
		</dependencies>
	</dependencyManagement>

	<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-slee-ra-jcc</eclipseProjectName>
				</configuration>
			</plugin>
		</plugins>
	</build>

	<profiles>
		<profile>
			<id>jbcp</id>
			<properties>
				<docs.profile>jbcp</docs.profile>
			</properties>
		</profile>
			
		<profile>
			<id>release</id>
			<modules>
				<module>docs</module>
			</modules>
			<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}/resources/jcc">
											<fileset dir="${basedir}/du/target">
												<include name="**.jar" />
												<include name="*.xml" />
												<!-- currently not handled correctly by du plugin
												 <include name="*.properties" />
												 -->
											</fileset>
										</copy>
										<copy overwrite="true" file="${basedir}/du/target/build.xml" tofile="${basedir}/../../release/${release.name}/resources/jcc/du-management.xml" />
										<copy overwrite="true" file="${basedir}/release/build.xml" todir="${basedir}/../../release/${release.name}/resources/jcc">
											<filterset>
												<filter token="JBOSS.PATH" value="${jboss.path}" />
												<filter token="JBOSS.CONFIG" value="${node}" />
											</filterset>
										</copy>
									</tasks>
								</configuration>
							</execution>
						</executions>
					</plugin>
				</plugins>
			</build>
		</profile>
		<profile>
			<id>maven-release</id>
			<modules>
				<module>docs</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/resources/jcc</tagBase>
						<branchBase>https://mobicents.googlecode.com/svn/branches/servers/jain-slee/2.x.y/resources/jcc</branchBase>
						<preparationGoals>clean install</preparationGoals>
					</configuration>
					</plugin>
				</plugins>
			</build>		
		</profile>
	</profiles>

	<scm>
		<connection>scm:svn:https://mobicents.googlecode.com/svn/tags/servers/jain-slee/2.x.y/resources/jcc/2.1.0.GA</connection>
		<developerConnection>scm:svn:https://mobicents.googlecode.com/svn/tags/servers/jain-slee/2.x.y/resources/jcc/2.1.0.GA</developerConnection>
		<url>http://mobicents.googlecode.com/svn/tags/servers/jain-slee/2.x.y/resources/jcc/2.1.0.GA</url>
	</scm>
	
	<!-- dupe info from parent, but it's only way to retrieve the parent without checkout -->

	<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>

</project>