Building OpenESB Core
System requirements
JDK <= 1.6
Maven 2.0.x or 2.2.x
Glassfish v2 installation : Glassfish is required for building this project. Download Glassfish AppServer from http://glassfish.java.net/downloads/v2.1.1-final.html
Checkout source code
Information
If you are behind a proxy, you have to configure git correctly !
git config --global http.proxy http://my_proxy:80Source code for JBI components is available at https://bitbucket.org/openesb/openesb-core.
Feel free to fork the repository and create a clone in your local repository.
Maven commands
Prerequisite : 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, version.properties).
Preparing your Maven environment
To be able to run Maven command without problem, you have to set up environment variables :
JV_SRCROOT : your
openesb-coreworking directory.JV_GFBASE : the directory where you installed Glassfish v2.
JV_AS8BASE : the same as JV_GFBASE
AS8BASE : the same as JV_GFBASE
MAVEN_REPOSITORY : it shall have the same value as the maven.repo.local parameter
export JV_SRCROOT=/home/openesb-dev/openesb-core
export JV_GFBASE=/home/openesb-dev/glassfish
export JV_AS8BASE=$JV_GFBASE
export AS8BASE=$JV_GFBASEPlease use the correct command-line 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 cleanCompiling openesb-core
mvn -Dmaven.repo.local=$JV_SRCROOT/m2/repository installSkiping 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 installRecommendations
Do never a mvn clean install in one shot, this one do not work due to some constraints about the Maven lifecycle