<?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>FastNbt</artifactId>
    <groupId>beer.devs</groupId>
    <version>1.4.2</version>
  </parent>
  <modelVersion>4.0.0</modelVersion>
  <artifactId>FastNbt-jar</artifactId>
  <build>
    <plugins>
      <plugin>
        <artifactId>maven-jar-plugin</artifactId>
        <version>3.2.0</version>
        <configuration>
          <archive>
            <addMavenDescriptor>false</addMavenDescriptor>
          </archive>
        </configuration>
      </plugin>
      <plugin>
        <artifactId>maven-assembly-plugin</artifactId>
        <version>3.3.0</version>
        <executions>
          <execution>
            <phase>package</phase>
            <goals>
              <goal>single</goal>
            </goals>
          </execution>
        </executions>
        <configuration>
          <finalName>${project.parent.artifactId}</finalName>
          <outputDirectory>${basedir}/../output/</outputDirectory>
          <descriptors>
            <descriptor>jar-no-dependencies.xml</descriptor>
          </descriptors>
          <appendAssemblyId>false</appendAssemblyId>
        </configuration>
      </plugin>
    </plugins>
  </build>
  <profiles>
    <profile>
      <id>local_build</id>
      <build>
        <plugins>
          <plugin>
            <groupId>org.codehaus.mojo</groupId>
            <artifactId>exec-maven-plugin</artifactId>
            <version>3.1.0</version>
            <executions>
              <execution>
                <id>RemoveMetaInf</id>
                <phase>package</phase>
                <goals>
                  <goal>exec</goal>
                </goals>
                <configuration>
                  <executable>cmd</executable>
                  <workingDirectory>${project.parent.basedir}</workingDirectory>
                  <arguments>
                    <argument>/C</argument>
                    <argument>.mvn-exec\RemoveMetaInf.bat</argument>
                  </arguments>
                </configuration>
              </execution>
              <execution>
                <id>CopyFile</id>
                <phase>package</phase>
                <goals>
                  <goal>exec</goal>
                </goals>
                <configuration>
                  <executable>cmd</executable>
                  <workingDirectory>${project.parent.basedir}</workingDirectory>
                  <arguments>
                    <argument>/C</argument>
                    <argument>.mvn-exec\CopyFile.bat</argument>
                  </arguments>
                </configuration>
              </execution>
            </executions>
          </plugin>
        </plugins>
      </build>
    </profile>
  </profiles>
</project>
