Windows:
set JAVA_HOME=C:\work\java\ibm-java-sdk-7.1-win-i386
set PATH=%JAVA_HOME%\bin;%PATH%
Linux:
export JAVA_HOME=~/work/java/ibm-java-sdk-7.1-i386
export PATH=$JAVA_HOME/bin:$PATH
- Git for access to the source code (http://msysgit.github.io/ for windows)
- Maven for building the project (http://maven.apache.org/download.cgi)
- Ensure git and mvn are in your path
WebSphere eXtreme Scale 8.6.0.x The objectgrid.jar is needed in order to build the acmeair-services-wxs module. The following steps describe how to obtain a trial version of WebSphere eXtreme Scale, which contains the objectgrid.jar file.
- Download link: http://www.ibm.com/developerworks/downloads/ws/wsdg
- Download the trial zip in a file called "extremescaletrial860.zip"
- Unzip this zip into a directory
- For the rest of these instructions we will assume this to be the WXS_SERVERDIR Windows:
cd \work\java
unzip extremescaletrial860.zip
cd \work\java\ObjectGrid
set WXS_SERVERDIR=C:\work\java\ObjectGrid
Linux:
cd ~/work/java
unzip extremescaletrial860.zip
cd ObjectGrid
export WXS_SERVERDIR=~/work/java/ObjectGrid
Windows:
cd %WXS_SERVERDIR%\lib
Linux
cd $WXS_SERVERDIR/lib
mvn install:install-file -Dfile=objectgrid.jar -DgroupId=com.ibm.websphere.objectgrid -DartifactId=objectgrid -Dversion=8.6.0.2 -Dpackaging=jar
- Go into a directory that you want to have the code in and use git to clone it
cd work
git clone https://github.com/acmeair/acmeair.git
- For the rest of these instructions we will assume this to be the ACMEAIR_SRCDIR Windows:
set ACMEAIR_SRCDIR=\work\acmeair
cd %ACMEAIR_SRCDIR%
Linux:
export ACMEAIR_SRCDIR=~/work/acmeair
cd $ACMEAIR_SRCDIR
The Acme Air sample application can be configure to use different data services, including WebSphere eXtreme Scale and MongoDB. During the build process, you may choose to package either one of the services, or all of the services in to the application web archive (.war file).
To pick a single service use the "-Pservice=" option on the gradle command.
For example, to only include the wxs service (located in the acmeair-services-wxs module) to use WebSphere eXtreme Scale, the build command would be as follows:
./gradlew -Pservice=wxs clean build
To package ALL of the services in the .war file, the "-Pservice=" parameter can be omitted.
./gradle clean build