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 33 Next »

Prequisites

  • Check out or download as a ZIP file the Codehaus Cargo source code from Github into a CARGOHOME directory (wherever you want on your machine).
  • Install Maven 2 or Maven 3 (most likely, only Maven 3 is available for download). Verify your installation works by typing "mvn --version" at a command prompt.
    • Codehaus Cargo requires Maven 2.0.5 or greater to run
    • Codehaus Cargo  requires Maven 2.1 or greater to compile; in particular the core/samples builds require that version of Maven

Building

To build Codehaus Cargo:

  • 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

 

First time build

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

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 by using profiles (-P<containerId>).

For example if you only want to run on Tomcat 5.x you'd write: mvn -Ptomcat5x clean install

Tips

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

Proxy settings

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

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