diff --git a/README.md b/README.md index f8f006a..a86ef8d 100644 --- a/README.md +++ b/README.md @@ -6,4 +6,18 @@ Interesting Corner Spigot plugins for the Minecraft server: Core plugin that handles the database and has base classes for creating a GUI. ### IC-Coords -Coordinates plugin to be able to save, load and teleport to different waypoints \ No newline at end of file +Coordinates plugin to be able to save, load and teleport to different waypoints + +# Building +To build the project, install the Maven for Java VSCode plugin. It will detect all the available projects and artifacts. + +Install maven. Example in cachyOS: +```bash +sudo pacman -S maven +``` + +Then, run the install task for the `ic_plugins` project, or execute this command in the root of the repository: +```bash +mvn install -f "pom.xml" +``` +The plugins jars will be in the _target_ folder of each plugin's folder \ No newline at end of file diff --git a/ic_plugin_coordinates/pom.xml b/ic_plugin_coordinates/pom.xml index 31559a9..cacd0e7 100644 --- a/ic_plugin_coordinates/pom.xml +++ b/ic_plugin_coordinates/pom.xml @@ -111,6 +111,9 @@ maven-deploy-plugin 3.1.2 + + true + diff --git a/ic_plugin_core/pom.xml b/ic_plugin_core/pom.xml index 6dede0f..d66d87f 100644 --- a/ic_plugin_core/pom.xml +++ b/ic_plugin_core/pom.xml @@ -111,6 +111,9 @@ maven-deploy-plugin 3.1.2 + + true + diff --git a/install_and_jar.sh b/install_and_jar.sh index 03404ed..97b4756 100755 --- a/install_and_jar.sh +++ b/install_and_jar.sh @@ -1,5 +1,5 @@ #!/bin/bash -mvn install -f "/home/sem/Development/Minecraft/mc-ic-server/pom.xml" +mvn install -f "pom.xml" scp ic_plugin_core/target/ic_plugin_core-1.0-SNAPSHOT.jar sem@10.10.100.50:/home/sem/minecraft/plugins -scp ic_plugin_coordinates/target/ic_plugin_coordinates-1.0-SNAPSHOT.jar sem@10.10.100.50:/home/sem/minecraft/plugins \ No newline at end of file +scp ic_plugin_coordinates/target/ic_plugin_coordinates-1.0-SNAPSHOT.jar sem@10.10.100.50:/home/sem/minecraft/plugins