xml Bukkit / Spigot插件的pom.xml模板

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了xml Bukkit / Spigot插件的pom.xml模板相关的知识,希望对你有一定的参考价值。

<!-- My pom.xml's usually look like this and I don't like retyping stuff -->

<!-- If any of these are not filled out you should -->
<groupId>CHANGE ME - PACKAGE IDENTIFIER</groupId>
<artifactId>CHANGE ME - PROJECT PACKAGE IDENTIFIER</artifactId>
<version>CHANGE ME - EVERY VERSION</version>
<name>CHANGE ME - NO SPACES RECOMMENDED</name>
<description>CHANGE ME - ONE SENTENCE DESCRIPTION RECOMMENDED</description>

<properties>
	<!-- Removes warnings -->
	<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
	<!-- Used in plugin.yml -->
	<mainClass>CHANGE ME - CLASS NAME</mainClass>
	<!-- Also used in plugin.yml -->
	<author>CHANGE ME - AUTHORS USERNAME</author>
</properties>
<build>
	<!-- Uses the properties in this file for plugin.yml and config.yml -->
	<resources>
		<resource>
			<directory>${basedir}/src/main/resources</directory>
			<filtering>true</filtering>
			<includes>
				<include>plugin.yml</include>
				<include>config.yml</include>
			</includes>
		</resource>
	</resources>
	<plugins>
		<!-- Sets the Java version to 8 -->
		<plugin>
			<groupId>org.apache.maven.plugins</groupId>
			<artifactId>maven-compiler-plugin</artifactId>
			<version>3.1</version>
			<configuration>
				<source>1.8</source>
				<target>1.8</target>
			</configuration>
		</plugin>
		<!-- Sets the custom JARfile name (Project name without spaces is good) -->
		<plugin>
			<groupId>org.apache.maven.plugins</groupId>
			<artifactId>maven-jar-plugin</artifactId>
			<version>2.4</version>
			<configuration>
				<finalName>${project.name}</finalName>
			</configuration>
		</plugin>
	</plugins>
</build>
<!-- This is the spigot repository, if you need others look them up -->
<repositories>
	<repository>
		<id>spigot-repo</id>
		<url>https://hub.spigotmc.org/nexus/content/repositories/snapshots/</url>
	</repository>
</repositories>
<!-- Spigot dependency version, if you need others look them up -->
<dependencies>
	<dependency>
		<groupId>org.spigotmc</groupId>
		<artifactId>spigot-api</artifactId>
		<version>1.10.2-R0.1-SNAPSHOT</version>
	</dependency>
</dependencies>

以上是关于xml Bukkit / Spigot插件的pom.xml模板的主要内容,如果未能解决你的问题,请参考以下文章

CraftBukkit好还是Spigot 好

如何从另一个通过 Bungeecord 运行的 Paper Spigot 服务器获取玩家数量

如何获得此经过的时间?

[Minecraft国际版] 我的世界PC端服务器端总览介绍(1)

Spigot MC的部署 及地图插件Dynmap

xml spigot.xml