Make Developer CraftBukkit

From JoBaPedia
Revision as of 18:55, 18 March 2013 by Joachim (talk | contribs) (New page: = Howto Make Developer CraftBukkit = first, why? Isn't there a recommended build you can download? Ok, probably not, so what we need to do is * install git (zypper install git) * install...)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Howto Make Developer CraftBukkit

first, why? Isn't there a recommended build you can download? Ok, probably not, so what we need to do is

  • install git (zypper install git)
  • install maven 3 (don't know, get it from apache site)
  • clone craftbukkit repo (described below)
  • build (described below)

So, if you have git and maven, but you don't have a clone of the craftbukkit repository yet, then

cd /wherever/you/want/to/build/
mkdir craftbukkit
cd craftbukkit
git clone git://github.com/Bukkit/CraftBukkit.git

If you did that before, it is enough to update your git repository

cd /wherever/you/cloned/your/craftbukkit
git pull

Now you can build it

mvn clean package

Should end with lines like this

[INFO] Replacing /home/joachim/workspace/craftbukkit/target/craftbukkit-1.5-R0.1-SNAPSHOT.jar with /home/joachim/workspace/craftbukkit/target/craftbukkit-1.5-R0.1-SNAPSHOT-shaded.jar
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 3:48.867s
[INFO] Finished at: Mon Mar 18 19:35:50 CET 2013
[INFO] Final Memory: 34M/698M
[INFO] ------------------------------------------------------------------------

Now you can start it

java -jar target/craftbukkit-*-SNAPSHOT.jar