Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 22 Next »


  • Check out Cargo from SVN into a CARGOHOME directory (wherever you want on your machine).
  • In case your SVN client needs to go through a proxy, have a look at What if I'm behind a proxy?
  • Install Maven 2. Verify your installation works by typing "mvn --version" (for Maven 2) at a command prompt. You need version 2.0.5 or greater.


First time build


The Cargo build contains functional tests. Those tests are run on different containers. The first time you build Cargo it will download those container distributions which will take some time (the containers are installed into \${}/cargo/installs). If you want to tell Cargo to run only on some specific container, see below.

The Cargo Maven 2 build is still not completely finished. Most subprojects have been converted to build with Maven 2 except for the following:

  • Go to CARGOHOME and type "mvn install". This will build the full Cargo project.
  • If you wish to clean all build-generated files, cd to CARGOHOME and type "mvn clean".
  • Some of the tests fail (tomcat5x, orion2x) - probably due to surefire issues - we are currently looking into this.

Selecting containers

The default list of containers to run on depends a property cargo.containers defined in CARGOHOME/core/samples/pom.xml. It can also be supplied at the commandline with -Dcargo.containers. For example if you only want to run on Tomcat 5.x you'd write: cargo.containers=tomcat5x


  • Type mvn -o to work offline. This improves the build speed as Maven 2 does not check for updates on the remote repository for SNAPSHOTs.

Proxy settings

If you need to build cargo from behind a proxy, proceed as follows:

  • edit the .m2/settings.xml file from your home directory (C:/Documents and Settings/username on Windows),
  • comment out the <proxy> element and fill in the proxy server settings accordingly.
  • No labels