<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>
		<artifactId>rules-parent</artifactId>
		<groupId>org.mobicents.resources</groupId>
		<version>1.2.6.GA</version>
	</parent>
	
	<artifactId>rules-management</artifactId>
	<name>Mobicents :: Resources :: ${pom.artifactId}</name>
	
	<packaging>jboss-sar</packaging>
	
	<dependencies>
		<dependency>
			<groupId>javax.slee</groupId>
			<artifactId>jain-slee</artifactId>
			<scope>provided</scope>
		</dependency>
		<dependency>
			<groupId>log4j</groupId>
			<artifactId>log4j</artifactId>
			<scope>provided</scope>
		</dependency>
		<dependency>
			<groupId>jboss</groupId>
			<artifactId>jboss-common</artifactId>
			<scope>provided</scope>
		</dependency>
		<dependency>
			<groupId>jboss</groupId>
			<artifactId>jboss-jmx</artifactId>
			<scope>provided</scope>
		</dependency>
		<dependency>
			<groupId>jboss</groupId>
			<artifactId>jboss-system</artifactId>
			<scope>provided</scope>
		</dependency>
		<dependency>
			<groupId>concurrent</groupId>
			<artifactId>concurrent</artifactId>
			<scope>provided</scope>
		</dependency>
		<dependency>
			<groupId>org.drools</groupId>
			<artifactId>drools-decisiontables</artifactId>
			<exclusions>
				<exclusion>
					<groupId>org.drools</groupId>
					<artifactId>drools-compiler</artifactId>
				</exclusion>
				<exclusion>
					<groupId>poi</groupId>
     		 		<artifactId>poi</artifactId>
				</exclusion>
			</exclusions>
		</dependency>
		
    	<dependency>
      		<groupId>org.drools</groupId>
      		<artifactId>drools-compiler</artifactId>
      		<exclusions>
				<exclusion>
					<groupId>org.drools</groupId>
					<artifactId>drools-core</artifactId>
				</exclusion>
				<exclusion>
					<groupId>org.apache.commons</groupId>
      				<artifactId>commons-jci-janino</artifactId>
      			</exclusion>
      			<exclusion>
					<groupId>org.apache.commons</groupId>
      				<artifactId>commons-jci-eclipse</artifactId>
      			</exclusion>
      			<exclusion>
					<groupId>commons-lang</groupId>
      				<artifactId>commons-lang</artifactId>
      			</exclusion>
      			<exclusion>
					<groupId>antlr</groupId>
      				<artifactId>stringtemplate</artifactId>
      			</exclusion>
      			<exclusion>
					<groupId>antlr</groupId>
     	 			<artifactId>antlr</artifactId>
      			</exclusion>
      			<exclusion>
					<groupId>org.eclipse.jdt</groupId>
     	 			<artifactId>core</artifactId>
      			</exclusion>
			</exclusions>
    	</dependency>
    	
    	<dependency>
      		<groupId>org.drools</groupId>
      		<artifactId>drools-core</artifactId>
      		<exclusions>
      		<exclusion>
				 <groupId>jung</groupId>
      			 <artifactId>jung</artifactId>
      		</exclusion>
      		<exclusion>
				<groupId>xstream</groupId>
      			<artifactId>xstream</artifactId>
      		</exclusion>
      		<exclusion>
				<groupId>xpp3</groupId>
      			<artifactId>xpp3</artifactId>
      		</exclusion>
      		</exclusions>
    	</dependency>
    	
    		<dependency>
				<groupId>antlr</groupId>
				<artifactId>stringtemplate</artifactId>
			</dependency>
						
			<dependency>
				<groupId>jexcelapi</groupId>
				<artifactId>jxl</artifactId>
			</dependency>
			<dependency>
				<groupId>org.eclipse.jdt</groupId>
				<artifactId>core</artifactId>
				<exclusions>
		      		<exclusion>
		      			<groupId>org.apache.commons</groupId>
						<artifactId>commons-jci-fam</artifactId>
		      		</exclusion>
		      		<exclusion>
		      			<groupId>commons-io</groupId>
						<artifactId>commons-io</artifactId>
		      		</exclusion>
		      		<exclusion>
		      			<groupId>commons-logging</groupId>
						<artifactId>commons-logging-api</artifactId>
		      		</exclusion>
				</exclusions>
			</dependency>
			
			<dependency>
			    <groupId>org.apache.commons</groupId>
			    <artifactId>commons-jci-core</artifactId>
			    <exclusions>
		      		<exclusion>
		      			<groupId>org.apache.commons</groupId>
						<artifactId>commons-jci-fam</artifactId>
		      		</exclusion>
		      		<exclusion>
		      			<groupId>commons-io</groupId>
						<artifactId>commons-io</artifactId>
		      		</exclusion>
		      		<exclusion>
		      			<groupId>commons-logging</groupId>
						<artifactId>commons-logging-api</artifactId>
		      		</exclusion>
				</exclusions>
			</dependency>		

			<dependency>
			    <groupId>org.apache.commons</groupId>
			    <artifactId>commons-jci-eclipse</artifactId>
			</dependency>
   		
	</dependencies>
		
	<build>
	  <finalName>rules-management</finalName>
		<plugins>
			<plugin>
				<groupId>org.codehaus.mojo</groupId>
				<artifactId>jboss-packaging-maven-plugin</artifactId>
				<version>2.0-beta-1</version>
				<extensions>true</extensions>
			</plugin>

			<plugin>
				<artifactId>maven-antrun-plugin</artifactId>
				<executions>
					<execution>
						<id>deploy-management</id>
						<phase>install</phase>
						<goals>
							<goal>run</goal>
						</goals>
						<configuration>
							<tasks>
								<copy file="${project.build.directory}/${project.build.finalName}.sar" toDir="${jboss.home}/server/${node}/deploy" />
							</tasks>
						</configuration>
					</execution>
					<execution>
						<id>undeploy-management</id>
						<phase>clean</phase>
						<goals>
							<goal>run</goal>
						</goals>
						<configuration>
							<tasks>
								<delete file="${jboss.home}/server/${node}/deploy/${project.build.finalName}.sar" />
							</tasks>
						</configuration>
					</execution>
				</executions>
			</plugin>
		</plugins>
	</build>
</project>