Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save iamnotpayingforyourpatreon/ab5192b94e827adcc313231b335f9810 to your computer and use it in GitHub Desktop.
Save iamnotpayingforyourpatreon/ab5192b94e827adcc313231b335f9810 to your computer and use it in GitHub Desktop.
Compiling / Building a Minecraft Plugin

Building a Minecraft Plugin from it's source code on GitHub

This tutorial will explain from nothing how to build/create a Minecraft Bukkit/Spigot/Paper Plugin for it's source code on GitHub.

I am assuming you don't know anything and don't have anything installed and are using a Windows device.

Prerequisites

Watch these tutorial videos (very short).

The repostitory link can be found by clicking the green "Code" button on the project's GitHub page and clicking the copy icon.

Example of the repo link: https://github.com/PlayPro/CoreProtect.git

You will see Cloning into 'FOLDER NAME'... after cloning. This is the folder name.

Begin Compiling

We will be using your Desktop as our location.

Right click the "Start" or "Windows" icon on your taskbar.

Click "Command Prompt".

Type the following commands.

cd Desktop
git clone <INSERT THE REPOSITORY LINK HERE>
cd <FOLDER NAME>
mvn clean install

i_am_not_paying_for_your_patreon_to_get_builds_for_open_source_code

This process will take a while. You should see [INFO] BUILD SUCCESS when it is complete.

The plugin jar will be outputted in the FOLDER NAME\target\PLUGIN NAME.jar

Do not use the .jar labelled "original".

i_am_not_paying_for_your_patreon_to_get_builds_for_open_source_code_2

@bobross2103301
Copy link

bobross2103301 commented Aug 11, 2024

Hello, trying to do this with Oraxen and cannot seem to get it to work? The build keeps on failing.

@bobross2103301
Copy link

image

@Mineshaft87
Copy link

image

Yeah i get the same error, POM folder was missing, no idea what that is

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment