Follow the instructions below to set up a development environment for Apache Stratos:
Create the JAVA_HOME
environment variable, and point it to <JAVA_HOME>
.
<JAVA_HOME>
refers to the installation directory of JDK.
Create the M2_HOME
environment variable, and point to <MAVEN_HOME>
.
<MAVEN_HOME>
refers to the installation directory of Apache Maven.
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
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>
.
<STRATOS_HOME>
refers to the directory created by the Git clone in the previous step, which includes Apache Stratos source code.
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>