Setting up the development environment

Getting the build process running for Moblogger is remarkably easy, thanks to Maven. Here's what you need to do:

  • Check out module "moblogger" from the CVS repository (anonymous). Further details are provided on SourceForge.
  • Download and unzip Maven.
  • Set up the neccessary environment variables (JAVA_HOME, MAVEN_HOME), put the maven/bin directory in your PATH...
  • From the moblogger root directory (where project.xml is), run "maven jar" - this will download all sorts of dependecies and finally build moblogger.jar in the "target" subdirectory.
  • Edit conf/agentsettings.xml and start moblogger using bin/runagent.bat.

Setting up Eclipse project

  • Start Eclipse
  • Under "Window"->"Open perspective"->"CVS Repository exploring"
  • In "CVS repositories" view:
  • Right click
  • Select "New" -> "Repository location"
  • set host to : "cvs.moblogger.sourceforge.net"
  • set repository path: "/cvsroot/moblogger"
  • set user to: "anonymous"
  • Click finish
  • Navigate to HEAD -> moblogger
  • Right click, and select "Check out as Project"
  • Drink a beer during the checkout (optional:-)
  • From a command prompt enter:

    "C:>cd ECLIPSE_PATH\workspace\moblogger"

    "...\eclipse\workspace\moblogger>maven eclipse:add-maven-repo"

    This will download all the dependencies, and set up maven_repo for eclipse
    Congratulation, you've got the fresh code of moblogger as an eclipse project!