# problem in building bonita-web

**URL:** <https://community.ofelia.com/t/problem-in-building-bonita-web/7701>\
**Category:** Q&A\
**Created:** [20 August 2016 14:08 UTC](https://community.ofelia.com/t/problem-in-building-bonita-web/7701 "2016-08-20T14:08:00Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![reza.mirzaie68](https://avatars.discourse-cdn.com/v4/letter/r/7bcc69/32.png) [@reza.mirzaie68](https://community.ofelia.com/u/reza.mirzaie68)\
**Post date:** [20 August 2016 14:08 UTC](https://community.ofelia.com/t/problem-in-building-bonita-web/7701/1 "2016-08-20T14:08:00Z")

</div>

I want to build bonita-web, but when I type “mvn clean install -DskipTests=true -f pom.xml”,  
I got this error “[ERROR] Failed to execute goal on project test-toolkit: Could not resolve dependencies for project org.bonitasoft.console:test-toolkit:jar:7.3.0-SNAPSHOT: Failed to collect dependencies at org.bonitasoft.engine:bonita-server:jar:7.3.0-SNAPSHOT: Failed to read artifact descriptor for org.bonitasoft.engine:bonita-server:jar:7.3.0-SNAPSHOT: Could not transfer artifact org.bonitasoft.engine:bonita-server:pom:7.3.0-SNAPSHOT from/to oauth ([http://oauth.googlecode.com/svn/code/maven/](http://oauth.googlecode.com/svn/code/maven/)): Access denied to: [http://oauth.googlecode.com/svn/code/maven/org/bonitasoft/engine/bonita-server/7.3.0-SNAPSHOT/bonita-server-7.3.0-SNAPSHOT.pom](http://oauth.googlecode.com/svn/code/maven/org/bonitasoft/engine/bonita-server/7.3.0-SNAPSHOT/bonita-server-7.3.0-SNAPSHOT.pom) , ReasonPhrase:Forbidden. → [Help 1]”

so anybody can help me to solve this issue?

Thanks in Advance  
REZA

---

<div class="post-metadata">

**Author:** ![Sean\_McP](https://dub1.discourse-cdn.com/flex013/user_avatar/community.ofelia.com/sean_mcp/32/932_2.png) [@Sean\_McP](https://community.ofelia.com/u/Sean_McP)\
**Post date:** [20 August 2016 22:03 UTC](https://community.ofelia.com/t/problem-in-building-bonita-web/7701/2 "2016-08-20T22:03:22Z")

</div>

Isn’t the command supposed to be:

mvn clean install -DskipTests=true -f bonita-web/pom.xml

from [http://documentation.bonitasoft.com/bonitabpm/7.3?page=building-community-edition-from-source](http://documentation.bonitasoft.com/bonitabpm/7.3?page=building-community-edition-from-source)

regards  
Seán

_PS: If this reply answers your question, please mark as resolved._

---

<div class="post-metadata">

**Author:** ![Sean\_McP](https://dub1.discourse-cdn.com/flex013/user_avatar/community.ofelia.com/sean_mcp/32/932_2.png) [@Sean\_McP](https://community.ofelia.com/u/Sean_McP)\
**Post date:** [23 August 2016 23:44 UTC](https://community.ofelia.com/t/problem-in-building-bonita-web/7701/3 "2016-08-23T23:44:37Z")

</div>

OK Here is the full answer:

First Compiling Bonita on Windows does not work due to long path names \> 256 characters. Doesn’t even work in Windows 10 with the new extra long file names due to program assignment issues.

Note that the instructions for [Compiling Bonitasoft Community from Source](http://documentation.bonitasoft.com/bonitabpm/?page=building-community-edition-from-source) are also being reviewed as they don’t work/there are things missing. There are already bug reports submitted for this on Atlassian, Nos: 405 and 407.

When will they be fixed? How long is a piece of String???

Also you **MUST** compile everything in Order for it to work, you cannot compile just one part as later parts have dependencies to previous parts and pull them in.

The easiest way to Compile Bonitasoft on Windows is to use a Virtual Machine, the one I’ve found very quick and easy to use, and is free, is VirtualBox.

Note - I’m not adding ALL Instructions, I have done a lot here and I think it’s good for others to learn things too. So some bits are left to you 🙂

Also I’m using Server - Not Desktop though I’ll be changing this later. All Linux Commands are executed via _Command Line_.

**On Windows**

Download and Install Putty - _for SSH Terminal Access (easy to copy and paste between Windows and Linux)_  
Download and Install Virtualbox - _for Virtual Machine_  
Download and Install Virtualbox Extensions - _Do it from within Virtualbox and you’ll get the right version_  
Download and Install WinScp - _for FTP when it’s required…_  
Download Ubuntu 16.04 ISO - _I found it works fine_

**In Virtualbox**

Create a New VM and start it - the system will ask for the ISO, point it at the Downloaded ISO and follow through all the questions.

**On Ubuntu**

1. login
2. sudo apt-get update
3. sudo apt-get upgrade - _say Yes to install updates_
4. sudo apt-get install openssh-server
5. \*\*Homework/Google(HwG) \*\*: _use ifconfig to set a fixed IP, using DHCP just doesn’t work with Putty._
6. reboot using sudo shutdown -r now

**On Windows**

Now login via Putty (allows copy and paste from windows)

Putty Ubuntu Window = PUbW…

For practice:

Highlight the next line and CNTRL-C

_sudo apt-get update_

Switch to the PUbW and right click, you will see the command shown, now hit enter to execute it.

NOTE: When there is a recognizable end-of-line character the command may auto execute.

For example copy the next line including the end of line character (you can force this by going to the next line), switch to the PUbW and right click, the command should auto-start.

_sudo apt-get upgrade_

reboot using sudo shutdown -r now

Now to install the other bits:

DO NOT install Java 8 it will not work

**JDK 1.7**

A good reference is: [https://www.digitalocean.com/community/tutorials/how-to-install-java-with-apt-get-on-ubuntu-16-04](https://www.digitalocean.com/community/tutorials/how-to-install-java-with-apt-get-on-ubuntu-16-04)

In PUbW

1. sudo add-apt-repository ppa:webupd8team/java
2. sudo apt-get update
3. sudo apt-get install oracle-java7-installer

Set the JAVA\_HOME and PATH

1. sudo apt-get install oracle-java7-set-default

Logout and Login

1. echo $JAVA\_HOME

to check

If not OK you can set it manually

**Git**

In PUbW

1. sudo apt-get update
2. sudo apt-get install git

_How To Set Up Git_

1. git config --global user.name “Your Name”
2. git config --global user.email “[youremail@domain.com](mailto:youremail@domain.com)”

_Generating a new SSH key_

1. ssh-keygen -t rsa -b 4096 -C “[your\_email@example.com](mailto:your_email@example.com)”

When you’re prompted to “Enter a file in which to save the key,” press Enter

At the prompt, type a secure passphrase

_Adding your SSH key to the ssh-agent_

Ensure ssh-agent is enabled:

1. eval “$(ssh-agent -s)”

Add your SSH key to the ssh-agent:

1. ssh-add ~/.ssh/id\_rsa

_Add the SSH key to your GitHub account_

[https://help.github.com/articles/adding-a-new-ssh-key-to-your-github-account/](https://help.github.com/articles/adding-a-new-ssh-key-to-your-github-account/)

_Add the Key Locally:_

1. exec ssh-agent bash
2. ssh-add

**Apache Maven** 3.0.3

In PUbW

1. sudo apt-get install maven
2. mvn --version

**NodeJS**

1. sudo apt-get update
2. sudo apt-get install nodejs

Not strictly necessary but could come in useful later…

1. sudo apt-get install npm

**An available maven repository with javax.jms:jms:jar 1.1**

Don’t need the whole repository - just make sure we have access to the jar:

From: [http://stackoverflow.com/questions/3622773/java-net-maven-repo-jms-artifact-missing](http://stackoverflow.com/questions/3622773/java-net-maven-repo-jms-artifact-missing)

1. wget [https://repository.jboss.org/nexus/content/groups/public/javax/jms/jms/1.1/jms-1.1.jar](https://repository.jboss.org/nexus/content/groups/public/javax/jms/jms/1.1/jms-1.1.jar)
2. mvn -e install:install-file -Dfile=./jms-1.1.jar -DartifactId=jms -DgroupId=javax.jms -Dversion=1.1 -Dpackaging=jar
3. shareeditflag

**Bitrock Install Builder 9.5.3 (optional: required only for building Bonita BPM Studio installers)**

I did not do this piece as I’m not there yet…

That will get you to the point where you can execute the **git** and **mvn** commands to [Compiling Bonitasoft Community from Source](http://documentation.bonitasoft.com/bonitabpm/?page=building-community-edition-from-source)

I must admit I would like it if Bonitasoft could write a fuller piece on how to set up a development environment (using this as a basis) so we could all do it right.

But this does work except for the bits that don’t. 🙂

I will try to update as appropriate, though don’t hold your breath, and if anyone would like to add things to it please add comments accordingly.

regards  
Seán

_PS: As this reply answers your question, please mark as resolved by ticking the tick mark on the left of this reply._

---

<div class="post-metadata">

**Author:** ![reza.mirzaie68](https://avatars.discourse-cdn.com/v4/letter/r/7bcc69/32.png) [@reza.mirzaie68](https://community.ofelia.com/u/reza.mirzaie68)\
**Post date:** [22 August 2016 09:13 UTC](https://community.ofelia.com/t/problem-in-building-bonita-web/7701/4 "2016-08-22T09:13:01Z")

</div>

I use this command but I got previous error.

---

<div class="post-metadata">

**Author:** ![Sean\_McP](https://dub1.discourse-cdn.com/flex013/user_avatar/community.ofelia.com/sean_mcp/32/932_2.png) [@Sean\_McP](https://community.ofelia.com/u/Sean_McP)\
**Post date:** [22 August 2016 09:16 UTC](https://community.ofelia.com/t/problem-in-building-bonita-web/7701/5 "2016-08-22T09:16:27Z")

</div>

What are you actually doing? From the beginning…

---

<div class="post-metadata">

**Author:** ![reza.mirzaie68](https://avatars.discourse-cdn.com/v4/letter/r/7bcc69/32.png) [@reza.mirzaie68](https://community.ofelia.com/u/reza.mirzaie68)\
**Post date:** [22 August 2016 10:47 UTC](https://community.ofelia.com/t/problem-in-building-bonita-web/7701/6 "2016-08-22T10:47:07Z")

</div>

Dear Sean  
I want to build Bonita-web from source. I have downloaded it from Github, After that, I used this command " mvn clean install -DskipTests=true -f bonita-web/pom.xml". so i got this error " Failed to execute goal on project test-toolkit: Could not resolve dependencies for project org.bonitasoft.console:test-toolkit:jar:7.3.0-SNAPSHOT: Failed to collect dependencies at org.bonitasoft.engine:bonita-server:jar:7.3.0-SNAPSHOT: Failed to read artifact descriptor for org.bonitasoft.engine:bonita-server:jar:7.3.0-SNAPSHOT: Could not transfer artifact org.bonitasoft.engine:bonita-server:pom:7.3.0-SNAPSHOT from/to oauth ([http://oauth.googlecode.com/svn/code/maven/](http://oauth.googlecode.com/svn/code/maven/)): Access denied to: [http://oauth.googlecode.com/svn/code/maven/org/bonitasoft/engine/bonita-server/7.3.0-SNAPSHOT/bonita-server-7.3.0-SNAPSHOT.pom](http://oauth.googlecode.com/svn/code/maven/org/bonitasoft/engine/bonita-server/7.3.0-SNAPSHOT/bonita-server-7.3.0-SNAPSHOT.pom)"

I can’t access the repository. could please help me? is repository change? Can I download the jar files manually?

---

<div class="post-metadata">

**Author:** ![reza.mirzaie68](https://avatars.discourse-cdn.com/v4/letter/r/7bcc69/32.png) [@reza.mirzaie68](https://community.ofelia.com/u/reza.mirzaie68)\
**Post date:** [22 August 2016 11:08 UTC](https://community.ofelia.com/t/problem-in-building-bonita-web/7701/7 "2016-08-22T11:08:26Z")

</div>

my system configuration is:  
OS: windows 8.1  
Java:1.8  
Maven:3.3.9

---

<div class="post-metadata">

**Author:** ![Sean\_McP](https://dub1.discourse-cdn.com/flex013/user_avatar/community.ofelia.com/sean_mcp/32/932_2.png) [@Sean\_McP](https://community.ofelia.com/u/Sean_McP)\
**Post date:** [23 August 2016 05:27 UTC](https://community.ofelia.com/t/problem-in-building-bonita-web/7701/8 "2016-08-23T05:27:26Z")

</div>

My Internet is not working so to be brief. You can’t do this with windows. Simply will not work due to long path names.

I know I’ve tried.

I’ve written a how to using virtualbox on windows. But on other computer. As soon as I get it I’ll post it.

Regards.

---

<div class="post-metadata">

**Author:** ![reza.mirzaie68](https://avatars.discourse-cdn.com/v4/letter/r/7bcc69/32.png) [@reza.mirzaie68](https://community.ofelia.com/u/reza.mirzaie68)\
**Post date:** [27 August 2016 05:36 UTC](https://community.ofelia.com/t/problem-in-building-bonita-web/7701/9 "2016-08-27T05:36:15Z")

</div>

Thank you so much Sean McP, your answer is useful. I immigrate to UBUNTU and finally I can compile Bonita-web.
