Building OpenESB Components

System requirements

Checkout source code

Source code for JBI components is available at

Feel free to fork the repository and create a clone in your local repository.

Maven commands

Prerequisite 1 : Before being able to build a specific component, developpers have to build entirely the project openesb-components !

Prerequisite 2 : Before doing a simple build (package / install) for all components or a specific one, do not forget to do a clean first. The clean should be launch to create some directory and files (bld,

Preparing your Maven environment

To be able to run Maven command without problem, you have to set up environment variables :

  • JV_SRCROOT : your openesb-components working directory.
  • JV_GFBASE : the directory where you installed Glassfish v2.

export JV_SRCROOT=/home/openesb-dev/openesb-components
export JV_GFBASE=/home/openesb-dev/glassfish

Please use the correct command-line to set them depending on your OS.

Cleaning the project repository (mandatory the first time)

For the first time you build, it creates a Maven repository under $JV_SRCROOT and downloads jar files here.

mvn -Dmaven.repo.local=$JV_SRCROOT/m2/repository clean

Compiling openesb-components

mvn -Dmaven.repo.local=$JV_SRCROOT/m2/repository install


If you are behind a proxy, you can set the following parameter in the command line :

-Dproxy.enabled=true -Dproxy.port=80

Skiping tests

If you want to skip tests while running Maven commands, you have to set the value of the maven.test.skip parameters :

mvn -Dmaven.test.skip=true -Dmaven.repo.local=$JV_SRCROOT/m2/repository install


  1. Do never a mvn clean install in one shot, this one do not work due to some constraints about the Maven lifecycle
  2. You do not have to build the project entirely if you want to work in a specific component. After doing a full build, you just to go in the components folder and use the previous Maven commands.

Important Notes

  • axiondb and bpelmonitortool/monitor-src needs JDK 6 for compiling.


While building, you can encounter some problem :

  Try downloading the file manually from the project website.
  Then, install it using the command:
      mvn install:install-file -DartifactId=ojdbc5 -Dversion= -Dpackaging=jar -Dfile=/path/to/file
  Alternatively, if you host your own repository you can deploy the file there:
      mvn deploy:deploy-file -DartifactId=ojdbc5 -Dversion= -Dpackaging=jar -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]
  Path to dependency:
  	1) open-jbi-components:bpelcore:jar:2.3.0-SNAPSHOT


The Oracle JDBC Driver is required to build and run unit tests. After agreeing to Oracle's terms and downloading the jar, install it in your maven build repository as follows:

mvn -Dmaven.repo.local=$JV_SRCROOT/m2/repository install:install-file \
    -DgroupId=oracle.jdbc -DartifactId=ojdbc14 -Dversion= \
    -Dpackaging=jar -DgeneratePom=true -Dfile=path/to/ojdbc14.jar

On Windows, the command is:

mvn -Dmaven.repo.local=%JV_SRCROOT%\m2\repository install:install-file
    -DgroupId=oracle.jdbc -DartifactId=ojdbc14 -Dversion=
    -Dpackaging=jar -DgeneratePom=true -Dfile=path\to\ojdbc14.jar

Note: the above command must appear on a single line.


The other solution is to change your settings.xml to include OpenESB Community Nexus Repositories :

Create a new profile in your settings.xml, add two repositories : and, and activate the profile :

          <id>OpenESB - Release</id>
          <id>OpenESB - Snapshot</id>

  <!-- activeProfiles | List of profiles that are active for all builds. -->