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

Compare with Current View Page History

« Previous Version 24 Next »

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:

set MAVEN_OPTS=-Xmx512M

On 64bit platforms (64bit Linux and Solaris are known to require this), you also need to increase the PermGen space:

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

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 follwing. 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

To setup eclipse for CXF, you'll want to check to set up a separate directory /outside of your workspace/. Here is an example of how it might be done:

[/home/joe]$ mkdir /home/dan/cxf
[/home/joe]$ cd cxf
[/home/joe/cxf]$ svn co https://svn.apache.org/repos/asf/incubator/cxf/trunk
[/home/joe/cxf]$ cd trunk
[/home/joe/cxf/trunk]$ mvn -Pfastinstall
[/home/joe/cxf/trunk]$ mvn -Psetup.eclipse 

Once that is done, start up eclipse and set your workspace to "/home/joe/cxf/workspace". You'll then want to import all the CXF modules into eclipse. This can be done by doing:

  1. File->Import
  2. Select General->Existing Projects into Workspace
  3. Enter "/home/joe/cxf/trunk" as the root directory
  4. Select all the projects EXCEPT the cxf-http-basic project
  5. Click "Finish"
  • No labels