Checkout source code
If you are behind a proxy, you have to configure git correctly !
git config --global http.proxy http://my_proxy:80
Source 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.
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 :
Please 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 clean
mvn -Dmaven.repo.local=$JV_SRCROOT/m2/repository install
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
- Do never a mvn clean install in one shot, this one do not work due to some constraints about the Maven lifecycle