<?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">
  <parent>
    <artifactId>cloudnet</artifactId>
    <groupId>de.dytanic.cloudnet</groupId>
    <version>2.1.17</version>
  </parent>
  <modelVersion>4.0.0</modelVersion>
  <artifactId>cloudnet-wrapper</artifactId>
  <name>CloudNet-Wrapper</name>
  <build>
    <finalName>CloudNet-Wrapper</finalName>
    <plugins>
      <plugin>
        <artifactId>maven-shade-plugin</artifactId>
        <version>${plugin.shade.version}</version>
        <executions>
          <execution>
            <phase>package</phase>
            <goals>
              <goal>shade</goal>
            </goals>
          </execution>
        </executions>
      </plugin>
      <plugin>
        <artifactId>maven-jar-plugin</artifactId>
        <version>${plugin.jar.version}</version>
        <configuration>
          <archive>
            <manifestEntries>
              <Main-Class>de.dytanic.cloudnetwrapper.bootstrap.CloudNetLauncher</Main-Class>
              <Version>${project.version}</Version>
              <Implementation-Version>${service.version}</Implementation-Version>
              <Specification-Version>${service.type}</Specification-Version>
            </manifestEntries>
          </archive>
        </configuration>
      </plugin>
      <plugin>
        <artifactId>maven-resources-plugin</artifactId>
        <version>${plugin.resources.version}</version>
        <executions>
          <execution>
            <id>copy-resources</id>
            <phase>validate</phase>
            <goals>
              <goal>copy-resources</goal>
            </goals>
            <configuration>
              <outputDirectory>${basedir}/target/classes/files</outputDirectory>
              <resources>
                <resource>
                  <directory>${basedir}/../cloudnet-api/cloudnet-api-bridge/target</directory>
                  <includes>
                    <include>CloudNetAPI.jar</include>
                  </includes>
                </resource>
              </resources>
            </configuration>
          </execution>
        </executions>
      </plugin>
    </plugins>
  </build>
</project>
