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

Compare with Current View Page History

« Previous Version 5 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.x.

Building CXF

To build CXF simply execute:

$ mvn install

To build CXF without running checkstyle do:

$ mvn -Pnochecks

To build CXF without running checkstyle or the tests do:

$ mvn -Pfastinstall

Building releasable/testable kits

The "distribution" stuff is in the distribution module. After building all the stuff above, you can go into the distribution subdirectory and run:

$ mvn install

and that will build both a src kit and a binary kit in target. Alternatively, top level, you can run:

$ mvn install -Peverything

which will cause EVERYTHING to build in one shot.

Deploying snapshots

To deploy a snapshot (apache commiters only), run

mvn -Pdeploy deploy

That will deploy the latest snapshot along with the javadoc and source jar bundles to apaches snapshot repository.

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. Click "Finish"
  • No labels