Make Developer CraftBukkit: Difference between revisions

From JoBaPedia
Jump to navigation Jump to search
(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...)
 
 
Line 1: Line 1:
= Howto Make Developer CraftBukkit =
= Howto make developer CraftBukkit with some important plugins =


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


* install git (zypper install git)
* install hg and git (sudo zypper install hg git)
* install maven 3 (don't know, get it from apache site)
* install maven 3 (don't know, get it from apache site)
* clone craftbukkit repo (described below)
* clone mybukkit repo (described below)
* build (described below)
* build and install (described below)


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


  cd /wherever/you/want/to/build/
  cd /wherever/you/want/to/build/
  mkdir craftbukkit
  hg clone http://banzhaf.homeip.net/hg/mybukkit
cd craftbukkit
cd mybukkit
git clone git://github.com/Bukkit/CraftBukkit.git


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


  cd /wherever/you/cloned/your/craftbukkit
  cd /wherever/you/cloned/your/mybukkit
  git pull
  hg pull
hg update


Now you can build it
Now you can build


  mvn clean package
  ./mybukkit -u


Should end with lines like this
This will clone craftbukkit and the plugin repositories if necessary, updates and then rebuilds them.
Finally it does a test install and starts it. Try to connect to it and check everything that you need working. Don't forget: this is a bleeding edge development build. Things often break here.


[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
If all went fine, you can make a tar of the new craftbukkit and the plugins. Later you can unpack this in your usual craftbukkit folder (after you made a backup ;-).  
[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
./mybukkit -t


java -jar target/craftbukkit-*-SNAPSHOT.jar
If you use other plugins that are not maintained by this script, you have to update them manually, as before.
Or, look into the script: maybe all you have to do is add the plugins git repository and the plugin name to make it work.
 
Good luck!

Latest revision as of 10:06, 14 April 2013

Howto make developer CraftBukkit with some important plugins

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

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

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

cd /wherever/you/want/to/build/
hg clone http://banzhaf.homeip.net/hg/mybukkit
cd mybukkit

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

cd /wherever/you/cloned/your/mybukkit
hg pull
hg update

Now you can build

./mybukkit -u

This will clone craftbukkit and the plugin repositories if necessary, updates and then rebuilds them. Finally it does a test install and starts it. Try to connect to it and check everything that you need working. Don't forget: this is a bleeding edge development build. Things often break here.

If all went fine, you can make a tar of the new craftbukkit and the plugins. Later you can unpack this in your usual craftbukkit folder (after you made a backup ;-).

./mybukkit -t

If you use other plugins that are not maintained by this script, you have to update them manually, as before. Or, look into the script: maybe all you have to do is add the plugins git repository and the plugin name to make it work.

Good luck!