<?xml version="1.0" encoding="UTF-8"?>
<project
	xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"
	xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
	<modelVersion>4.0.0</modelVersion>
	<parent>
		<artifactId>WALA</artifactId>
		<groupId>com.ibm.wala</groupId>
		<version>1.5.0-SNAPSHOT</version>
	</parent>
	<artifactId>com.ibm.wala.dalvik</artifactId>
	<packaging>eclipse-plugin</packaging>

	<build>
	  <plugins>
	    <plugin>
	      <artifactId>maven-dependency-plugin</artifactId>
              <executions>
                <execution>
                  <goals>
                    <goal>copy</goal>
                  </goals>
                  <configuration>
                    <artifactItems>
                      <artifactItem>
    			<groupId>org.smali</groupId>
    			<artifactId>dexlib2</artifactId>
    			<version>2.2.1</version>
                        <type>jar</type>
                        <overWrite>false</overWrite>
                      </artifactItem>
                      <artifactItem>
    			<groupId>org.smali</groupId>
    			<artifactId>util</artifactId>
    			<version>2.2.1</version>
                        <type>jar</type>
                        <overWrite>false</overWrite>
                      </artifactItem>
                      <artifactItem>
			<groupId>com.google.guava</groupId>
			<artifactId>guava</artifactId>
			<version>22.0</version>
                        <type>jar</type>
                        <overWrite>false</overWrite>
		      </artifactItem>
		    </artifactItems>  
                    <outputDirectory>${basedir}/lib</outputDirectory>
                  </configuration>
                </execution>
              </executions>
            </plugin>
	    
	    <plugin>
				<artifactId>maven-antrun-plugin</artifactId>
				<version>1.7</version>
				<executions>
					<execution>
						<phase>process-resources</phase>
						<configuration>
							<tasks>
								<property name="compile_classpath" refid="maven.compile.classpath" />
								<ant antfile="${basedir}/build.xml" target="getJars" />
							</tasks>
						</configuration>
						<goals>
							<goal>run</goal>
						</goals>
					</execution>
				</executions>
              <dependencies>
                <dependency>
                  <groupId>com.sun</groupId>
                  <artifactId>tools</artifactId>
                  <version>1.7</version>
                  <scope>system</scope>
                  <systemPath>${java.home}/../lib/tools.jar</systemPath>
                </dependency>
                <dependency>
    		  <groupId>org.smali</groupId>
    		  <artifactId>dexlib2</artifactId>
    		  <version>2.2.2</version>
                </dependency>
                <dependency>
    		  <groupId>org.smali</groupId>
    		  <artifactId>util</artifactId>
    		  <version>2.2.2</version>
                </dependency>
	      <!-- https://mvnrepository.com/artifact/com.google.guava/guava -->
	      <dependency>
		<groupId>com.google.guava</groupId>
		<artifactId>guava</artifactId>
		<version>22.0</version>
	      </dependency>
              </dependencies>
	    </plugin>
	  </plugins>
	</build>
</project>
