problem in building bonita-web

1
0
-1

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/): Access denied to: http://oauth.googlecode.com/svn/code/maven/org/bonitasoft/engine/bonita-... , ReasonPhrase:Forbidden. -> [Help 1]"

so anybody can help me to solve this issue?

Thanks in Advance
REZA

2 answers

1
+2
-1
This one is the BEST answer!

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 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

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"

Generating a new SSH key

  1. ssh-keygen -t rsa -b 4096 -C "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-acc...

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-artif...

  1. wget https://repository.jboss.org/nexus/content/groups/public/javax/jms/jms/1...
  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

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.

Comments

Submitted by reza.mirzaie68 on Sat, 08/27/2016 - 07:36

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

1
+1
-1

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-communit...

regards
Seán

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

Comments

Submitted by reza.mirzaie68 on Mon, 08/22/2016 - 11:13

I use this command but I got previous error.

Submitted by Sean McP on Mon, 08/22/2016 - 11:16

What are you actually doing? From the beginning...

Submitted by reza.mirzaie68 on Mon, 08/22/2016 - 12:47

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/): Access denied to: http://oauth.googlecode.com/svn/code/maven/org/bonitasoft/engine/bonita-..."

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

Submitted by reza.mirzaie68 on Mon, 08/22/2016 - 13:08

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

Submitted by Sean McP on Tue, 08/23/2016 - 07:27

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.

Notifications