<?xml version="1.0" encoding="UTF-8"?>
<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/xsd/maven-4.0.0.xsd">
	
	...
	
	<properties>
		<soa.home>/buildenv/Middleware_SOA/Oracle_SOA1</soa.home>
		<ant.sca.mgmt.file>${soa.home}/bin/ant-sca-mgmt.xml</ant.sca.mgmt.file>		
		<wls.soa.host.ip>soabpm-vm</wls.soa.host.ip>
		<wls.soa.host.port>7001</wls.soa.host.port>
		<wls.soa.admin.username>weblogic</wls.soa.admin.username>
		<wls.soa.admin.password>welcome1</wls.soa.admin.password>
		...
	</properties>
	
	<build>
		<plugins>		
			...
			<plugin>
				<artifactId>maven-antrun-plugin</artifactId>
				<executions>					
					<execution>
						<id>sca-delete-partition</id>
						<!-- bind to phase or run it while integration-tests -->
						<!--phase>pre-integration-test</phase--> 
						<configuration>
							<target>
								<property name="host" value="${wls.soa.host.ip}"/>         
								<property name="port" value="${wls.soa.host.port}"/>         
								<property name="user" value="${wls.soa.admin.username}"/>         
								<property name="password" value="${wls.soa.admin.password}"/>         
								<property name="partition" value="${wls.soa.partition.name}"/>
								<ant antfile="${ant.sca.mgmt.file}" dir="${soa.home}/bin" target="deletePartition" />
							</target>
						</configuration>
						<goals>
							<goal>run</goal>
						</goals>
					</execution>
				</executions>
			</plugin>
			...
		</plugins>
	</build>


</project>
