<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>
	<parent>
		<groupId>org.mobicents.servlet.sip.example</groupId>
		<artifactId>shopping-demo-parent</artifactId>
		<version>1.1</version>
	</parent>
	<artifactId>shopping-demo-ear</artifactId>
	<packaging>ear</packaging>
	<name>Shopping Demo EAR</name>
	<dependencies>
		<!-- j2ee dependencies -->
		<dependency>
			<groupId>org.jboss.seam</groupId>
			<artifactId>jboss-seam</artifactId>
			<version>${jboss-seam.version}</version>
			<exclusions>
				<exclusion>
					<groupId>jboss</groupId>
					<artifactId>javassist</artifactId>
				</exclusion>
				<exclusion>
					<groupId>dom4j</groupId>
					<artifactId>dom4j</artifactId>
				</exclusion>
				<exclusion>
					<groupId>org.jboss.el</groupId>
					<artifactId>jboss-el</artifactId>
				</exclusion>
			</exclusions>
			<type>ejb</type>
		</dependency>

		<dependency>
			<groupId>org.jboss.seam</groupId>
			<artifactId>jboss-el</artifactId>
			<version>${jboss-el.version}</version>
			<exclusions>
				<exclusion>
					<groupId>javax.el</groupId>
					<artifactId>el-api</artifactId>
				</exclusion>
			</exclusions>
			<type>jar</type>
		</dependency>
		<dependency>
			<groupId>commons-beanutils</groupId>
			<artifactId>commons-beanutils</artifactId>
			<version>1.7.0</version>
			<exclusions>
				<exclusion>
					<groupId>commons-logging</groupId>
					<artifactId>commons-logging</artifactId>
				</exclusion>
			</exclusions>
			<type>jar</type>
		</dependency>
		<dependency>
			<groupId>org.mobicents.servlet.sip.example</groupId>
			<artifactId>shopping-demo-business</artifactId>
			<version>1.1</version>
			<type>ejb</type>
		</dependency>
		<dependency>
			<groupId>org.mobicents.servlet.sip.example</groupId>
			<artifactId>shopping-demo-web</artifactId>
			<version>1.1</version>
			<type>war</type>
		</dependency>
		<dependency>
			<groupId>org.apache.lucene</groupId>
			<artifactId>lucene-core</artifactId>
			<version>${lucene-core.version}</version>
			<type>jar</type>
		</dependency>
		<dependency>
			<groupId>org.hibernate</groupId>
			<artifactId>hibernate-commons-annotations</artifactId>
			<version>${hibernate-common-annotations.version}</version>
			<exclusions>
				<exclusion>
					<groupId>org.hibernate</groupId>
					<artifactId>hibernate</artifactId>
				</exclusion>
				<exclusion>
					<groupId>javax.persistence</groupId>
					<artifactId>persistence-api</artifactId>
				</exclusion>
			</exclusions>
			<type>jar</type>
		</dependency>
		<dependency>
			<groupId>org.hibernate</groupId>
			<artifactId>hibernate-search</artifactId>
			<version>${hibernate-search.version}</version>
			<exclusions>
				<exclusion>
					<groupId>org.hibernate</groupId>
					<artifactId>hibernate</artifactId>
				</exclusion>
			</exclusions>
			<type>jar</type>
		</dependency>
		<dependency>
			<groupId>org.jbpm</groupId>
			<artifactId>jbpm-jpdl</artifactId>
			<version>3.2.1</version>
			<exclusions>
				<exclusion>
					<groupId>commons-logging</groupId>
					<artifactId>commons-logging</artifactId>
				</exclusion>
			</exclusions>
			<type>jar</type>
		</dependency>		
		<dependency>
			<groupId>org.mobicents.external.freetts</groupId>
			<artifactId>freetts</artifactId>
			<version>${freetts.version}</version>
			<type>jar</type>
		</dependency>
		<dependency>
			<groupId>org.mobicents.external.freetts</groupId>
			<artifactId>cmu_time_awb</artifactId>
			<version>1.0</version>
			<type>jar</type>
		</dependency>
		<dependency>
			<groupId>org.mobicents.external.freetts</groupId>
			<artifactId>cmu_us_kal</artifactId>
			<version>1.0</version>
			<type>jar</type>
		</dependency>
		<dependency>
			<groupId>org.mobicents.external.freetts</groupId>
			<artifactId>cmudict04</artifactId>
			<version>1.0</version>
			<type>jar</type>
		</dependency>
		<dependency>
			<groupId>org.mobicents.external.freetts</groupId>
			<artifactId>en_us</artifactId>
			<version>1.0</version>
			<type>jar</type>
		</dependency>
		<dependency>
			<groupId>org.mobicents.external.freetts</groupId>
			<artifactId>cmulex</artifactId>
			<version>1.0</version>
			<type>jar</type>
		</dependency>
		<dependency>
			<groupId>org.mobicents.external.freetts</groupId>
			<artifactId>cmutimelex</artifactId>
			<version>1.0</version>
			<type>jar</type>
		</dependency>
				
		<dependency>
			<groupId>org.mobicents.servers.media</groupId>
			<artifactId>mobicents-media-server-msc-api</artifactId>
			<version>${mms.version}</version>
			<exclusions>
				<exclusion>
					<groupId>org.mobicents.servers.media</groupId>
					<artifactId>mobicents-server-media-jar</artifactId>
				</exclusion>
				<exclusion>
					<groupId>org.mobicents.servers.media</groupId>
					<artifactId>mobicents-media-server-constants</artifactId>
				</exclusion>
			</exclusions>
			<type>jar</type>
		</dependency>
		
		<dependency>
			<groupId>org.mobicents.servers.media</groupId>
			<artifactId>mobicents-media-server-msc-api-local-impl</artifactId>
			<version>${mms.version}</version>
			<scope>provided</scope>
		</dependency>		
	</dependencies>
	<build>
		<finalName>shopping-demo</finalName>
		<plugins>
			<plugin>
				<artifactId>maven-compiler-plugin</artifactId>
				<configuration>
					<source>1.5</source>
					<target>1.5</target>
				</configuration>
			</plugin>
			<plugin>
				<artifactId>maven-ear-plugin</artifactId>
				<configuration>
					<modules>	
						<jarModule>
							<groupId>org.mobicents.servers.media</groupId>
							<artifactId>mobicents-media-server-msc-api</artifactId>
							<bundleDir>APP-INF/lib</bundleDir>
							<includeInApplicationXml>true</includeInApplicationXml>
						</jarModule>
						<jarModule>
							<groupId>org.mobicents.servers.media</groupId>
							<artifactId>mobicents-media-server-msc-api-local-impl</artifactId>
							<bundleDir>APP-INF/lib</bundleDir>
							<includeInApplicationXml>true</includeInApplicationXml>
						</jarModule>				
						<jarModule>
							<groupId>org.mobicents.external.freetts</groupId>
							<artifactId>freetts</artifactId>
							<bundleDir>APP-INF/lib</bundleDir>
							<bundleFileName>freetts.jar</bundleFileName>
							<includeInApplicationXml>true</includeInApplicationXml>
						</jarModule>
						<jarModule>
							<groupId>org.mobicents.external.freetts</groupId>
							<artifactId>cmu_time_awb</artifactId>
							<bundleDir>APP-INF/lib</bundleDir>
							<bundleFileName>cmu_time_awb.jar</bundleFileName>
							<includeInApplicationXml>true</includeInApplicationXml>
						</jarModule>
						<jarModule>
							<groupId>org.mobicents.external.freetts</groupId>
							<artifactId>cmu_us_kal</artifactId>
							<bundleDir>APP-INF/lib</bundleDir>
							<bundleFileName>cmu_us_kal.jar</bundleFileName>
							<includeInApplicationXml>true</includeInApplicationXml>
						</jarModule>
						<jarModule>
							<groupId>org.mobicents.external.freetts</groupId>
							<artifactId>cmudict04</artifactId>
							<bundleDir>APP-INF/lib</bundleDir>
							<bundleFileName>cmudict04.jar</bundleFileName>
							<includeInApplicationXml>true</includeInApplicationXml>
						</jarModule>
						<jarModule>
							<groupId>org.mobicents.external.freetts</groupId>
							<artifactId>en_us</artifactId>
							<bundleDir>APP-INF/lib</bundleDir>
							<bundleFileName>en_us.jar</bundleFileName>
							<includeInApplicationXml>true</includeInApplicationXml>
						</jarModule>
						<jarModule>
							<groupId>org.mobicents.external.freetts</groupId>
							<artifactId>cmulex</artifactId>
							<bundleDir>APP-INF/lib</bundleDir>
							<bundleFileName>cmulex.jar</bundleFileName>
							<includeInApplicationXml>true</includeInApplicationXml>
						</jarModule>
						<jarModule>
							<groupId>org.mobicents.external.freetts</groupId>
							<artifactId>cmutimelex</artifactId>
							<bundleDir>APP-INF/lib</bundleDir>
							<bundleFileName>cmutimelex.jar</bundleFileName>
							<includeInApplicationXml>true</includeInApplicationXml>
						</jarModule>
						<jarModule>
							<groupId>org.hibernate</groupId>
							<artifactId>
								hibernate-commons-annotations
							</artifactId>
							<bundleDir>APP-INF/lib</bundleDir>
							<includeInApplicationXml>true</includeInApplicationXml>
						</jarModule>
						<jarModule>
							<groupId>org.hibernate</groupId>
							<artifactId>hibernate-search</artifactId>
							<bundleDir>APP-INF/lib</bundleDir>
							<includeInApplicationXml>true</includeInApplicationXml>
						</jarModule>
						<jarModule>
							<groupId>org.jbpm</groupId>
							<artifactId>jbpm-jpdl</artifactId>
							<bundleDir>APP-INF/lib</bundleDir>
							<includeInApplicationXml>true</includeInApplicationXml>
						</jarModule>
						<jarModule>
							<groupId>org.jboss.seam</groupId>
							<artifactId>jboss-el</artifactId>
							<bundleDir>APP-INF/lib</bundleDir>
							<includeInApplicationXml>true</includeInApplicationXml>
						</jarModule>
						<jarModule>
							<groupId>commons-beanutils</groupId>
							<artifactId>commons-beanutils</artifactId>
							<bundleDir>APP-INF/lib</bundleDir>
							<includeInApplicationXml>true</includeInApplicationXml>
						</jarModule>
						<jarModule>
							<groupId>org.apache.lucene</groupId>
							<artifactId>lucene-core</artifactId>
							<bundleDir>APP-INF/lib</bundleDir>
							<includeInApplicationXml>true</includeInApplicationXml>
						</jarModule>
						<webModule>
							<groupId>
								org.mobicents.servlet.sip.example
							</groupId>
							<artifactId>shopping-demo-web</artifactId>
							<contextRoot>/shopping-demo</contextRoot>
						</webModule>
						<ejbModule>
							<groupId>
								org.mobicents.servlet.sip.example
							</groupId>
							<artifactId>
								shopping-demo-business
							</artifactId>
						</ejbModule>
						<ejbModule>
							<groupId>org.jboss.seam</groupId>
							<artifactId>jboss-seam</artifactId>
						</ejbModule>
					</modules>
					<jboss>
						<version>4.2</version>
						<loader-repository>
							seam.jboss.org:loader=/shopping-demo
						</loader-repository>
						<module-order>implicit</module-order>
						<data-sources>
							<data-source>
								ShoppingDemo-ds.xml
							</data-source>
						</data-sources>
					</jboss>
				</configuration>
			</plugin>
		</plugins>			
	</build>
</project>
