Introduction
The js7-api-schemas project GIT repository holds the RAML source of the JS7 JSON schemas for the JS7 REST API.
Prerequisites
js7-inventory-schemas is a standard maven project and can be build built with maven. At the time of writing SOS currently uses maven version 3.3.9.
Build
Clone Repository
Navigate to your desired destination folder and clone the repository from GitHubClone project from the github page.
Code Block |
---|
|
git clone https://github.com/sos-berlin/js7-api-schemas |
Checkout
Checkout Tagged Version
Code Block |
---|
language | bash |
---|
title | Retrieve list of available tagged versions |
---|
|
git fetch --all --tags |
Code Block |
---|
language | bash |
---|
title | Checkout a desired version to a local branch |
---|
|
git checkout tags/[desired version] -b [desired local branch name]
e.g.
git checkout tags/v2.0.0 -b release/v2.0.0 |
Checkout Latest Tagged Version
Determine the latest tagged version and store it as a local variable.
Code Block |
---|
language | bash |
---|
title | Retrieve Latest Tagged Version |
---|
|
tag=$(git describe --tags `git rev-list --tags --max-count=1`) |
Checkout the latest version to a "latest" local branch using the variable you have just stored.
Code Block |
---|
language | bash |
---|
title | Checkout Latest |
---|
|
git checkout $tag -b latest |
Build
From the root of the project that you checked out project call:
Code Block |
---|
|
mvn clean install |