Building has been edited by Christian Schneider (Jan 21, 2009).

(View changes)


Before you can build CXF, you'll need to first check it out from the Source Repository. Then you'll need to install Maven 2.0.5 or higher.

Building CXF

Before building CXF, you need to setup an environment variable to give Maven more memory:
On Unix

export MAVEN_OPTS="-Xmx512M -XX:MaxPermSize=128M"

On Windows

set MAVEN_OPTS=-Xmx512M -XX:MaxPermSize=128M

On 64bit Linux or Solaris platforms, or if you're obtaining out-of-memory or PermGen space errors, you may need to expand the memory requirements above further, to 1024M and 256M.

To build CXF simply execute (from within the 'trunk' directory):

$ mvn install

To build CXF without running checkstyle do:

$ mvn -Pnochecks

To build CXF without running checkstyle or the tests do:

$ mvn -Pfastinstall

To build CXF and deploy the sources to your local maven repo do the following. If you build this way you can start your own cxf project from a pom file and import it with maven eclipse:eclipse then you will have all sources correctly linked into your eclipse project:

$ mvn -Pfastinstall source:jar install

Important: For subsequent builds (e.g., after code changes are made), run "mvn clean" first to build from scratch, before using one of the mvn install commands above. (You may also wish to run "svn update" after running mvn clean but before running mvn install.)

Building releasable/testable kits

The "distribution" stuff is in the distribution module. At top level, you can run:

$ mvn install -Peverything

which will cause EVERYTHING to build in one shot, including the distribution modules that are normally excluded. To speed it up, you can use the fastinstall profile with it:

$ mvn install -Peverything,fastinstall

Setting up Eclipse

See this page for information on using the Eclipse IDE with the CXF source code.

Powered by Atlassian Confluence (Version: 2.2.9 Build:#527 Sep 07, 2006) - Bug/feature request

Unsubscribe or edit your notifications preferences