<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">
    <modelVersion>4.0.0</modelVersion>
    <groupId>net.coreprotect</groupId>
    <artifactId>coreprotect</artifactId>
    <version>2.10.0</version>
    <name>CoreProtect Maven Artifact</name>

    <properties>
        <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
        <finalName>CoreProtect</finalName>
    </properties>

    <build>
        <sourceDirectory>target/dummy</sourceDirectory>
        <plugins>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-antrun-plugin</artifactId>
                <version>1.7</version>
                <executions>
                    <execution>
                        <id>download-files</id>
                        <phase>verify</phase>
                        <goals>
                            <goal>run</goal>
                        </goals>
                        <configuration>
                            <target>
                                <!-- download file -->
                                <get src="http://dev.bukkit.org/media/files/715/374/CoreProtect_2.0.8.jar"
                                     dest="${project.build.directory}"
                                     verbose="true"
                                     usetimestamp="true"/>
                                <get src="http://dev.bukkit.org/media/files/775/489/CoreProtect_2.0.9.jar"
                                     dest="${project.build.directory}"
                                     verbose="true"
                                     usetimestamp="true"/>
                                <get src="http://dev.bukkit.org/media/files/820/756/CoreProtect_2.10.0.jar"
                                     dest="${project.build.directory}"
                                     verbose="true"
                                     usetimestamp="true"/>
                                <get src="http://dev.bukkit.org/media/files/886/944/CoreProtect_2.12.0.jar"
                                     dest="${project.build.directory}"
                                     verbose="true"
                                     usetimestamp="true"/>
                            </target>
                        </configuration>
                    </execution>
                </executions>
            </plugin>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-install-plugin</artifactId>
                <version>2.4</version>
                <executions>
                    <execution>
                        <id>2.0.8</id>
                        <phase>install</phase>
                        <goals>
                            <goal>install-file</goal>
                        </goals>
                        <configuration>
                            <groupId>${project.groupId}</groupId>
                            <artifactId>${project.artifactId}</artifactId>
                            <version>2.8.0</version>
                            <packaging>jar</packaging>
                            <file>${project.build.directory}/CoreProtect_2.0.8.jar</file>
                        </configuration>
                    </execution>
                    <execution>
                        <id>2.0.9</id>
                        <phase>install</phase>
                        <goals>
                            <goal>install-file</goal>
                        </goals>
                        <configuration>
                            <groupId>${project.groupId}</groupId>
                            <artifactId>${project.artifactId}</artifactId>
                            <version>2.9.0</version>
                            <packaging>jar</packaging>
                            <file>${project.build.directory}/CoreProtect_2.0.9.jar</file>
                        </configuration>
                    </execution>
                    <execution>
                        <id>2.10.0</id>
                        <phase>install</phase>
                        <goals>
                            <goal>install-file</goal>
                        </goals>
                        <configuration>
                            <groupId>${project.groupId}</groupId>
                            <artifactId>${project.artifactId}</artifactId>
                            <version>2.10.0</version>
                            <packaging>jar</packaging>
                            <file>${project.build.directory}/CoreProtect_2.10.0.jar</file>
                        </configuration>
                    </execution>
                    <execution>
                        <id>2.12.0</id>
                        <phase>install</phase>
                        <goals>
                            <goal>install-file</goal>
                        </goals>
                        <configuration>
                            <groupId>${project.groupId}</groupId>
                            <artifactId>${project.artifactId}</artifactId>
                            <version>2.12.0</version>
                            <packaging>jar</packaging>
                            <file>${project.build.directory}/CoreProtect_2.12.0.jar</file>
                        </configuration>
                    </execution>
                </executions>
            </plugin>
        </plugins>
    </build>
</project>