Skip to content

Instantly share code, notes, and snippets.

@Pocketkid2
Last active April 6, 2022 18:09
Show Gist options
  • Save Pocketkid2/c2b64b91088d7318632d to your computer and use it in GitHub Desktop.
Save Pocketkid2/c2b64b91088d7318632d to your computer and use it in GitHub Desktop.
[1.18] Template pom.xml for people who don't know what they're doing
<properties>
<author>Pocketkid2</author>
<maven.compiler.source>17</maven.compiler.source>
<maven.compiler.target>17</maven.compiler.target>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
</properties>
<packaging>jar</packaging>
<build>
<resources>
<resource>
<directory>${basedir}/src/main/resources</directory>
<filtering>true</filtering>
<includes>
<include>plugin.yml</include>
<include>config.yml</include>
<!-- Add other any other .yml or text files here -->
</includes>
</resource>
</resources>
<finalName>${project.name}</finalName>
</build>
<repositories>
<repository>
<id>spigot-repo</id>
<url>https://hub.spigotmc.org/nexus/content/repositories/snapshots/</url>
</repository>
</repositories>
<dependencies>
<dependency>
<groupId>org.spigotmc</groupId>
<artifactId>spigot-api</artifactId>
<version>1.18.2-R0.1-SNAPSHOT</version>
<scope>provided</scope>
</dependency>
</dependencies>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment