Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Note

Oracle Java SE Development Kit (JDK), Apache Maven and Git Client are the basic prerequisites that are required to build from source. For more information on the product versions required, see Prerequisites.

Table of Contents

Excerpt

Step 1 - Check out the source

Checkout the source from Apache Stratos remote repository to a folder of your choice.

git clone https://git-wip-us.apache.org/repos/asf/stratos.git <LOCAL_FOLDER_NAME>

For example: git clone https://git-wip-us.apache.org/repos/asf/stratos.git myLocalRepo

Info
HTML
Make sure that you have setup Git properly. For more information, go to <a target="_blank" href=http://git-scm.com/book/en/Getting-Started-First-Time-Git-Setup>http://git-scm.com/book/en/Getting-Started-First-Time-Git-Setup</a>

Step 2 - Build using Maven

  1. Navigate to the directory that you checked out the Stratos source distribution.

    cd <LOCAL_FOLDER_NAME>/<STRATOS_SOURCE_HOME>

    For example: cd myLocalRepo/<STRATOS_SOURCE_HOME>
  2. Use Maven to build the source.

    CommandDescription
    mvn clean install To build the source distribution of the release.
    mvn clean install -Dmaven.test.skip=trueTo build source distribution, without running any of the unit tests.
    mvn clean install -Dmaven.test.skip=true -o To build source distribution, without running any of the unit tests, in offline mode. This can be done only if you've already built the source at least once.