pom.xml 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  3. xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
  4. <modelVersion>4.0.0</modelVersion>
  5. <groupId>com.hw</groupId>
  6. <artifactId>activiti5.22-service</artifactId>
  7. <version>1.0</version>
  8. <packaging>jar</packaging>
  9. <parent>
  10. <groupId>org.springframework.boot</groupId>
  11. <artifactId>spring-boot-starter-parent</artifactId>
  12. <version>2.1.1.RELEASE</version>
  13. <relativePath/>
  14. </parent>
  15. <properties>
  16. <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  17. <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
  18. <java.version>1.8</java.version>
  19. <mybatis.spring.boot.starter.version>1.3.2</mybatis.spring.boot.starter.version>
  20. <pagehelper.spring.boot.starter.version>1.2.5</pagehelper.spring.boot.starter.version>
  21. <fastjson.version>1.2.47</fastjson.version>
  22. <druid.version>1.1.14</druid.version>
  23. <commons.io.version>2.5</commons.io.version>
  24. <commons.fileupload.version>1.3.3</commons.fileupload.version>
  25. <bitwalker.version>1.19</bitwalker.version>
  26. <jwt.version>0.9.0</jwt.version>
  27. <swagger.version>2.9.2</swagger.version>
  28. <oshi.version>3.9.1</oshi.version>
  29. <activiti.version>5.22.0</activiti.version>
  30. </properties>
  31. <profiles>
  32. <profile>
  33. <id>test</id>
  34. <!--默认激活当前配置-->
  35. <activation>
  36. <activeByDefault>true</activeByDefault>
  37. </activation>
  38. <properties>
  39. <profiles.active>test</profiles.active>
  40. <!-- Docker 配置 -->
  41. <docker.dockerHost>http://172.16.90.64:22375</docker.dockerHost>
  42. <docker.serviceId>DockerHub</docker.serviceId>
  43. <docker.image.version>1.0.0</docker.image.version>
  44. </properties>
  45. </profile>
  46. </profiles>
  47. <dependencies>
  48. <!-- SpringBoot 核心包 -->
  49. <dependency>
  50. <groupId>org.springframework.boot</groupId>
  51. <artifactId>spring-boot-starter</artifactId>
  52. </dependency>
  53. <!-- SpringBoot 测试 -->
  54. <dependency>
  55. <groupId>org.springframework.boot</groupId>
  56. <artifactId>spring-boot-starter-test</artifactId>
  57. <scope>test</scope>
  58. </dependency>
  59. <!-- SpringBoot 拦截器 -->
  60. <dependency>
  61. <groupId>org.springframework.boot</groupId>
  62. <artifactId>spring-boot-starter-aop</artifactId>
  63. </dependency>
  64. <!-- SpringBoot Web容器 -->
  65. <dependency>
  66. <groupId>org.springframework.boot</groupId>
  67. <artifactId>spring-boot-starter-web</artifactId>
  68. </dependency>
  69. <!-- spring-boot-devtools -->
  70. <dependency>
  71. <groupId>org.springframework.boot</groupId>
  72. <artifactId>spring-boot-devtools</artifactId>
  73. <optional>true</optional> <!-- 表示依赖不会传递 -->
  74. </dependency>
  75. <!-- spring security 安全认证 -->
  76. <dependency>
  77. <groupId>org.springframework.boot</groupId>
  78. <artifactId>spring-boot-starter-security</artifactId>
  79. </dependency>
  80. <!-- redis 缓存操作 -->
  81. <dependency>
  82. <groupId>org.springframework.boot</groupId>
  83. <artifactId>spring-boot-starter-data-redis</artifactId>
  84. </dependency>
  85. <!-- pool 对象池 -->
  86. <dependency>
  87. <groupId>org.apache.commons</groupId>
  88. <artifactId>commons-pool2</artifactId>
  89. </dependency>
  90. <!-- Mysql驱动包 -->
  91. <dependency>
  92. <groupId>mysql</groupId>
  93. <artifactId>mysql-connector-java</artifactId>
  94. <scope>runtime</scope>
  95. </dependency>
  96. <!-- SpringBoot集成mybatis框架 -->
  97. <dependency>
  98. <groupId>org.mybatis.spring.boot</groupId>
  99. <artifactId>mybatis-spring-boot-starter</artifactId>
  100. <version>${mybatis.spring.boot.starter.version}</version>
  101. </dependency>
  102. <!-- pagehelper 分页插件 -->
  103. <dependency>
  104. <groupId>com.github.pagehelper</groupId>
  105. <artifactId>pagehelper-spring-boot-starter</artifactId>
  106. <version>${pagehelper.spring.boot.starter.version}</version>
  107. </dependency>
  108. <!--阿里数据库连接池 -->
  109. <dependency>
  110. <groupId>com.alibaba</groupId>
  111. <artifactId>druid-spring-boot-starter</artifactId>
  112. <version>${druid.version}</version>
  113. </dependency>
  114. <!--常用工具类 -->
  115. <dependency>
  116. <groupId>org.apache.commons</groupId>
  117. <artifactId>commons-lang3</artifactId>
  118. </dependency>
  119. <!--io常用工具类 -->
  120. <dependency>
  121. <groupId>commons-io</groupId>
  122. <artifactId>commons-io</artifactId>
  123. <version>${commons.io.version}</version>
  124. </dependency>
  125. <!--文件上传工具类 -->
  126. <dependency>
  127. <groupId>commons-fileupload</groupId>
  128. <artifactId>commons-fileupload</artifactId>
  129. <version>${commons.fileupload.version}</version>
  130. </dependency>
  131. <!-- 解析客户端操作系统、浏览器等 -->
  132. <dependency>
  133. <groupId>eu.bitwalker</groupId>
  134. <artifactId>UserAgentUtils</artifactId>
  135. <version>${bitwalker.version}</version>
  136. </dependency>
  137. <!-- 阿里JSON解析器 -->
  138. <dependency>
  139. <groupId>com.alibaba</groupId>
  140. <artifactId>fastjson</artifactId>
  141. <version>${fastjson.version}</version>
  142. </dependency>
  143. <!--Spring框架基本的核心工具-->
  144. <dependency>
  145. <groupId>org.springframework</groupId>
  146. <artifactId>spring-context-support</artifactId>
  147. </dependency>
  148. <!--Token生成与解析-->
  149. <dependency>
  150. <groupId>io.jsonwebtoken</groupId>
  151. <artifactId>jjwt</artifactId>
  152. <version>${jwt.version}</version>
  153. </dependency>
  154. <!-- swagger2-->
  155. <dependency>
  156. <groupId>io.springfox</groupId>
  157. <artifactId>springfox-swagger2</artifactId>
  158. <version>${swagger.version}</version>
  159. <exclusions>
  160. <exclusion>
  161. <groupId>io.swagger</groupId>
  162. <artifactId>swagger-annotations</artifactId>
  163. </exclusion>
  164. <exclusion>
  165. <groupId>io.swagger</groupId>
  166. <artifactId>swagger-models</artifactId>
  167. </exclusion>
  168. </exclusions>
  169. </dependency>
  170. <!--防止进入swagger页面报类型转换错误,排除2.9.2中的引用,手动增加1.5.21版本-->
  171. <dependency>
  172. <groupId>io.swagger</groupId>
  173. <artifactId>swagger-annotations</artifactId>
  174. <version>1.5.21</version>
  175. </dependency>
  176. <dependency>
  177. <groupId>io.swagger</groupId>
  178. <artifactId>swagger-models</artifactId>
  179. <version>1.5.21</version>
  180. </dependency>
  181. <!-- swagger2-UI-->
  182. <dependency>
  183. <groupId>io.springfox</groupId>
  184. <artifactId>springfox-swagger-ui</artifactId>
  185. <version>${swagger.version}</version>
  186. </dependency>
  187. <!-- 获取系统信息 -->
  188. <dependency>
  189. <groupId>com.github.oshi</groupId>
  190. <artifactId>oshi-core</artifactId>
  191. <version>${oshi.version}</version>
  192. </dependency>
  193. <dependency>
  194. <groupId>net.java.dev.jna</groupId>
  195. <artifactId>jna</artifactId>
  196. </dependency>
  197. <dependency>
  198. <groupId>net.java.dev.jna</groupId>
  199. <artifactId>jna-platform</artifactId>
  200. </dependency>
  201. <!--**********************************工作流开始***********************************-->
  202. <!--工作流-->
  203. <dependency>
  204. <groupId>org.activiti</groupId>
  205. <artifactId>activiti-spring-boot-starter-basic</artifactId>
  206. <version>${activiti.version}</version>
  207. </dependency>
  208. <!--模型设计-->
  209. <dependency>
  210. <groupId>org.activiti</groupId>
  211. <artifactId>activiti-json-converter</artifactId>
  212. <version>${activiti.version}</version>
  213. </dependency>
  214. <!-- JSON工具类 -->
  215. <dependency>
  216. <groupId>com.fasterxml.jackson.core</groupId>
  217. <artifactId>jackson-databind</artifactId>
  218. <version>2.9.5</version>
  219. </dependency>
  220. <!-- xml解析依赖-->
  221. <dependency>
  222. <groupId>org.apache.xmlgraphics</groupId>
  223. <artifactId>batik-codec</artifactId>
  224. <version>1.7</version>
  225. </dependency>
  226. <dependency>
  227. <groupId>org.apache.xmlgraphics</groupId>
  228. <artifactId>batik-css</artifactId>
  229. <version> 1.7</version>
  230. </dependency>
  231. <dependency>
  232. <groupId>org.apache.xmlgraphics</groupId>
  233. <artifactId>batik-svg-dom</artifactId>
  234. <version>1.7</version>
  235. </dependency>
  236. <dependency>
  237. <groupId>org.apache.xmlgraphics</groupId>
  238. <artifactId>batik-svggen</artifactId>
  239. <version>1.7</version>
  240. </dependency>
  241. <!--**********************************工作流结束***********************************-->
  242. </dependencies>
  243. <build>
  244. <finalName>${project.artifactId}</finalName>
  245. <plugins>
  246. <plugin>
  247. <groupId>org.springframework.boot</groupId>
  248. <artifactId>spring-boot-maven-plugin</artifactId>
  249. <configuration>
  250. <fork>true</fork> <!-- 如果没有该配置,devtools不会生效 -->
  251. </configuration>
  252. </plugin>
  253. <plugin>
  254. <groupId>org.apache.maven.plugins</groupId>
  255. <artifactId>maven-surefire-plugin</artifactId>
  256. <version>2.18.1</version>
  257. <configuration>
  258. <skipTests>true</skipTests>
  259. </configuration>
  260. </plugin>
  261. <plugin>
  262. <groupId>com.spotify</groupId>
  263. <artifactId>docker-maven-plugin</artifactId>
  264. <version>1.2.2</version>
  265. <configuration>
  266. <!--
  267. <serverId>${docker.serviceId}</serverId>
  268. -->
  269. <dockerHost>${docker.dockerHost}</dockerHost>
  270. <!--指定标签-->
  271. <imageTags>
  272. <imageTag>${docker.image.version}</imageTag>
  273. </imageTags>
  274. <imageName>docker.io/${project.artifactId}:${docker.image.version}</imageName>
  275. <dockerDirectory>${project.basedir}/src/main/docker</dockerDirectory>
  276. <resources>
  277. <resource>
  278. <targetPath>/</targetPath>
  279. <directory>${project.build.directory}</directory>
  280. <include>${project.build.finalName}.jar</include>
  281. </resource>
  282. </resources>
  283. </configuration>
  284. </plugin>
  285. </plugins>
  286. </build>
  287. <repositories>
  288. <repository>
  289. <id>public</id>
  290. <name>aliyun nexus</name>
  291. <url>http://maven.aliyun.com/nexus/content/groups/public/</url>
  292. <releases>
  293. <enabled>true</enabled>
  294. </releases>
  295. </repository>
  296. </repositories>
  297. <pluginRepositories>
  298. <pluginRepository>
  299. <id>public</id>
  300. <name>aliyun nexus</name>
  301. <url>http://maven.aliyun.com/nexus/content/groups/public/</url>
  302. <releases>
  303. <enabled>true</enabled>
  304. </releases>
  305. <snapshots>
  306. <enabled>false</enabled>
  307. </snapshots>
  308. </pluginRepository>
  309. </pluginRepositories>
  310. </project>