1
0
Fork 0
mirror of https://github.com/PaperMC/Paper.git synced 2025-02-23 13:08:32 +01:00

Updated pom.xml to produce a 'ready to run' jar

By: Erik Broes <erikbroes@grum.nl>
This commit is contained in:
CraftBukkit/Spigot 2011-01-01 19:37:22 +01:00
parent ae512460b8
commit 7f9f16cd58

View file

@ -28,20 +28,28 @@
<scope>compile</scope> <scope>compile</scope>
</dependency> </dependency>
</dependencies> </dependencies>
<!-- to add the manifest with the Main-Class --> <!-- This builds a completely 'ready to start' jar with all dependencies inside -->
<build> <build>
<plugins> <plugins>
<plugin> <plugin>
<groupId>org.apache.maven.plugins</groupId> <groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jar-plugin</artifactId> <artifactId>maven-shade-plugin</artifactId>
<version>2.3.1</version> <version>1.4</version>
<configuration> <executions>
<archive> <execution>
<manifest> <phase>package</phase>
<mainClass>org.bukkit.craftbukkit.Main</mainClass> <goals>
</manifest> <goal>shade</goal>
</archive> </goals>
</configuration> <configuration>
<transformers>
<transformer implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer">
<mainClass>org.bukkit.craftbukkit.Main</mainClass>
</transformer>
</transformers>
</configuration>
</execution>
</executions>
</plugin> </plugin>
</plugins> </plugins>
</build> </build>