How to compile Bonita BPM Studio with embedded Engine + Portal 6.2.1 ?

 


I want to compile from sources Bonita BPM Studio with embedded Engine + Portal
I have tried with version 6.2.1 from github repository and the instructions from documentation http://documentation.bonitasoft.com/building-bonita-bpm-source-files
I followed the steps described below and the compilation failed.

  • ****BUILD STUDIO - COMMON ACTION ****
  • export MAVEN_OPTS="-XX:MaxPermSize=256m"
  • git clone git@github.com:bonitasoft/bonita-studio.git
  • **** BUILD STUDIO ALL-IN-ONE MODULE ****
  • cd  bonita-studio/all-in-one
  • git checkout bos-studio-6.2.1-201401090931
  • mvn clean package
 
caused by: org.eclipse.tycho.p2.target.facade.TargetDefinitionResolutionException: Failed to load p2 metadata repository from loca
 
tion http://192.168.1.227/6.1/repository/
        at org.eclipse.tycho.p2.target.TargetDefinitionResolver.loadRepository(TargetDefinitionResolver.java:190)
        at org.eclipse.tycho.p2.target.TargetDefinitionResolver.resolveContent(TargetDefinitionResolver.java:109)
        at org.eclipse.tycho.p2.target.TargetDefinitionResolverService.resolveFromArguments(TargetDefinitionResolverService.java:6
5)
Should i modify the pom.xml to point to different p2 repository url. Should i use a differnet profile to build ?

Thank you,

Michalis

Hello,

A script is available to help building Bonita BPM 6.2.1, Studio, Engine and Portal. An article is available on Community Blog, and the script is available on our Community GitHub.

http://community.bonitasoft.com/blog/how-build-bonita-bpm-sources

https://github.com/Bonitasoft-Community/Build-Bonita-BPM

Please let me know if you succeed, or not ;-)

It seems that Maven can't find where are the target sources. At the Bonita Studio build step, the script should download target sources from ow2 forge, unzip it, and then it tells Maven where it is. Can you check that this part is working ?

There is a mistake in documentation.

I will report this issue to our documentation team.

Thanks for the help.