二、Activiti工作流引擎项目搭建
2018-04-18 本文已影响179人
80b7b6115d87
以下的集成开发环境采用eclipse luna版本,也需要进行插件安装,百度自行安装。
搭建activiti项目的流程,其实很简单,和其他创建项目的流程相同,步骤如下:
1、使用eclipse创建一个普通的maven项目,我随便取的项目名称
image.png
2、添加依赖,我这添加了一些可能用得到的依赖
<dependency>
<groupId>org.activiti</groupId>
<artifactId>activiti-engine</artifactId>
<version>5.22.0</version>
</dependency>
<dependency>
<groupId>org.activiti</groupId>
<artifactId>activiti-spring</artifactId>
<version>5.22.0</version>
</dependency>
<dependency>
<groupId>org.activiti</groupId>
<artifactId>activiti-explorer</artifactId>
<version>5.22.0</version>
</dependency>
<dependency>
<groupId>mysql</groupId>
<artifactId>mysql-connector-java</artifactId>
<version>6.0.6</version>
</dependency>
<dependency>
<groupId>org.mybatis</groupId>
<artifactId>mybatis</artifactId>
<version>3.4.5</version>
</dependency>
<dependency>
<groupId>com.alibaba</groupId>
<artifactId>druid</artifactId>
<version>1.1.6</version>
</dependency>
<dependency>
<groupId>org.apache.commons</groupId>
<artifactId>commons-lang3</artifactId>
<version>3.7</version>
</dependency>
<dependency>
<groupId>org.apache.commons</groupId>
<artifactId>commons-collections4</artifactId>
<version>4.1</version>
</dependency>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>4.12</version>
<scope>test</scope>
</dependency>
3、由于eclipse的问题,在创建项目时可能造成有些目录不存在和jdk版本的问题所以要进行一下简单的配置,eclipse创建完项目应该不会有下面的resources配置文件所在目录的,所以我们需要手动的添加上。步骤如下:
image.png
第一步:
1.png
第二步:
2.png
第三步:
3.png
第四步:
4.png
第五步:
5.png
第六步: 修改jdk版本为我们自己安装的版本,他默认应该是jdk1.5或者是1.6
6.png
第七步:
7.png
以上步骤完成之后,项目创建完成,如果还要进一步完善项目还需要在pom里面设置几个插件,不过不设置也可以,我这里没有设置。