Building CDA Web Service Projects from Source

The CDA Web Service projects are under a single aggregate maven project. Building the aggregate project will build all of the separate projects that comprise it.

Repository

Name
Repository
CDA Web Servicecda-web-service

Building from Source

  1. Clone the repository you intend to build and also any indicated dependency repositories to the same directory

    hg clone
    foo@bar:~$ hg clone https://bitbucket.org/sharps-ds2/cda-web-service
    destination directory: cda-web-service
    requesting all changes
    adding changesets
    adding manifests
    adding file changes
    added 262 changesets with 3206 changes to 957 files (+1 heads)
    updating to branch default
    533 files updated, 0 files merged, 0 files removed, 0 files unresolved
    foo@bar:~$ ls -al
    total 16
    drwxr-xr-x  4 foo foo 4096 Mar 25 06:46 .
    drwxr-xr-x 25 foo foo 4096 Mar 25 06:44 ..
    drwxr-xr-x 10 foo foo 4096 Mar 25 06:43 cda-web-service
  2. Edit cda-ws-ejb/src/main/resources/META-INF/ejb-jar.xml and set OPENCDS_ENABLED (true to utilize the OpenCDS Predicate-Reducer, false if you are only interested in CCD-to-vMR conversion and not the Predicate-Reducer).  If you set OPENCDS_ENABLED to true, then also set OPENCDS_ENDPOINT to the URL of the Predicate-Reducer endpoint as configured in the Predicate/Reducer project.
  3. Build and install the aggregate maven project using an IDE that supports maven projects or by running the following in the top level directory of the repository:

    mvn clean install
  4. Install the cda-ws-ear.ear artifact from the cda-ws-ear/target directory
  5. Install the cda-ws-web.war artifact from the cda-ws-webapp/target directory