aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorZach Brown <[email protected]>2016-05-29 18:26:35 -0500
committerZach Brown <[email protected]>2016-05-29 18:26:35 -0500
commit0a98d670fe530b2d8c36c8231763347c7d270008 (patch)
treebd9bd026b56acdf36b9755841394f17293fb7f93
parenta8d326f36728c51d1a42a8ad178f61eeac9e537d (diff)
downloadPaper-0a98d670fe530b2d8c36c8231763347c7d270008.tar.gz
Paper-0a98d670fe530b2d8c36c8231763347c7d270008.zip
Stop relocating jopt-simple
Workaround for GH-189 Relocation breaks the lookup of a resource bundle, and this is easier than forking and maintaining our own version AFAIK this should be fine to do. Guess we'll see
-rw-r--r--Spigot-Server-Patches/0001-POM-Changes.patch28
1 files changed, 19 insertions, 9 deletions
diff --git a/Spigot-Server-Patches/0001-POM-Changes.patch b/Spigot-Server-Patches/0001-POM-Changes.patch
index 3c0e90bbe6..3ed837a649 100644
--- a/Spigot-Server-Patches/0001-POM-Changes.patch
+++ b/Spigot-Server-Patches/0001-POM-Changes.patch
@@ -1,11 +1,11 @@
-From 91ee9a57d18f73a2947465b971dc8e81c0b3fae2 Mon Sep 17 00:00:00 2001
+From 1f44ac1349b9039a365ca63f7ec578fdbc0974ea Mon Sep 17 00:00:00 2001
From: Zach Brown <[email protected]>
Date: Mon, 29 Feb 2016 20:40:33 -0600
Subject: [PATCH] POM Changes
diff --git a/pom.xml b/pom.xml
-index 95a9224..90fde44 100644
+index 95a9224..00edfb5 100644
--- a/pom.xml
+++ b/pom.xml
@@ -1,12 +1,12 @@
@@ -81,7 +81,8 @@ index 95a9224..90fde44 100644
- <descriptionProperty>spigot.desc</descriptionProperty>
- </configuration>
- <phase>initialize</phase>
-- <goals>
++ <phase>compile</phase>
+ <goals>
- <goal>describe</goal>
- </goals>
- </execution>
@@ -93,8 +94,7 @@ index 95a9224..90fde44 100644
- <descriptionProperty>craftbukkit.desc</descriptionProperty>
- </configuration>
- <phase>initialize</phase>
-+ <phase>compile</phase>
- <goals>
+- <goals>
- <goal>describe</goal>
+ <goal>gitdescribe</goal>
</goals>
@@ -141,15 +141,25 @@ index 95a9224..90fde44 100644
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-shade-plugin</artifactId>
<version>2.4.1</version>
-@@ -194,6 +164,7 @@
+@@ -194,11 +164,13 @@
<goal>shade</goal>
</goals>
<configuration>
+ <createDependencyReducedPom>false</createDependencyReducedPom> <!-- Paper -->
<relocations>
+- <relocation>
+- <pattern>joptsimple</pattern>
+- <shadedPattern>org.bukkit.craftbukkit.libs.joptsimple</shadedPattern>
+- </relocation>
++ <!-- Paper - Workaround for hardcoded path lookup in dependency, easier than forking it - GH-189 -->
++ <!--<relocation>-->
++ <!--<pattern>joptsimple</pattern>-->
++ <!--<shadedPattern>org.bukkit.craftbukkit.libs.joptsimple</shadedPattern>-->
++ <!--</relocation>-->
<relocation>
- <pattern>joptsimple</pattern>
-@@ -232,20 +203,6 @@
+ <pattern>jline</pattern>
+ <shadedPattern>org.bukkit.craftbukkit.libs.jline</shadedPattern>
+@@ -232,20 +204,6 @@
<artifactId>maven-compiler-plugin</artifactId>
<!-- versions after this appear to be broken -->
<version>3.1</version>
@@ -184,5 +194,5 @@ index 9304637..674096c 100644
if (stream != null) {
--
-2.8.2
+2.8.3.windows.1