From 7ad5faa2ce011ba5e4294281efce09a74c4ec0ea Mon Sep 17 00:00:00 2001 From: Jikoo Date: Wed, 2 Oct 2019 06:48:14 -0400 Subject: [PATCH] Clean up maven instructions (cherry picked from commit b92543e0789518183cfa685302d7938932b09550) --- README.MD | 10 +++++++--- internal/pom.xml | 16 ---------------- 2 files changed, 7 insertions(+), 19 deletions(-) diff --git a/README.MD b/README.MD index f4a8358..b980800 100644 --- a/README.MD +++ b/README.MD @@ -132,11 +132,15 @@ OpenInv is a [Bukkit plugin](https://dev.bukkit.org/bukkit-plugins/openinv/) whi ## For Developers To compile, the relevant Craftbukkit/Spigot jars must be installed in your local repository using the install plugin. -Ex: `mvn install:install-file -Dpackaging=jar -Dfile=spigot-1.11-R0.1-SNAPSHOT.jar -DgroupId=org.spigotmc -DartifactId=spigot -Dversion=1.11-R0.1-SNAPSHOT` +Ex: `mvn install:install-file -Dpackaging=jar -Dfile=spigot-1.8-R0.1-SNAPSHOT.jar -DgroupId=org.spigotmc -DartifactId=spigot -Dversion=1.8-R0.1-SNAPSHOT` -To compile for a specific version or set of versions, you'll need to use a profile. Provided profiles are `latest`, `recent` (last 2 major Minecraft versions), and `all`. Select an existing profile using the `-P` argument (ex: `mvn clean package -am -P all`) or make your own. For more information, check out the [official guide](http://maven.apache.org/guides/introduction/introduction-to-profiles.html). +To compile for a single version, specify the NMS revision you are targeting: `mvn -pl -am clean install` -The final file is target/OpenInv.jar +To compile for a set of versions, you'll need to use a profile. The only provided profile is `all`. Select a profile using the `-P` argument: `mvn clean package -am -P all` + +For more information, check out the [official Maven guide](http://maven.apache.org/guides/introduction/introduction-to-profiles.html). + +The final file is `target/OpenInv.jar` ## License ``` diff --git a/internal/pom.xml b/internal/pom.xml index 4e1bcb9..b9acc20 100644 --- a/internal/pom.xml +++ b/internal/pom.xml @@ -30,22 +30,6 @@ - - latest - - v1_14_R1 - - - - - recent - - - v1_13_R2 - v1_14_R1 - - - all