<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>com.mobidevelop.robovm</groupId>
    <artifactId>robovm-parent</artifactId>
    <version>2.3.11</version>
  </parent>

  <artifactId>robovm-dist-parent</artifactId>
  <name>RoboVM Distribution</name>
  <packaging>pom</packaging>  

  <properties>
    <licenseTxtURL>file://${basedir}/../LICENSE.txt</licenseTxtURL>    
    <release.arguments />
  </properties>

  <url>http://www.robovm.com</url>
  <description>
    The RoboVM compiler translates Java bytecode into native ARM or x86 code. Apps run directly on the CPU.
    No interpreter or virtual machine involved.
  </description>
  <inceptionYear>2012</inceptionYear>

  <build>
    <pluginManagement>
      <plugins>
        <plugin>
          <groupId>org.apache.maven.plugins</groupId>
          <artifactId>maven-antrun-plugin</artifactId>
          <executions>
            <execution>
              <id>create-license-txt</id>
              <phase>none</phase>
              <configuration>
                <target>
                  <fail message="The property licenseTxtURL must be specified">
                    <condition>
                      <equals arg1="${licenseTxtURL}" arg2="unknown" />
                    </condition>
                  </fail>
                  <property name="licenseFile" value="${project.build.directory}/LICENSE.txt" />
                  <echo message="Downloading license text from ${licenseTxtURL} to ${licenseFile}" />
                  <loadresource property="license">
                    <url url="${licenseTxtURL}" />
                  </loadresource>
                  <echo message="${license}" file="${licenseFile}" />
                </target>
              </configuration>
              <goals>
                <goal>run</goal>
              </goals>
            </execution>
          </executions>
        </plugin>
      </plugins>
    </pluginManagement>
  </build>

  <modules>
    <module>compiler</module>
    <module>package</module>
  </modules>

</project>
