<?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/maven-v4_0_0.xsd">

   <modelVersion>4.0.0</modelVersion>

   <parent>
      <groupId>io.escalante</groupId>
      <artifactId>escalante</artifactId>
      <version>0.1.0</version>
      <relativePath>../pom.xml</relativePath>
   </parent>

   <groupId>io.escalante</groupId>
   <artifactId>escalante-build</artifactId>
   <version>0.1.0</version>
   <name>Escalante Build</name>
   <packaging>pom</packaging>
   <description>Escalante Build</description>

   <dependencies>
      <dependency>
         <groupId>org.jboss.as</groupId>
         <artifactId>jboss-as-dist</artifactId>
         <type>zip</type>
         <scope>provided</scope>
      </dependency>
   </dependencies>

   <build>
      <plugins>
         <plugin>
            <groupId>org.codehaus.mojo</groupId>
            <artifactId>exec-maven-plugin</artifactId>
            <version>1.2.1</version>
            <executions>
               <execution>
                  <phase>install</phase>
                  <goals>
                     <goal>exec</goal>
                  </goals>
               </execution>
            </executions>
            <configuration>
               <executable>python</executable>
               <arguments>
                  <argument>build.py</argument>
               </arguments>
               <environmentVariables>
                  <PYTHONPATH>../../main/python:$PYTHONPATH</PYTHONPATH>
                  <JBOSSVERSION>${version.jboss.as}</JBOSSVERSION>
                  <BASEDIR>${basedir}</BASEDIR>
               </environmentVariables>
            </configuration>
         </plugin>
      </plugins>
   </build>

</project>