Skip to content

Build apiGrove from source

wearelookingfortrouble edited this page Oct 25, 2012 · 9 revisions

How to build apiGrove install package from source

Purpose

This tutorial demonstrates how to build apiGrove installer from source at the command line

Prerequisites

Warning : You mustn't build ApiGrove on the E3 running machine.

Please ensure the following prerequites are met on the build host

  • git is installed.
  • maven 3.0.3+
  • internet connectivity

Unless otherwise stated all tutorials commands are run from your build host.

Instructions

Get the source

As an anonymous developer:

git clone git://github.com/apigrove/apigrove.git

This will create a new directory named: apigrove

Download Oracle JDK

Go to http://www.oracle.com/technetwork/java/javasebusiness/downloads/java-archive-downloads-javase6-419409.html#jdk-6u32-oth-JPR

Read and accept the license and Download 6u32 architecture appropriate rpm bin to ./tools

e.g for 64 bit target host download http://download.oracle.com/otn-pub/java/jdk/6u32-b05/jdk-6u32-linux-x64-rpm.bin and save it as ./tools/x64-6u32-linux-x64-rpm.bin, for 32 bit save it as i586-6u32-linux-i586-rpm.bin

Modify ./scripts/variables.sh if a newer version of the Oracle JDK is in use.

Backup your {user.home}/.m2 directory.

If it is the first time you use maven on your computer, you can simply manually create {user.home}/.m2 directory and go to the next step Copy ./maven/settings.xml.

mkdir –p ~/.m2/backup
mv ~/.m2/* ~/.m2/backup

Copy ./maven/settings.xml on the {user.home}/.m2/ directory.

cp ./maven/settings.xml ~/.m2/

Change directory to the exposure-engine and build all modules

cd ./exposure-engine/

Build all exposure-engine projects

mvn clean compile

Change directory back to the top level and build the install package

cd ../
mvn clean install -f pom-assembly.xml -P build-modules,assembly

Once the build is complete, the installer can be found under target/server-side.

Please see the apigrove installation guide for install directions. Review the prerequisites and system changes the install makes before attempting to install the build on your host.