[Download] | [Documentation Home] | [Release Note]

Source Distribution

This page of the installation guide explains how to build the WSO2 Mashup Server using the source distribution of the release.

Introduction

Download the Mashup Server source distribution from Download

System Requirements

Java Runtime Environment 1.6.0_24 or higher (For instructions on setting up the JRE in different operating systems, visit http://java.sun.com)
Maven 2.1.0 or higher download). Please download maven 2.x version.
Operating System Tested on Windows XP, Linux(Fedora core, Ubuntu and Gentoo), Mac OS X & Sun Solaris

Setting Up the Environment and Tools

Maven:

The WSO2 Mashup Server build is based on Maven. Hence, a prerequisite to build WSO2 Mashup Server from the source distribution is to have Maven and JDK installed. Extensive instructions are available on the Maven site.

You may need to set the MAVEN_OPTS if you come across OutOfMemory errors during the build. e.g. you may need to set MAVEN_OPTS=-Xmx1024m -XX:MaxPermSize=128m

This guide however contains the easiest path for quick environment setting. Advanced users can learn more about Maven.

Once Maven is properly installed, you can start building the WSO2 Mashup Server for Java.

Building WSO2 Mashup Server from the Source Distribution

The source distribution is available as a zipped archive. All the necessary build scripts are included with the source distribution. Expand the source archive to a directory of your choice. You can run the following commands inside that directory to build the WSO2 Mashup Server. The list of commands that can be run are as follows: Note: The first time you run Maven, it will automatically download the dependent .jars. Therefore, the first run will take more time. The third party libraries required by WSO2 Mashup Server will be downloaded from the Maven2 repositories specified in the main pom.xml file.
mvn clean install To create the complete release artifacts including the binary and source distributions.
mvn clean install -Dtest=false -DfailIfNoTests=false To create the complete release artifacts including the binary and source distributions, without running any of the unit tests.
mvn clean install -Dtest=false -DfailIfNoTests=false -o To create the complete release artifacts including the binary and source distributions, without running any of the unit tests, in offline mode.
mvn clean install site Will also generate the project site and all the reports of the analysis tools integrated with Mashup Server such as Findbugs, Checkstyle etc. The index file will be generated in the target/site directory.
All the sources of the major 3rd party components included in WSO2 Mashup Server can be found in the source distribution. For the purpose of debugging applications, you could attach these sources.