Commits

Erik Broes authored 98b405139ed
Updated pom.xml to produce a 'ready to run' jar
No tags

pom.xml

Modified
21 21 <scope>compile</scope>
22 22 </dependency>
23 23 <dependency>
24 24 <groupId>org.bukkit</groupId>
25 25 <artifactId>minecraft-server</artifactId>
26 26 <version>1.1_02</version>
27 27 <type>jar</type>
28 28 <scope>compile</scope>
29 29 </dependency>
30 30 </dependencies>
31 - <!-- to add the manifest with the Main-Class -->
31 + <!-- This builds a completely 'ready to start' jar with all dependencies inside -->
32 32 <build>
33 33 <plugins>
34 34 <plugin>
35 35 <groupId>org.apache.maven.plugins</groupId>
36 - <artifactId>maven-jar-plugin</artifactId>
37 - <version>2.3.1</version>
38 - <configuration>
39 - <archive>
40 - <manifest>
41 - <mainClass>org.bukkit.craftbukkit.Main</mainClass>
42 - </manifest>
43 - </archive>
44 - </configuration>
36 + <artifactId>maven-shade-plugin</artifactId>
37 + <version>1.4</version>
38 + <executions>
39 + <execution>
40 + <phase>package</phase>
41 + <goals>
42 + <goal>shade</goal>
43 + </goals>
44 + <configuration>
45 + <transformers>
46 + <transformer implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer">
47 + <mainClass>org.bukkit.craftbukkit.Main</mainClass>
48 + </transformer>
49 + </transformers>
50 + </configuration>
51 + </execution>
52 + </executions>
45 53 </plugin>
46 54 </plugins>
47 55 </build>
48 56 </project>

Everything looks good. We'll let you know here if there's anything you should know about.

Add shortcut