2018-10-05 15:48:29 +00:00
|
|
|
|
<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>pw.yumc</groupId>
|
|
|
|
|
<artifactId>minecraft-plugin-parent</artifactId>
|
|
|
|
|
<version>1.0</version>
|
|
|
|
|
<description>Minecraft 服务器插件父项目</description>
|
|
|
|
|
<packaging>pom</packaging>
|
|
|
|
|
<organization>
|
|
|
|
|
<name>YUMC</name>
|
|
|
|
|
<url>http://www.yumc.pw</url>
|
|
|
|
|
</organization>
|
|
|
|
|
<contributors>
|
|
|
|
|
<contributor>
|
|
|
|
|
<name>MiaoWoo</name>
|
|
|
|
|
<url>https://blog.yumc.pw</url>
|
|
|
|
|
<email>admin@yumc.pw</email>
|
|
|
|
|
<timezone>Asia/Shanghai</timezone>
|
|
|
|
|
</contributor>
|
|
|
|
|
</contributors>
|
2019-04-02 01:54:01 +00:00
|
|
|
|
<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>
|
|
|
|
|
<repo.url>https://repo.yumc.pw</repo.url>
|
|
|
|
|
</properties>
|
2018-10-05 15:48:29 +00:00
|
|
|
|
<ciManagement>
|
|
|
|
|
<system>Jenkins</system>
|
2019-04-02 01:54:01 +00:00
|
|
|
|
<url>https://ci.yumc.pw/job/Minecraft/${project.artifactId}/</url>
|
2018-10-05 15:48:29 +00:00
|
|
|
|
</ciManagement>
|
|
|
|
|
<repositories>
|
|
|
|
|
<repository>
|
|
|
|
|
<id>yumc-repo</id>
|
2019-04-02 01:54:01 +00:00
|
|
|
|
<url>${repo.url}/repository/maven-public/</url>
|
2018-10-05 15:48:29 +00:00
|
|
|
|
</repository>
|
|
|
|
|
</repositories>
|
|
|
|
|
<pluginRepositories>
|
|
|
|
|
<pluginRepository>
|
|
|
|
|
<id>yumc-repo</id>
|
2019-04-02 01:54:01 +00:00
|
|
|
|
<url>${repo.url}/repository/maven-public/</url>
|
2018-10-05 15:48:29 +00:00
|
|
|
|
</pluginRepository>
|
|
|
|
|
</pluginRepositories>
|
|
|
|
|
<distributionManagement>
|
|
|
|
|
<repository>
|
|
|
|
|
<id>jtb</id>
|
|
|
|
|
<name>YUMC</name>
|
2019-04-02 01:54:01 +00:00
|
|
|
|
<url>${repo.url}/repository/yumcenter/</url>
|
2018-10-05 15:48:29 +00:00
|
|
|
|
</repository>
|
|
|
|
|
</distributionManagement>
|
|
|
|
|
<dependencies>
|
|
|
|
|
<dependency>
|
|
|
|
|
<groupId>pw.yumc</groupId>
|
|
|
|
|
<artifactId>YumCore</artifactId>
|
|
|
|
|
<type>jar</type>
|
2020-12-23 05:52:29 +00:00
|
|
|
|
<version>[1.9.1,)</version>
|
2018-10-05 15:48:29 +00:00
|
|
|
|
</dependency>
|
|
|
|
|
</dependencies>
|
|
|
|
|
<dependencyManagement>
|
|
|
|
|
</dependencyManagement>
|
|
|
|
|
<build>
|
|
|
|
|
<finalName>${project.artifactId}</finalName>
|
|
|
|
|
<resources>
|
|
|
|
|
<resource>
|
|
|
|
|
<directory>src/main/resources</directory>
|
|
|
|
|
<filtering>true</filtering>
|
|
|
|
|
</resource>
|
|
|
|
|
</resources>
|
2019-04-02 01:54:01 +00:00
|
|
|
|
<plugins>
|
|
|
|
|
<plugin>
|
|
|
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
|
|
|
<artifactId>maven-shade-plugin</artifactId>
|
2019-10-24 01:14:56 +00:00
|
|
|
|
<version>3.2.1</version>
|
2019-04-02 01:54:01 +00:00
|
|
|
|
<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>
|
|
|
|
|
<!--suppress MybatisMapperXmlInspection -->
|
|
|
|
|
<goal>shade</goal>
|
|
|
|
|
</goals>
|
|
|
|
|
</execution>
|
|
|
|
|
</executions>
|
|
|
|
|
</plugin>
|
|
|
|
|
</plugins>
|
2019-04-08 08:45:55 +00:00
|
|
|
|
<pluginManagement>
|
|
|
|
|
<plugins>
|
|
|
|
|
<plugin>
|
|
|
|
|
<groupId>com.github.wvengen</groupId>
|
|
|
|
|
<artifactId>proguard-maven-plugin</artifactId>
|
2019-10-24 01:14:56 +00:00
|
|
|
|
<version>2.2.0</version>
|
2019-04-08 08:45:55 +00:00
|
|
|
|
<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>
|
|
|
|
|
</pluginManagement>
|
2018-10-05 15:48:29 +00:00
|
|
|
|
</build>
|
|
|
|
|
</project>
|