Follow the instructions below to set up a development environment for Apache Stratos:
Table of Contents |
---|
Create the JAVA_HOME
environment variable, and point it to <JAVA_HOME>
.
Info |
---|
|
Create the M2_HOME
environment variable, and point to <MAVEN_HOME>
.
Info |
---|
|
MAVEN_OPTS
environment variable as follows:MAVEN_OPTS="-Xms512m -Xmx1536m -XX:MaxPermSize=512m -XX:ReservedCodeCacheSize=256m"
Checkout Apache Stratos source code from its Git repository as follows:
git clone https://git-wip-us.apache.org/repos/asf/stratos.git
Info |
---|
Select the Apache Stratos source code of the required release version, from the master branch of the Git repository. |
Set the STRATOS_SOURCE
environment variable, and point it to <STRATOS_HOME>
.
Info |
---|
|
Use either simple method or advanced method to set up Eclipse IDE as described below:
<STRATOS_HOME>
using the command line terminal.mvn clean install eclipse:eclipse
<STRATOS_HOME>
and select Search for nested projects.mvn clean install
pom.xml
file, which is in <STRATOS_HOME>
, to the IDE as a Maven project.Execute the Maven clean and Maven install life-cycles of the root pom.xml
file to build the complete project, using the command below:
mvn clean
install
This will build all service stubs, components, features, products, and extensions of the project.
STRATOS_HOME>/products/<PRODUCT_NAME>/modules/distribution/target/
directory.Extract the product's binary distribution file.
<PRODUCT_HOME>
/bin/ directory. <PRODUCT_HOME>
refers to the folder, which was extracted in the previous step.stratos.sh
stratos.sh --debug <PORT>