2022-08-16 10:10:58 +02:00
|
|
|
<?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">
|
|
|
|
<parent>
|
|
|
|
<artifactId>MMOCore</artifactId>
|
|
|
|
<groupId>net.Indyuce</groupId>
|
2022-08-16 11:22:10 +02:00
|
|
|
<version>${revision}</version>
|
2022-08-16 10:10:58 +02:00
|
|
|
</parent>
|
|
|
|
<modelVersion>4.0.0</modelVersion>
|
|
|
|
|
|
|
|
<artifactId>MMOCore-Dist</artifactId>
|
|
|
|
|
|
|
|
<properties>
|
|
|
|
<maven.compiler.source>16</maven.compiler.source>
|
|
|
|
<maven.compiler.target>16</maven.compiler.target>
|
|
|
|
</properties>
|
|
|
|
|
|
|
|
<build>
|
2022-08-16 11:22:10 +02:00
|
|
|
|
|
|
|
<!--
|
|
|
|
Includes default files in the Bukkit module
|
|
|
|
-->
|
|
|
|
<resources>
|
|
|
|
<resource>
|
|
|
|
<targetPath>.</targetPath>
|
|
|
|
<filtering>true</filtering>
|
|
|
|
<directory>${basedir}/src/main/resources</directory>
|
|
|
|
</resource>
|
|
|
|
</resources>
|
|
|
|
|
2022-08-16 10:10:58 +02:00
|
|
|
<plugins>
|
|
|
|
|
|
|
|
<!--
|
|
|
|
Completely necessary for dev build deployment
|
|
|
|
-->
|
|
|
|
<plugin>
|
|
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
|
|
<artifactId>maven-jar-plugin</artifactId>
|
|
|
|
<version>3.1.0</version>
|
|
|
|
<configuration>
|
2022-08-16 11:22:10 +02:00
|
|
|
<finalName>MMOCore-${revision}</finalName>
|
2022-08-16 10:10:58 +02:00
|
|
|
<outputDirectory>../target/</outputDirectory>
|
|
|
|
</configuration>
|
|
|
|
</plugin>
|
|
|
|
|
|
|
|
<!--
|
|
|
|
Shades all project modules into Dist jar
|
|
|
|
-->
|
|
|
|
<plugin>
|
|
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
|
|
<artifactId>maven-shade-plugin</artifactId>
|
|
|
|
<version>3.2.4</version>
|
|
|
|
<executions>
|
|
|
|
<execution>
|
|
|
|
<phase>package</phase>
|
|
|
|
<goals>
|
|
|
|
<goal>shade</goal>
|
|
|
|
</goals>
|
|
|
|
<configuration>
|
|
|
|
<minimizeJar>false</minimizeJar>
|
|
|
|
</configuration>
|
|
|
|
</execution>
|
|
|
|
</executions>
|
|
|
|
</plugin>
|
|
|
|
|
|
|
|
<!--
|
|
|
|
This plugin makes sure that there are no placeholders in the final
|
|
|
|
pom.xml version string because having ${revision} would cause issues when
|
|
|
|
using MythicLib-dist as a dependency
|
|
|
|
|
|
|
|
The flatten plugin must run AFTER the shade plugin, otherwise an issue pops up.
|
|
|
|
To do that, run the flatten plugin on the 'package' phase
|
|
|
|
|
|
|
|
https://stackoverflow.com/questions/52552329/use-maven-flatten-plugin-and-maven-shade-plugin-at-the-same-time
|
|
|
|
-->
|
|
|
|
<plugin>
|
|
|
|
<groupId>org.codehaus.mojo</groupId>
|
|
|
|
<artifactId>flatten-maven-plugin</artifactId>
|
|
|
|
<version>1.2.2</version>
|
|
|
|
<configuration>
|
|
|
|
<updatePomFile>true</updatePomFile>
|
|
|
|
</configuration>
|
|
|
|
<executions>
|
|
|
|
<execution>
|
|
|
|
<id>flatten</id>
|
|
|
|
<phase>package</phase>
|
|
|
|
<goals>
|
|
|
|
<goal>flatten</goal>
|
|
|
|
</goals>
|
|
|
|
</execution>
|
|
|
|
<execution>
|
|
|
|
<id>flatten.clean</id>
|
|
|
|
<phase>clean</phase>
|
|
|
|
<goals>
|
|
|
|
<goal>clean</goal>
|
|
|
|
</goals>
|
|
|
|
</execution>
|
|
|
|
</executions>
|
|
|
|
</plugin>
|
|
|
|
|
|
|
|
</plugins>
|
|
|
|
</build>
|
|
|
|
|
|
|
|
<dependencies>
|
|
|
|
|
|
|
|
<dependency>
|
|
|
|
<groupId>net.Indyuce</groupId>
|
|
|
|
<artifactId>MMOCore-API</artifactId>
|
|
|
|
<version>${revision}</version>
|
|
|
|
<optional>true</optional>
|
|
|
|
</dependency>
|
|
|
|
|
2022-08-16 11:22:10 +02:00
|
|
|
<!-- Spigot API -->
|
|
|
|
<dependency>
|
|
|
|
<groupId>org.spigotmc</groupId>
|
|
|
|
<artifactId>spigot-1.17.1</artifactId>
|
|
|
|
<version>dev</version>
|
|
|
|
<scope>provided</scope>
|
|
|
|
</dependency>
|
|
|
|
|
2022-08-16 10:10:58 +02:00
|
|
|
</dependencies>
|
|
|
|
|
|
|
|
</project>
|