<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</groupId>
		<artifactId>mobicents</artifactId>
		<version>1.2.0.BETA3</version>
		<relativePath>../../pom.xml</relativePath>
	</parent>

	<groupId>org.mobicents.tools</groupId>
	<artifactId>mobicents-tools-mmc</artifactId>
	<packaging>war</packaging>
	<name>Mobicents :: Tools :: mobicents-tools-mmc</name>

	<dependencies>
		<dependency>
			<groupId>com.google.gwt</groupId>
			<artifactId>gwt-user</artifactId>
			<version>${gwt-user.version}</version>
			<scope>provided</scope>
		</dependency>
		<!-- jslee -->
		<dependency>
			<groupId>javax.slee</groupId>
			<artifactId>jain-slee</artifactId>
			<version>${jain-slee.version}</version>
			<scope>provided</scope>
		</dependency>
		<!--  -->
		<dependency>
			<groupId>commons-fileupload</groupId>
			<artifactId>commons-fileupload</artifactId>
			<version>${commons-fileupload.version}</version>
			<scope>provided</scope>
		</dependency>
		<dependency>
			<groupId>jboss</groupId>
			<artifactId>jboss-common</artifactId>
			<version>${jboss.version}</version>
			<scope>provided</scope>
		</dependency>

	</dependencies>
	<!--
		<repositories>
		<repository>
		<id>xi8ix-repository</id>
		<name>xi8ix Maven2 Repository</name>
		<url>http://maven.xi8ix.org</url>
		</repository>
		</repositories>
	-->
	<repositories>
		<repository>
			<id>gwt-maven</id>
			<url>
				http://gwt-maven.googlecode.com/svn/trunk/mavenrepo/
			</url>
		</repository>
	</repositories>

	<build>
		<finalName>management-console</finalName>
		<plugins>
			<plugin>
				<groupId>org.apache.maven.plugins</groupId>
				<artifactId>maven-war-plugin</artifactId>
				<version>2.0.2</version>
				<configuration>
					<webappDirectory>WebContent</webappDirectory>
					<webResources>
						<resource>
							<!-- this is relative to the pom.xml directory -->
							<directory>${basedir}/GWT/org.mobicents.slee.container.management.console.ManagementConsole/</directory>
						</resource>
					</webResources>
					<warSourceExcludes>**/.svn/**</warSourceExcludes>
				</configuration>
			</plugin>
	    <!--
            <plugin>
                <groupId>com.totsp.gwt</groupId>
                <artifactId>maven-googlewebtoolkit2-plugin</artifactId>
		<version>1.5.6</version>
                <configuration>
                    <logLevel>ALL</logLevel>
                    <runTarget>com.me.MyModule/MyHostPage.jsp</runTarget>
                    <compileTarget>com.me.MyModule</compileTarget>
                    <generatorRootClasses>com.me.server.MyBean</generatorRootClasses>
                    <generatorDestinationPackage>com.me.client</generatorDestinationPackage>
                    <generateGettersAndSetters>true</generateGettersAndSetters>
                </configuration>
                <executions> 
                    <execution> 
                        <goals> 
                            <goal>mergewebxml</goal> 
                            <goal>compile</goal> 
                        </goals> 
                    </execution> 
                </executions>
            </plugin>
            -->  	
			<plugin>
				<artifactId>maven-antrun-plugin</artifactId>
				<executions>
					<execution>
						<id>deploy-DU</id>
						<phase>install</phase>
						<goals>
							<goal>run</goal>
						</goals>
						<configuration>
							<tasks>
								<condition property="jboss.dir" value="${jboss.home}" else="${env.JBOSS_HOME}">
	    							<isset property="jboss.home" />
								</condition>
								<copy overwrite="true" file="target/${project.build.finalName}.war" todir="${jboss.dir}/server/${node}/deploy" />
							</tasks>
						</configuration>
					</execution>
					<execution>
						<id>undeploy-DU</id>
						<phase>clean</phase>
						<goals>
							<goal>run</goal>
						</goals>
						<configuration>
							<tasks>
								<delete file="${env.JBOSS_HOME}/server/${node}/deploy/${project.build.finalName}.war" />
							</tasks>
						</configuration>
					</execution>
				</executions>
			</plugin>

		</plugins>
	</build>
</project>