...
Warning |
---|
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
- Open a เปิดหน้าต่าง Git CMD (Git Bash) window and execute the followingและดำเนินการต่อไปนี้:
Code Block |
---|
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
- Open a เปิด Command Prompt, and create a MySQL database with the SQL file in และสร้างฐานข้อมูล MySQL ด้วยไฟล์ SQL ใน joget_src/jw-community/wflow-install/src/main/resources/data/jwdb-empty.sql
Code Block |
---|
mysql -uroot -p create database jwdb; exit mysql -uroot -p jwdb < joget_src/jw-community/wflow-install/src/main/resources/data/jwdb-empty.sql |
- Download the sample configuration files ดาวน์โหลดไฟล์การกำหนดค่าตัวอย่าง wflow.zip and unzip it in your user home folder e.g. C และแตกไฟล์ใน user home folder เช่น C:\Users\yourusername\
- Edit the แก้ไขไฟล์ wflow\app_datasource-default.properties file e.g. C เช่น C:\Users\yourusername\wflow\app_datasource-default.properties and ensure that the configuration (e.gและตรวจสอบให้แน่ใจว่าการกำหนดค่าถูกต้อง (เช่น. MySQL username and password) is correct
Code Block |
---|
workflowDriver=com.mysql.jdbc.Driver workflowUrl=jdbc\:mysql\://localhost\:3306/jwdb?characterEncoding\=UTF-8 workflowUser=root profileName= workflowPassword=root |
Warning |
---|
To pass unit tests which require a valid datasource, it is important to ensure that:
|
5.
...
สร้าง Project
- In a Command Prompt, browse to the jw-community\wflow-app folder and execute the Maven install command
...