You can use Maven to build products from the WSO2 repositories that you clone to your computer. Following are the prerequisites, the build commands, and the order in which you build the repositories. Before you begin, see WSO2 GitHub Repositories.
Install Maven and JDK. For compatible versions, see the Installation Prerequisites topic in the documentation for the product you're working with.
Set the environment variable
MAVEN_OPTS="-Xmx2048M -XX:MaxPermSize=1024m" to avoid the Maven OutOfMemoryError.
Make sure the build server has an active Internet connection to download dependencies while building.
You use one of the following Maven commands to build your repositories and create complete release artifacts of a WSO2 product, including the binary and source distributions.
||The binary and source distributions.|
||The binary and source distributions, without running any of the unit tests.|
||The binary and source distributions, without running any of the unit tests, in offline mode. This can be done only if you have already built the source at least once.|
Build all the component-level repositories that you have cloned to your computer and edited. Be sure that you build the repositories in the correct order. Email firstname.lastname@example.org if you need help.
You can find the new binary pack (ZIP file) in the
<PRODUCT_REPOSITORY_HOME>/modules/distribution/target directory, which you can use to distribute the product if needed.