3.获取来源
mkdir joget_srccd joget_srcgit clone https://github.com/jogetworkflow/jw-community.git --branch 5.0-SNAPSHOTcd ~ |
4.配置测试用例的数据源
创建数据库。
mysql -urootcreate database jwdb;exitmysql -uroot jwdb < joget_src/jw-community/wflow-install/src/main/resources/data/jwdb-empty.sql |
下载 wflow.zip并在您的用户家中提取。
unzip -a wflow.zipcd wflownano app_datasource-default.properties |
确保“app_datasource-default.properties”中的配置是正确的。
workflowDriver=com.mysql.jdbc.DriverworkflowUrl=jdbc\:mysql\://localhost\:3306/jwdb?characterEncoding\=UTF-8workflowUser=rootprofileName=workflowPassword= |
5.建设项目
cd ~/joget_src/jw-community/wflow-app/mvn clean install |
| Info |
|---|
以下说明适用于Debian或Ubuntu Linux。对于其他Linux发行版,请相应调整命令。 |
1. 安装先决条件
安装 JDK 7或更高版本。请确保设置“JAVA_HOME”。
| Info |
|---|
The following instructions are for Debian or Ubuntu Linux. For other Linux distributions please adapt the commands accordingly. |
1. Install Prerequisites
Install JDK 7 or above. Please make sure "JAVA_HOME" is set.
Code Block sudo apt-get update sudo apt-get install default-jdk
For more detail, you can refer to 有关更多详细信息,请参阅https://www.digitalocean.com/community/tutorials/how-to-install-java-on-ubuntu-with-apt-get
Set the "JAVA_HOME" by edit the file 通过编辑文件来设置“JAVA_HOME”
/etc/environmentCode Block sudo nano /etc/environment
In this file, add the following line :在此文件中,添加以下行:
Code Block JAVA_HOME="/usr/lib/jvm/java-7-openjdk-amd64"
Now reload the file and test:重新加载该文件并测试:
Code Block source /etc/environment echo $JAVA_HOME
Install MySQL 5按照Mysql 5.5 or above.或者更高的版本
Code Block sudo apt-get install mysql-server sudo service mysql start
Install Apache 按照Apache Maven 2.2.1 or above. Please make sure "mvn" command is able to execute from command line.1或者更高版本 ,确保“MVN” 命令可以正确执行。
Code Block sudo apt-get install maven mvn -version
Install 安装 Github Client.
Code Block sudo apt-get install git git --version
2.
...
安装第三方库
| Code Block |
|---|
wget http://dev.joget.org/community/download/attachments/19104566/install-libraries.zip unzip -a install-libraries.zip cd install-libraries ./install_linux.sh cd ~ |
3.
...
获取源码
| Code Block |
|---|
mkdir joget_src cd joget_src git clone https://github.com/jogetworkflow/jw-community.git --branch 5.0-SNAPSHOT cd ~ |
...