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

@OrsellGaming
Copy link

@bobross2103301 you did not change the directory to the directory where the plugin source code is. You are currently running mvn clean install in your base user directory. Use cd as mentioned in the guide above to change the directory to the source code directory.

@Mineshaft87 I am assuming the same thing is happening to you because the image you sent is no longer available.

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