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"

ทั้งนี้ขึ้นอยู่กับรุ่น Apache Maven ของคุณ คุณอาจได้รับข้อผิดพลาด "BUILD FAILED" ที่มีข้อความ: ไม่สามารถเรียกใช้โปรแกรม "mvn.cmd" ในกรณีนี้ให้แก้ไขไฟล์ install-libraries \ lib \ setup-maven_win.xml และแทนที่ "mvn.cmd" ด้วย "mvn.bat" ทั้งหมด

3. Obtain Source Code

รับรหัสที่มา

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

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

    โฟลเดอร์ wflow ตั้งอยู่ในเส้นทางที่ถูกต้องภายในโฟลเดอร์ผู้ใช้ของคุณเช่น: C: \ Users \ yourusername \ wflow

  2. the MySQL configuration settings in wflow\app_datasource-default.properties are correct

    การตั้งค่าการกำหนดค่า MySQL ใน wflow \ app_datasource-default.properties ถูกต้อง

5. Build Project

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

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

6. Skipping Build Test

Sometimes building the project will fail, if one wish to skip the build test, one can follow the instructions below.

7. Fixing plugin version

Failed to execute goal "org.apache.maven.plugins:maven-war-plugin:2.3:war" to fix this issue follow the steps bellow: