To edit or add content to this Wiki, you can simply create a new account at http://wocommunity.org/account.

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: works with eclipse 4.4.1

...

  1. Help -> Install New Software
  2. Click "Add..."
    1. Name = M2Eclipse
    2. Location = http://m2eclipse.sonatype.org/update/
    3. Click "OK"
  3. Expand "Maven Integration"
  4. Select "Maven Embedder"
  5. Select "Maven Integration for Eclipse"
  6. Click "Next>"
  7. Click "Finish"
    (What is the m2eclipse plugin a prerequisite for? Nothing below refers to it....)

Checking out and Building from the Commandline

  1. Checkout the trunk/woproject folder from Subversion
    git clone git://github.com/wolips/wolips.git woproject
  2. cd woproject
  3. ant
  4. The first build will fail out telling you that it couldn't find wobuild.properties – That's OK
  5. Edit ~/Library/wobuild.properties
  6. Add a line: eclipse.home=/path/to/your/eclipse
  7. Call ant with the build.version argument:

    Code Block
    ant -Dbuild.version=3x.7y.SomeNumberz
    1. If you get the error 'build.xml:73: taskdef A class needed by class org.apache.velocity.anakia.AnakiaTask cannot be found: org/jdom/JDOMException', you can do one of two things. You can build with -Dno.docs=true to skip the javadoc step, or (untested) you can drop jdom-b8.jar from woproject/projects/lib into your ANT_HOME/lib folder.
  8. The build went into temp/dist
  9. Profit

(Successfully built on Ubuntu 14.04 LTS with eclipse 4.4.1, using "ant -Dbuild.version=4.4.1" as the build command. - 2015/03/12 - ray@ganymede.org with an OMG thanks to stefan.klein@buero-sde.de.)

Checking out and Building inside of Eclipse for Deployment

...

  1. Install Eclipse 3.7. You need it to be able to build WOLips.
  2. Copy the necessary plugins from your machine to the Eclipse installation on the server. In this example it has been copied to /usr/local/eclipse
    The currently required plugins for a deployment build are
    * JProfiler (Update Site: http://wocommunity.org/documents/tools/jprofiler6/)
    * JRebel (Update Update Site : http://www.zeroturnaround.com/update-site/)
  3. Create a new job in Jenkins to build WOLips. You can use the following sample config or you can add a new job with the following configuration:
    1. Project Name: WOLips
    2. Git Repositories: git://github.com/wolips/wolips.git
    3. Use update: Checked
    4. Poll SCM: 59 * * * * (59 can be replaced with any number between 0 and 59)
  4. Add the following build tasks to the job

    Code Block
    titleExecute Shell
    
    echo build.version=3.7.${BUILD_NUMBER} > build.properties
    echo eclipse.home=/usr/local/eclipse >> build.properties
    echo user.home=${WORKSPACE} >> build.properties
    
    Code Block
    titleInvoke Ant
    
    Targets: dist
    

    If you want to deploy the build to a web server to serve as an update site add a task that is something like this

    Code Block
    titleExecute Shell
    
    rm -fr  /usr/local/www/apache22/data/wolips/*
    /bin/cp -prv ${WORKSPACE}/wolips/temp/dist/ /usr/local/www/apache22/data/wolips/
    

...