1. Install Prerequisites

2. Install 3rd Party Libraries

cd install-libraries
install_win.bat

Depending on your version of Apache Maven, you might get an error "BUILD FAILED" containing the message: Cannot run program "mvn.cmd"

In this case, edit the file install-libraries\lib\setup-maven_win.xml and replace all occurrences of "mvn.cmd" with "mvn.bat"

3. Obtain Source Code

mkdir joget_src
cd joget_src
git clone https://github.com/jogetworkflow/jw-community.git --branch 6.0-SNAPSHOT

4. Configure Datasource for Test Case

mysql -uroot -p
create database jwdb;
exit
mysql -uroot -p jwdb < joget_src/jw-community/wflow-install/src/main/resources/data/jwdb-empty.sql
workflowDriver=com.mysql.jdbc.Driver
workflowUrl=jdbc\:mysql\://localhost\:3306/jwdb?characterEncoding\=UTF-8
workflowUser=root
profileName=
workflowPassword=root

To pass unit tests which require a valid datasource, it is important to ensure that:

  1. the wflow folder is located in the correct path inside your user home folder e.g. C:\Users\yourusername\wflow
  2. the MySQL configuration settings in wflow\app_datasource-default.properties are correct

5. Build Project

cd joget_src\jw-community\wflow-app\
mvn clean install