Skip to content

Latest commit

 

History

History
72 lines (46 loc) · 2.58 KB

Build_Instructions.md

File metadata and controls

72 lines (46 loc) · 2.58 KB

Building acmeair auth service using Eclipse

These instructions assume you

  1. Have git tools installed in Eclipse (These should be included by default).
Clone Git Repo

If the sample git repository hasn't been cloned yet, use git tools integrated into the IDE:

  1. Open the Git repositories view
    • Window -> Show View -> Other
    • Type "git" in the filter box, and select Git Repositories
  2. Copy Git repo url by finding the textbox under "HTTPS clone URL" at the top of this page, and select Copy to clipboard
  3. In the Git repositories view, select the hyperlink Clone a Git repository
  4. The git repo url should already be filled in. Select Next -> Next -> Finish
  5. The "acmeair-authservice-java [master]" repo should appear in the view
Import Maven projects into WDT
  1. In the Git Repository view, expand the acmeair-authservice-java repo to see the "Working Directory" folder
  2. Right-click on this folder, and select Copy path to Clipboard
  3. Select menu File -> Import -> Maven -> Existing Maven Projects
  4. In the Root Directory textbox, Paste in the repository directory.
  5. Select Browse... button and select Finish (confirm it finds 1 pom.xml files)
  6. This will create 1 projects in Eclipse: acmeair-authservice-java
Run Maven install
  1. Right-click on acmeair-authservice-java/pom.xml
  2. Run As > Maven build...
  3. In the Goals section enter "package"
  4. Click Run

Note: If you did not use Eclipse to clone the git repository, follow from step 3, but navigate to the cloned repository directory rather than pasting its name in step 4.

This will download prerequisite jars and build:

  • acmeair-authservice-java/target/acmeair-authservice-java-3.0.0-SNAPSHOT.war

Building acmeair auth service using the Command Line

Add Java to your path and set your JAVA_HOME environment variable appropriately

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
Install the following development tools
Clone Git Repo
git clone https://github.com/BluePerf/acmeair-authservice-java.git
Building the sample
cd <acmeair-authservice-java_GIT_PATH>  
mvn clean package

This will download prerequisite jars and build:

  • acmeair-authservice-java/target/acmeair-authservice-java-3.0.0-SNAPSHOT.war