Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

1.

...

安装先决条件

  • 安装Java开发工具包(JDK)

...

  • Install the Java Development Kit (JDK)

    • Download the Java Development Kit (JDK) 7 or above from http://www.oracle.com/technetwork/java/javase/downloads/index.html下载Java开发工具包(JDK)7或更高版本  。 

    • 按照Follow the installation instructions at https://docs.oracle.com/javase/8/docs/technotes/guides/install/windows_jdk_install.htmlhtml上的安装说明进行操作 

    • Set JAVA设置  JAVA_HOME:HOME:

      • 在Windows 7中,右键单击  我的电脑,  然后选择  属性  >  高级

      • 在Windows 8中,转到  控制面板  >  系统  >  高级系统设置
      • 单击  环境变量  按钮。
      • 在  系统变量下,单击  新建。
      • 在“  变量名称”  字段中,输入JAVA_HOME
      • 在“  变量值”  字段中,输入JDK安装路径,例如  C:

      • In Windows 7 right click My Computer and select Properties > Advanced.

      • In Windows 8 go to Control Panel > System > Advanced System Settings.
      • Click the Environment Variables button.
      • Under System Variables, click New.
      • In the Variable Name field, enter JAVA_HOME
      • In the Variable Value field, enter the JDK installation path e.g. C:\ Program Files \ Java \ jdk1.8.0_77

         

  • Install 

    安装  MySQL

    .

  • Install Apache

    安装Apache Maven

    • Download Apache Maven 2.2.1 or above from  https://maven.apache.org/download.cgi下载Apache Maven 2.2.1或更高版本

    • 请按照Follow the installation instructions at https://maven.apache.org/install.htmlhtml上的安装说明进行操作 

    • 请确保通过将命令行添加到PATH中可以执行“mvn”命令:

      • 在Windows 7中,右键单击  我的电脑,  然后选择  属性  >  高级

      • 在Windows 8中,转到  控制面板  >  系统  >  高级系统设置
      • 单击  环境变量  按钮。
      • 在  系统变量下,选择变量路径,然后单击  编辑。
      • 在“  变量值”  字段中,将Maven路径(例如C:

      Please ensure that the "mvn" command can be executed from the command line by adding it to the PATH:

      • In Windows 7 right click My Computer and select Properties > Advanced.

      • In Windows 8 go to Control Panel > System > Advanced System Settings.
      • Click the Environment Variables button.
      • Under System Variables, select the variable Path and click Edit.
      • In the Variable Value field, append the Maven path (e.g. C:\ Program Files \ apache-maven-3.3.9 \ bin) to the current pathbin)附加  到当前路径

         

  • 安装Git Client

    Install Git Client

2.

...

安装第三方库

...

  • bat文件

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"

根据您的Apache Maven版本,您可能会收到一条包含消息的BUILD FAILED错误:无法运行程序“mvn.cmd”

在这种情况下,请编辑文件install

...

-libraries \ lib \ setup-maven_win.

...

xml,并将所有出现的“mvn.cmd”替换为“mvn.bat”

3.

...

获取源代码

  • 打开Git CMD(Git Bash)窗口并执行以下命令:

mkdir

...

joget_src

...


cd

...

joget_src

...


git

...

clone

...

...

 --branch

...

6.0-SNAPSHOT

4.

...

配置测试用例的数据源

  • 打开一个命令提示符,并在jogetOpen a Command Prompt, and create a MySQL database with the SQL file in joget_src / jw-community / wflow-install / src / main / resources / data / jwdb-empty.sqlsql中创建一个带有SQL文件的MySQL数据库 

...


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:并将其解压缩到用户主文件夹中, 例如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

...

  • properties,并确保配置(例如MySQL用户名和密码)正确

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. wflow文件夹位于用户主文件夹中的正确路径,例如C:

...

  1. \ Users \ yourusername \ wflow

...

  1. wflow \ app_datasource-default.

...

  1. properties中的MySQL配置设置是正确的

5.

...

建设项目

  • 在命令提示符下,浏览到jwIn a Command Prompt, browse to the jw-community \ wflow-app folder and execute the Maven install command

...

  • app文件夹并执行Maven install命令

cd

...

joget_src\jw-community\wflow-app\

...


mvn

...

clean

...

install

...

 

...