<!--
  POM for deploying makepkgs toolkit to Maven.
  Run like "mvn -f makepkgs-pom.xml install"
-->
<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>
    <groupId>org.jvnet.updatecenter2</groupId>
    <artifactId>makepkgs</artifactId>
    <packaging>jar</packaging>
    <!--
        version number is aligned with the IPS version number. We can use the 4th digit if we need to rev
        without upgrading IPS.
    -->
    <version>0.1.6</version>
    <name>Toolkit written in Python for building IPS</name>
    <distributionManagement>
        <repository>
            <uniqueVersion>false</uniqueVersion>
            <id>java.net-m2-repository</id>
            <url>java-net:/maven2-repository/trunk/www/repository/</url>
        </repository>
    </distributionManagement>

    <scm>
        <connection>scm:svn:https://svn.dev.java.net/svn/updatecenter2/tags/makepkgs-0.1.6</connection>
        <developerConnection>scm:svn:https://svn.dev.java.net/svn/updatecenter2/tags/makepkgs-0.1.6</developerConnection>
    </scm>

    <licenses>
        <license>
            <name>CDDL</name>
            <url>http://www.netbeans.org/cddl.txt</url>
            <distribution>repo</distribution>
        </license>
    </licenses>

    <build>
        <plugins>
            <!-- fake out maven and install the binary artifact -->
            <plugin>
                <groupId>org.jvnet.maven-antrun-extended-plugin</groupId>
                <artifactId>maven-antrun-extended-plugin</artifactId>
                <executions>
                    <execution>
                        <phase>package</phase>
                        <goals>
                            <goal>run</goal>
                        </goals>
                        <configuration>
                            <tasks>
                                <!-- can't use nested ant because this requires Ant 1.7 -->
                                <exec command="ant makepkgs-for-maven" />
                                <attachArtifact file="build/makepkgs4maven.jar" />
                            </tasks>
                        </configuration>
                    </execution>
                </executions>
            </plugin>
        </plugins>
        <extensions>
            <extension>
                <groupId>org.jvnet.wagon-svn</groupId>
                <artifactId>wagon-svn</artifactId>
                <version>1.8</version>
            </extension>
        </extensions>
    </build>
</project>

