Created
November 23, 2019 18:14
-
-
Save nodingneu/cca881fc0035d80d2e751c24a50dafd2 to your computer and use it in GitHub Desktop.
UltiSnips syntax pom.xml for Paper Minecraft server plugins. Replace the $'s with desired values if not using UltiSnips.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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>$1</groupId> | |
<artifactId>$2</artifactId> | |
<version>${3:0.0.0}</version> | |
<name>$4</name> | |
<description>$5</description> | |
<url>$6</url> | |
<!-- Replace with year project created if not using python UltiSnips --> | |
<inceptionYear>`!p import datetime; snip.rv = datetime.datetime.now().year`</inceptionYear> | |
<properties> | |
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> | |
</properties> | |
<repositories> | |
<repository> | |
<id>papermc</id> | |
<url>https://papermc.io/repo/repository/maven-public/</url> | |
</repository>$7 | |
</repositories> | |
<dependencies> | |
<dependency> | |
<groupId>com.destroystokyo.paper</groupId> | |
<artifactId>paper-api</artifactId> | |
<!-- what version of the Paper API are you using? --> | |
<version>$8</version> | |
<scope>provided</scope> | |
</dependency>$9 | |
</dependencies> | |
<!-- This developer section, and individually any of the properties within, are optional --> | |
<developers> | |
<developer> | |
<id>$10</id> | |
<name>$11</name> | |
<email>$12</email> | |
<url>$13</url> | |
<roles> | |
<!-- You can make up any role name. I often use "author" --> | |
<role>$14</role> | |
</roles> | |
<!-- Use the tz database timezone name --> | |
<timezone>$15</timezone> | |
</developer>$16 | |
</developers> | |
<build> | |
<!-- setting defaultGoal means that we can build with 'mvn', | |
instead of 'mvn install' --> | |
<defaultGoal>install</defaultGoal> | |
<plugins> | |
<plugin> | |
<groupId>org.apache.maven.plugins</groupId> | |
<artifactId>maven-compiler-plugin</artifactId> | |
<version>3.8.1</version> | |
<configuration> | |
<source>1.8</source> | |
<target>1.8</target> | |
</configuration> | |
</plugin> | |
<plugin> | |
<artifactId>maven-assembly-plugin</artifactId> | |
<executions> | |
<execution> | |
<phase>package</phase> | |
<goals> | |
<goal>single</goal> | |
</goals> | |
</execution> | |
</executions> | |
<configuration> | |
<appendAssemblyId>false</appendAssemblyId> | |
<descriptorRefs> | |
<descriptorRef>jar-with-dependencies</descriptorRef> | |
</descriptorRefs> | |
</configuration> | |
</plugin> | |
<plugin> | |
<!-- copy jarfiles straight to ${17:../server/plugins} so we can test | |
the plugin without having to move them ourselves --> | |
<groupId>org.apache.maven.plugins</groupId> | |
<artifactId>maven-jar-plugin</artifactId> | |
<version>2.3.1</version> | |
<configuration> | |
<outputDirectory>${basedir}/$17</outputDirectory> | |
</configuration> | |
</plugin> | |
</plugins> | |
</build> | |
</project> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment