Introduction

This page is describes how Memory Analyzer can be built using Maven/Tycho. The build will

build all bundles and features

execute all tests

(optional) run findbugs static checks

produce a p2 repository with MAT features

procude RCPs for different platforms

Prerequisites

Maven Installation

The Memory Analyzer build requires a Maven 3.0.* installation. It is already present on the Hudson server at Eclipse. For local build one can download it from here http://maven.apache.org/download.html.

Proxy Settings

If you need to set proxy for Maven, a snippet like this can be added to the Maven settings file:

Preparation Steps

What is done

Parts of MAT depend on the IBM's DTFJ libraries, therefore one needs the libraries during the build.
This preparation step will do the following:

download DTFJ (zipped "old" update site)

publish a p2 repository with DTFJ

modify the target platform definition used for the rest of the build

Execution

Go in the <mat_src>/prepare_build/ directory

Execute

mvn clean install

This maven build is using the maven-antrun plugin to download the zip containing DTFJ. If you need to set proxy you can do it using the standard Java settings, i.e. the command line will look like this: