problem in building bonita-web
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
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.
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
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.
- sudo apt-get update
- sudo apt-get upgrade - say Yes to install updates
- sudo apt-get install openssh-server
- **Homework/Google(HwG) **: use ifconfig to set a fixed IP, using DHCP just doesn't work with Putty.
- reboot using sudo shutdown -r now
Now login via Putty (allows copy and paste from windows)
Putty Ubuntu Window = PUbW...
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
- sudo add-apt-repository ppa:webupd8team/java
- sudo apt-get update
- sudo apt-get install oracle-java7-installer
Set the JAVA_HOME and PATH
- sudo apt-get install oracle-java7-set-default
Logout and Login
- echo $JAVA_HOME
If not OK you can set it manually
- sudo apt-get update
- sudo apt-get install git
How To Set Up Git
- git config --global user.name "Your Name"
- git config --global user.email "firstname.lastname@example.org"
Generating a new SSH key
- ssh-keygen -t rsa -b 4096 -C "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:
- eval "$(ssh-agent -s)"
Add your SSH key to the ssh-agent:
- ssh-add ~/.ssh/id_rsa
Add the SSH key to your GitHub account
Add the Key Locally:
- exec ssh-agent bash
Apache Maven 3.0.3
- sudo apt-get install maven
- mvn --version
- sudo apt-get update
- sudo apt-get install nodejs
Not strictly necessary but could come in useful later...
- 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:
- wget https://repository.jboss.org/nexus/content/groups/public/javax/jms/jms/1...
- mvn -e install:install-file -Dfile=./jms-1.1.jar -DartifactId=jms -DgroupId=javax.jms -Dversion=1.1 -Dpackaging=jar
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.
PS: As this reply answers your question, please mark as resolved by ticking the tick mark on the left of this reply.
Thank you so much Sean McP, your answer is useful. I immigrate to UBUNTU and finally I can compile Bonita-web.
Isn't the command supposed to be:
mvn clean install -DskipTests=true -f bonita-web/pom.xml
PS: If this reply answers your question, please mark as resolved.
I use this command but I got previous error.
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?
my system configuration is:
OS: windows 8.1