From 12bb9e3573f29a8311834a754fe360cec4c25658 Mon Sep 17 00:00:00 2001
From: CraftBukkit/Spigot <noreply+git-craftbukkit@papermc.io>
Date: Tue, 8 Feb 2011 22:46:48 +0000
Subject: [PATCH] Unseal net.bukkit Fix fail Prepare to seal. THIS IS ONE
 WEEK'S NOTICE.

By: Luke GB <github@lukegb.com>
---
 paper-server/pom.xml | 63 ++++++++++++++++++++++++++++----------------
 1 file changed, 40 insertions(+), 23 deletions(-)

diff --git a/paper-server/pom.xml b/paper-server/pom.xml
index 2f182d96f5..7a95bb2bc2 100644
--- a/paper-server/pom.xml
+++ b/paper-server/pom.xml
@@ -40,6 +40,45 @@
   <!-- This builds a completely 'ready to start' jar with all dependencies inside -->
   <build>
     <plugins>
+      <plugin>
+        <groupId>org.apache.maven.plugins</groupId>
+        <artifactId>maven-jar-plugin</artifactId>
+        <version>2.1</version>
+        <configuration>
+          <archive>
+            <manifestEntries>
+              <Main-Class>org.bukkit.craftbukkit.Main</Main-Class>
+              <Implementation-Title>CraftBukkit</Implementation-Title>
+              <Implementation-Version>${build.version}</Implementation-Version>
+              <Implementation-Vendor>Bukkit Team</Implementation-Vendor>
+              <Specification-Title>Bukkit</Specification-Title>
+              <Specification-Version>${api.version}</Specification-Version>
+              <Specification-Vendor>Bukkit Team</Specification-Vendor>
+              <Sealed>false</Sealed>
+            </manifestEntries>
+            <manifestSections>
+              <manifestSection>
+                <name>net/bukkit/</name>
+                <manifestEntries>
+                  <Sealed>false</Sealed>
+                </manifestEntries>
+              </manifestSection>
+              <manifestSection>
+                <name>com/bukkit/</name>
+                <manifestEntries>
+                  <Sealed>false</Sealed>
+                </manifestEntries>
+              </manifestSection>
+              <manifestSection>
+                <name>org/bukkit/</name>
+                <manifestEntries>
+                  <Sealed>false</Sealed>
+                </manifestEntries>
+              </manifestSection>
+            </manifestSections>
+          </archive>
+        </configuration>
+       </plugin>
       <plugin>
         <groupId>org.apache.maven.plugins</groupId>
         <artifactId>maven-shade-plugin</artifactId>
@@ -50,28 +89,6 @@
             <goals>
               <goal>shade</goal>
             </goals>
-            <configuration>
-              <transformers>
-                <transformer implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer">
-                  <manifestEntries>
-                    <Main-Class>org.bukkit.craftbukkit.Main</Main-Class>
-                    <Implementation-Title>CraftBukkit</Implementation-Title>
-                    <Implementation-Version>${build.version}</Implementation-Version>
-                    <Implementation-Vendor>Bukkit Team</Implementation-Vendor>
-                    <Specification-Title>Bukkit</Specification-Title>
-                    <Specification-Version>${api.version}</Specification-Version>
-                    <Specification-Vendor>Bukkit Team</Specification-Vendor>
-                    <Sealed>true</Sealed>
-                    <Name>org/bukkit/</Name>
-                    <Sealed>true</Sealed>
-                    <Name>com/bukkit/</Name>
-                    <Sealed>true</Sealed>
-                    <Name>net/bukkit/</Name>
-                    <Sealed>true</Sealed>
-                  </manifestEntries>
-                </transformer>
-              </transformers>
-            </configuration>
           </execution>
         </executions>
       </plugin>
@@ -86,4 +103,4 @@
       </plugin>
     </plugins>
   </build>
-</project>
+</project>
\ No newline at end of file