summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorErik Broes <erikbroes@grum.nl>2011-01-01 19:37:22 +0100
committerErik Broes <erikbroes@grum.nl>2011-01-01 19:37:34 +0100
commit98b405139ed3d114f4f0ce87c949be6580897c78 (patch)
tree2666469671927a125b387f4996612a083bfb7253
parentf199cc7190e7618afb59ea3c81b6b8d425394c47 (diff)
downloadcraftbukkit-98b405139ed3d114f4f0ce87c949be6580897c78.tar
craftbukkit-98b405139ed3d114f4f0ce87c949be6580897c78.tar.gz
craftbukkit-98b405139ed3d114f4f0ce87c949be6580897c78.tar.lz
craftbukkit-98b405139ed3d114f4f0ce87c949be6580897c78.tar.xz
craftbukkit-98b405139ed3d114f4f0ce87c949be6580897c78.zip
Updated pom.xml to produce a 'ready to run' jar
-rw-r--r--pom.xml28
1 files changed, 18 insertions, 10 deletions
diff --git a/pom.xml b/pom.xml
index cbfb2c74..548296f9 100644
--- a/pom.xml
+++ b/pom.xml
@@ -28,20 +28,28 @@
<scope>compile</scope>
</dependency>
</dependencies>
- <!-- to add the manifest with the Main-Class -->
+ <!-- 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.3.1</version>
- <configuration>
- <archive>
- <manifest>
- <mainClass>org.bukkit.craftbukkit.Main</mainClass>
- </manifest>
- </archive>
- </configuration>
+ <artifactId>maven-shade-plugin</artifactId>
+ <version>1.4</version>
+ <executions>
+ <execution>
+ <phase>package</phase>
+ <goals>
+ <goal>shade</goal>
+ </goals>
+ <configuration>
+ <transformers>
+ <transformer implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer">
+ <mainClass>org.bukkit.craftbukkit.Main</mainClass>
+ </transformer>
+ </transformers>
+ </configuration>
+ </execution>
+ </executions>
</plugin>
</plugins>
</build>