-
Notifications
You must be signed in to change notification settings - Fork 20
/
Copy pathpom-minecraft-server-pkgmcp.patch
61 lines (58 loc) · 2.56 KB
/
pom-minecraft-server-pkgmcp.patch
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
commit 0330c4fe10cf8d088ca06f4537684f486618bbc6
Author: Agaricus <[email protected]>
Date: Sun Dec 30 22:42:00 2012 -0800
Use minecraft-server-pkgmcp as a library
Also disable NMS and bouncycastle relocation so it can be found during
MCP reobfuscation at the expected locations.
diff --git a/pom.xml b/pom.xml
index 77f1295..66494c5 100644
--- a/pom.xml
+++ b/pom.xml
@@ -59,8 +59,19 @@
</dependency>
<dependency>
<groupId>org.bukkit</groupId>
- <artifactId>minecraft-server</artifactId>
- <version>${minecraft.version}</version>
+ <!-- CBMCP - minecraft-server compiled with packaged FML/MCP mappings
+ To create this file:
+ 1. Setup a MCP workspace with FML/MCP mappings, but *without* FML patches and client/server merge - see https://gist.github.com/4366333
+ 2. Create archive:
+ cd bin/minecraft_server
+ cp -r ../../temp/bin/minecraft_server/{META-INF,achievement,font.txt,lang,org} .
+ zip -r ../../../minecraft-server-pkgmcp-1.4.7.jar *
+ 4. Add to repository:
+ cd ~/CraftBukkit
+ mvn install:install-file -Dfile=../minecraft-server-pkgmcp-1.4.7.jar -DgroupId=org.bukkit -DartifactId=minecraft-server-pkgmcp -Dpackaging=jar -Dversion=1.4.7
+ -->
+ <artifactId>minecraft-server-pkgmcp</artifactId>
+ <version>1.4.7</version>
<type>jar</type>
<scope>compile</scope>
</dependency>
@@ -224,10 +235,12 @@
</goals>
<configuration>
<relocations>
+ <!-- CBMCP - disable for reobfuscation
<relocation>
<pattern>org.bouncycastle</pattern>
<shadedPattern>net.minecraft.v${minecraft_version}.org.bouncycastle</shadedPattern>
</relocation>
+ -->
<relocation>
<pattern>joptsimple</pattern>
<shadedPattern>org.bukkit.craftbukkit.libs.joptsimple</shadedPattern>
@@ -269,10 +282,12 @@
<exclude>org.bukkit.craftbukkit.Main*</exclude>
</excludes>
</relocation>
+ <!-- disable NMS relocation since it is completely restructured in MCP; expect at unrelocated location for reobfuscation
<relocation>
<pattern>net.minecraft.server</pattern>
<shadedPattern>net.minecraft.server.v${minecraft_version}</shadedPattern>
</relocation>
+ -->
</relocations>
</configuration>
</execution>