Source Code Repository
源代码库
The source code for Joget is available at https://github.com/jogetworkflow/jw-community.
Joget Workflow的源代码可从 https://github.com/jogetworkflow/jw-community获取。
You can view the source code for other versions by using the branch switcher in GitHub.
您可以使用GitHub中的分支切换器查看其他版本的源代码。
Build Source Code
构建源代码
1. Install Prerequisites
1.安装先决条件
Install JDK 8. Please make sure "JAVA_HOME" is set.
安装JDK 8。请确保设置“JAVA_HOME”。
Install MySQL 5 or above.
安装MySQL 5或更高版本
Install Apache Maven 2.2.1 or above. Please make sure "mvn" command is able to be executed from the command line.
安装Apache Maven 2.2.1或更高版本。请确保可以从命令行执行“mvn”命令。
Install Subversion Client or Github Client.
2. Install 3rd Party Libraries
2.安装第三方库
Download and unzip the file install-libraries.zip.
下载并解压缩文件 install-libraries.zip。
In the extracted folder, run "install_linux.sh" for Linux and Mac or run "install_win.bat" for Window.
在提取的文件夹中,对于Linux和Mac运行“install_linux.sh”,或者为Window运行“install_win.bat”。
3. Obtain Source
3.获取来源
At the time of writing this guide, the latest 6.0 version is 6.0-SNAPSHOT. You can obtain the source code by following methods:
在撰写本指南时,最新的6.0版本是6.0-SNAPSHOT。您可以通过以下方法获取源代码:
Direct Download
You will find a download button on the right sidebar.
直接下载
您将在右侧边栏找到一个下载按钮。
Checkout using Subversion Client
使用Subversion Client进行获取
svn co https://github.com/jogetworkflow/jw-community/branches/7.0-SNAPSHOT
Clone using Github Client
Refer to Set Up Git to initialize your Github account.
使用Github客户端 克隆
请参阅 设置Git以初始化您的Github帐户。
git clone https://github.com/jogetworkflow/jw-community.git --branch 7.0-SNAPSHOT
4. Configure Datasource for Test Case
4.配置测试用例的数据源
Joget contains unit test cases that requires access to a running MySQL database.
Joget Workflow包含需要访问正在运行的MySQL数据库的单元测试用例。
To configure a datasource, navigate to your user home:
要配置数据源,请转到您的用户家:
e.g. In Windows: cd C:\Users\myuser\
例如在Windows中:cd C:\ Users \ myuser \
e.g. In Ubuntu: cd /home/myuser/
例如在Ubuntu中:cd / home / myuser /
e.g. In Mac: cd /Users/myuser/
例如在Mac中:cd / Users / myuser /
Download wflow.zip and extract the file in your user home.
下载 wflow.zip并提取文件。
You will find the files "app_datasource.properties" and "app_datasource-default.properties" in the "wflow" folder.
您将在“wflow”文件夹中找到“app_datasource.properties”和“app_datasource-default.properties”文件。
Configure "app_datasource-default.properties" with your MySQL server username and password.
使用您的MySQL服务器用户名和密码配置“app_datasource-default.properties”。
workflowDriver=com.mysql.jdbc.Driver workflowUrl=jdbc\:mysql\://localhost\:3306/jwdb?characterEncoding\=UTF-8 workflowUser=root profileName= workflowPassword=root
Create a "jwdb" database in your MySQL Server with the "jwdb-empty.sql" file located in the source code directory "wflow-install/src/main/resources/data/".
在您的MySQL服务器中创建一个“jwdb”数据库,位于源代码目录“wflow-install / src / main / resources / data /”中的“jwdb-empty.sql”文件。
5. Build Project
5.构建项目
- Navigate into the wflow-app directory.
Build the wflow-app directory using Apache Maven commands.
浏览到wflow-app目录。
使用Apache Maven命令构建wflow-app目录。cd wflow-app mvn clean install