3
0
Mirror von https://github.com/PaperMC/Paper.git synchronisiert 2024-12-18 04:20:08 +01:00

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

Dieser Commit ist enthalten in:
Erik Broes 2011-01-01 19:37:22 +01:00
Ursprung f199cc7190
Commit 98b405139e

28
pom.xml
Datei anzeigen

@ -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>