136 lines
4.3 KiB
XML
136 lines
4.3 KiB
XML
|
<?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">
|
|||
|
<modelVersion>4.0.0</modelVersion>
|
|||
|
|
|||
|
<groupId>Dragon</groupId>
|
|||
|
<artifactId>DragonLottery-Maven</artifactId>
|
|||
|
<version>1.0-SNAPSHOT</version>
|
|||
|
|
|||
|
<name>DragonLottery-Maven</name>
|
|||
|
<!-- FIXME change it to the project's website -->
|
|||
|
<url>http://www.example.com</url>
|
|||
|
|
|||
|
<properties>
|
|||
|
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
|||
|
<maven.compiler.source>1.8</maven.compiler.source>
|
|||
|
<maven.compiler.target>1.8</maven.compiler.target>
|
|||
|
</properties>
|
|||
|
|
|||
|
<dependencies>
|
|||
|
<dependency>
|
|||
|
<groupId>junit</groupId>
|
|||
|
<artifactId>junit</artifactId>
|
|||
|
<version>4.11</version>
|
|||
|
<scope>test</scope>
|
|||
|
</dependency>
|
|||
|
<!-- 金币 -->
|
|||
|
<dependency>
|
|||
|
<groupId>Vault</groupId>
|
|||
|
<artifactId>Vault</artifactId>
|
|||
|
<version>2.8</version>
|
|||
|
<scope>system</scope>
|
|||
|
<systemPath>${project.basedir}/lib/Vault.jar</systemPath>
|
|||
|
</dependency>
|
|||
|
<!-- papi -->
|
|||
|
<dependency>
|
|||
|
<groupId>Papi</groupId>
|
|||
|
<artifactId>Papi</artifactId>
|
|||
|
<version>2.10.9</version>
|
|||
|
<scope>system</scope>
|
|||
|
<systemPath>${project.basedir}/lib/PlaceholderAPI-2.10.9.jar</systemPath>
|
|||
|
</dependency>
|
|||
|
<!-- 1.12.2 -->
|
|||
|
<dependency>
|
|||
|
<groupId>spigot</groupId>
|
|||
|
<artifactId>spigot</artifactId>
|
|||
|
<version>1.12.2</version>
|
|||
|
<scope>system</scope>
|
|||
|
<systemPath>${project.basedir}/lib/spigot-1.12.2.jar</systemPath>
|
|||
|
</dependency>
|
|||
|
<!-- 点券 -->
|
|||
|
<dependency>
|
|||
|
<groupId>points</groupId>
|
|||
|
<artifactId>points</artifactId>
|
|||
|
<version>1.12.2</version>
|
|||
|
<scope>system</scope>
|
|||
|
<systemPath>${project.basedir}/lib/PlayerPoints.jar</systemPath>
|
|||
|
</dependency>
|
|||
|
<!-- 龙核 -->
|
|||
|
<dependency>
|
|||
|
<groupId>DragonCore</groupId>
|
|||
|
<artifactId>DragonCore</artifactId>
|
|||
|
<version>2.4.1</version>
|
|||
|
<scope>system</scope>
|
|||
|
<systemPath>${project.basedir}/lib/DragonCore-2.4.1.jar</systemPath>
|
|||
|
</dependency>
|
|||
|
</dependencies>
|
|||
|
|
|||
|
<build>
|
|||
|
<finalName>${project.artifactId}</finalName>
|
|||
|
<resources>
|
|||
|
<resource>
|
|||
|
<directory>src/main/resources</directory>
|
|||
|
<filtering>true</filtering>
|
|||
|
</resource>
|
|||
|
</resources>
|
|||
|
<!-- lock down plugins versions to avoid using Maven defaults (may be moved to parent pom) -->
|
|||
|
<plugins>
|
|||
|
<!-- Maven clean plugin-->
|
|||
|
<plugin>
|
|||
|
<groupId>org.apache.maven.plugins</groupId>
|
|||
|
<artifactId>maven-shade-plugin</artifactId>
|
|||
|
<version>2.4.3</version>
|
|||
|
<configuration>
|
|||
|
<createDependencyReducedPom>false</createDependencyReducedPom>
|
|||
|
<minimizeJar>true</minimizeJar>
|
|||
|
<artifactSet>
|
|||
|
<includes>
|
|||
|
<include>pw.yumc:YumCore</include>
|
|||
|
</includes>
|
|||
|
</artifactSet>
|
|||
|
<relocations>
|
|||
|
<relocation>
|
|||
|
<pattern>pw.yumc.YumCore</pattern>
|
|||
|
<shadedPattern>${project.groupId}.${project.artifactId}</shadedPattern>
|
|||
|
</relocation>
|
|||
|
</relocations>
|
|||
|
</configuration>
|
|||
|
<executions>
|
|||
|
<execution>
|
|||
|
<phase>package</phase>
|
|||
|
<goals>
|
|||
|
<goal>shade</goal>
|
|||
|
</goals>
|
|||
|
</execution>
|
|||
|
</executions>
|
|||
|
</plugin>
|
|||
|
<!-- ProGuard -->
|
|||
|
<plugin>
|
|||
|
<groupId>com.github.wvengen</groupId>
|
|||
|
<artifactId>proguard-maven-plugin</artifactId>
|
|||
|
<version>2.2.0</version>
|
|||
|
<executions>
|
|||
|
<execution>
|
|||
|
<phase>package</phase>
|
|||
|
<goals>
|
|||
|
<goal>proguard</goal>
|
|||
|
</goals>
|
|||
|
<configuration>
|
|||
|
<options>
|
|||
|
<option>-repackageclasses \ʼ.ʽ.ʾ.${project.artifactId}</option>
|
|||
|
<option>-keep class ${project.groupId}.${project.artifactId}.${project.artifactId}</option>
|
|||
|
<option>-keep class ${project.groupId}.${project.artifactId}.${project.artifactId}Bungee</option>
|
|||
|
</options>
|
|||
|
<libs>
|
|||
|
<lib>${java.home}/lib/rt.jar</lib>
|
|||
|
</libs>
|
|||
|
</configuration>
|
|||
|
</execution>
|
|||
|
</executions>
|
|||
|
</plugin>
|
|||
|
</plugins>
|
|||
|
</build>
|
|||
|
</project>
|