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