The following instructions are for Debian or Ubuntu Linux. For other Linux distributions, please adapt the commands accordingly.

คำแนะนำต่อไปนี้สำหรับ Debian หรือ Ubuntu Linux สำหรับลีนุกซ์รุ่นอื่นกรุณาปรับคำสั่งให้เหมาะสม

1. Install Prerequisites

ติดตั้งข้อกำหนดเบื้องต้น

2. Install 3rd Party Libraries

ติดตั้งไลบรารีของบุคคลที่สาม

$ wget https://dev.joget.org/community/download/attachments/19104566/install-libraries.zip
$ unzip -a install-libraries.zip
$ cd install-libraries
$ ./install_linux.sh
$ cd ~

3. Obtain Source

รับแหล่งที่มา

$ mkdir joget_src
$ cd joget_src
$ git clone https://github.com/jogetworkflow/jw-community.git --branch 8.0-SNAPSHOT --depth 1
$ cd ~

4. Configure Datasource for Test Case

กำหนดค่าแหล่งข้อมูลสำหรับกรณีทดสอบ

Prepare the database for Joget usage.

จัดเตรียมฐานข้อมูลสำหรับการใช้ Joget

$ mysql -uroot
$ create database jwdb;
$ exit
$ mysql -uroot jwdb < joget_src/jw-community/wflow-install/src/main/resources/data/jwdb-empty.sql

Download wflow.zip and extract in your user home.

ดาวน์โหลด wflow.zip และแตกไฟล์ของคุณ

$ wget http://dev.joget.org/community/download/attachments/19104566/wflow.zip
$ unzip -a wflow.zip
$ cd wflow
$ nano app_datasource-default.properties

Make sure the configuration in app_datasource-default.properties is correct.

ตรวจสอบให้แน่ใจว่าการกำหนดค่าใน app_datasource-default.properties ถูกต้อง

workflowDriver=com.mysql.jdbc.Driver
workflowUrl=jdbc\:mysql\://localhost\:3306/jwdb?characterEncoding\=UTF-8
workflowUser=root
profileName=
workflowPassword=

5. Build Project

สร้างโครงการ

It is NOT recommended to skip unit tests in Joget, to ensure build integrity.

ไม่แนะนำให้ข้ามการทดสอบหน่วยใน Joget เพื่อความสมบูรณ์

$ cd ~/joget_src/jw-community/wflow-app/
$ mvn clean install


Note: If a different JDK version is already in use, the JDK version specified in the project's pom.xml file can be overridden during the project build process using the mvn (Maven) command. 
For example, if the project needs to be built with JDK 17, Please write the following command :

$ mvn -Dmaven.compiler.source=17 -Dmaven.compiler.target=17 clean install

6. Skipping Build Test

In case project build failures are encountered, and would want to bypass the testing phase, please follow the below steps:

7. Fixing Plugin Version

Failed to execute goal "org.apache.maven.plugins:maven-compiler-plugin" 


To fix this issue, please follow the step below:

In the terminal write:

$ mvn wrapper:wrapper

This will automatically download and use the appropriate version of Maven defined in the project's wrapper configuration.