<?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">
   <groupId>org.campagnelab.goby</groupId>
   <artifactId>downloader</artifactId>
    <version>1.0</version>
    <modelVersion>4.0.0</modelVersion>
    <name>Goby Downloader</name>
    <description>Download artifacts needed in the distribution</description>
    <url>http://goby.campagnelab.org</url>
    <properties>
        <dl.version></dl.version>
    </properties>
    <build>
        <plugins>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-dependency-plugin</artifactId>
                <version>2.10</version>
                <executions>
                    <execution>
                        <id>default-cli</id>
                        <configuration>
                            <artifactItems>
                                <artifactItem>
                                    <groupId>org.campagnelab.dl</groupId>
                                    <artifactId>somatic</artifactId>
                                    <type>jar</type>
                                    <version>${dl.version}</version>
                                    <classifier>native</classifier>
                                    <overWrite>true</overWrite>
                                    <outputDirectory>${project.basedir}</outputDirectory>
                                    <destFileName>somatic.jar</destFileName>
                                </artifactItem>
                                <artifactItem>
                                    <groupId>org.campagnelab.dl</groupId>
                                    <artifactId>genotype</artifactId>
                                    <type>jar</type>
                                    <version>${dl.version}</version>
                                    <classifier>native</classifier>
                                    <overWrite>true</overWrite>
                                    <outputDirectory>${project.basedir}</outputDirectory>
                                    <destFileName>genotype.jar</destFileName>
                                </artifactItem>
                                <artifactItem>
                                    <groupId>org.campagnelab.dl</groupId>
                                    <artifactId>framework</artifactId>
                                    <version>${dl.version}</version>
                                    <type>jar</type>
                                    <classifier>native</classifier>
                                    <overWrite>true</overWrite>
                                    <outputDirectory>${project.basedir}</outputDirectory>
                                    <destFileName>framework.jar</destFileName>
                                </artifactItem>
                            </artifactItems>
                        </configuration>
                    </execution>
                </executions>
            </plugin>
        </plugins>
    </build>
    <repositories>
        <repository>
            <id>sonatype-nexus-snapshots</id>
            <url>https://oss.sonatype.org/content/repositories/snapshots</url>
            <releases>
                <enabled>false</enabled>
            </releases>
            <snapshots>
                <enabled>true</enabled>
            </snapshots>
        </repository>
        <!-- nexus staging can be used to test staged artifacts before their official release -->
        <repository>
            <id>nexus-staging</id>
            <name>Nexus Release Repository</name>
            <url>https://oss.sonatype.org/content/groups/staging</url>
        </repository>
    </repositories>
</project>