| Info |
|---|
The following instructions are for Debian or Ubuntu Linux. For other Linux distributions please adapt the commands accordingly.以下说明适用于Debian或Ubuntu Linux。对于其他Linux发行版,请相应调整命令。 |
1.
...
安装先决条件
Install JDK 7 or above. Please make sure "JAVA_HOME" is set.安装 JDK 7或更高版本。请确保设置“JAVA_HOME”。
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 ~ |
4.
...
配置测试用例的数据源
创建数据库Create database.
| Code Block |
|---|
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. 文件并且提取该文件
| Code Block |
|---|
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中的配置是正确的.
| Code Block |
|---|
workflowDriver=com.mysql.jdbc.Driver workflowUrl=jdbc\:mysql\://localhost\:3306/jwdb?characterEncoding\=UTF-8 workflowUser=root profileName= workflowPassword= |
5.
...
构建项目
| Code Block |
|---|
cd ~/joget_src/jw-community/wflow-app/ mvn clean install |