pom.xml 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <project xmlns="http://maven.apache.org/POM/4.0.0"
  3. xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  4. xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
  5. <modelVersion>4.0.0</modelVersion>
  6. <groupId>com.dgtis</groupId>
  7. <artifactId>dgtis-cloud</artifactId>
  8. <version>2.2.0</version>
  9. <name>dgtis-cloud</name>
  10. <url>http://www.dgtis.com</url>
  11. <description>微服务系统</description>
  12. <properties>
  13. <dgtis.version>2.2.0</dgtis.version>
  14. <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  15. <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
  16. <java.version>1.8</java.version>
  17. <spring-boot.version>2.3.4.RELEASE</spring-boot.version>
  18. <spring-cloud.version>Hoxton.SR8</spring-cloud.version>
  19. <spring-cloud-alibaba.version>2.2.3.RELEASE</spring-cloud-alibaba.version>
  20. <spring-boot-admin.version>2.3.0</spring-boot-admin.version>
  21. <spring-boot.mybatis>2.1.3</spring-boot.mybatis>
  22. <swagger.fox.version>2.9.2</swagger.fox.version>
  23. <swagger.core.version>1.5.24</swagger.core.version>
  24. <kaptcha.version>2.3.2</kaptcha.version>
  25. <pagehelper.boot.version>1.3.0</pagehelper.boot.version>
  26. <commons.io.version>2.5</commons.io.version>
  27. <commons.fileupload.version>1.3.3</commons.fileupload.version>
  28. <velocity.version>1.7</velocity.version>
  29. <fastjson.version>1.2.74</fastjson.version>
  30. <minio.version>8.0.3</minio.version>
  31. <poi.version>3.17</poi.version>
  32. <common-pool.version>2.6.2</common-pool.version>
  33. <log4j2.version>2.17.0</log4j2.version>
  34. <!--docker 部署配置 start-->
  35. <namespace>shanghailifeecif</namespace>
  36. <!--开发环境docker 地址-->
  37. <docker.host>http://192.168.100.254:2375</docker.host>
  38. </properties>
  39. <!-- 依赖声明 -->
  40. <dependencyManagement>
  41. <dependencies>
  42. <!-- <dependency>-->
  43. <!-- <groupId>org.springframework.boot</groupId>-->
  44. <!-- <artifactId>spring-boot-starter</artifactId>-->
  45. <!-- <exclusions>-->
  46. <!-- <exclusion>-->
  47. <!-- <groupId>org.springframework.boot</groupId>-->
  48. <!-- <artifactId>spring-boot-starter-logging</artifactId>-->
  49. <!-- </exclusion>-->
  50. <!-- </exclusions>-->
  51. <!-- </dependency>-->
  52. <!-- SpringCloud 微服务 -->
  53. <dependency>
  54. <groupId>org.springframework.cloud</groupId>
  55. <artifactId>spring-cloud-dependencies</artifactId>
  56. <version>${spring-cloud.version}</version>
  57. <type>pom</type>
  58. <scope>import</scope>
  59. </dependency>
  60. <!-- SpringCloud Alibaba 微服务 -->
  61. <dependency>
  62. <groupId>com.alibaba.cloud</groupId>
  63. <artifactId>spring-cloud-alibaba-dependencies</artifactId>
  64. <version>${spring-cloud-alibaba.version}</version>
  65. <type>pom</type>
  66. <scope>import</scope>
  67. </dependency>
  68. <!-- SpringBoot 依赖配置 -->
  69. <dependency>
  70. <groupId>org.springframework.boot</groupId>
  71. <artifactId>spring-boot-dependencies</artifactId>
  72. <version>${spring-boot.version}</version>
  73. <type>pom</type>
  74. <scope>import</scope>
  75. </dependency>
  76. <!-- SpringBoot 监控客户端 -->
  77. <dependency>
  78. <groupId>de.codecentric</groupId>
  79. <artifactId>spring-boot-admin-starter-client</artifactId>
  80. <version>${spring-boot-admin.version}</version>
  81. </dependency>
  82. <!-- Mybatis 依赖配置 -->
  83. <dependency>
  84. <groupId>org.mybatis.spring.boot</groupId>
  85. <artifactId>mybatis-spring-boot-starter</artifactId>
  86. <version>${spring-boot.mybatis}</version>
  87. </dependency>
  88. <!-- Swagger 依赖配置 -->
  89. <dependency>
  90. <groupId>io.swagger</groupId>
  91. <artifactId>swagger-models</artifactId>
  92. <version>${swagger.core.version}</version>
  93. </dependency>
  94. <dependency>
  95. <groupId>io.swagger</groupId>
  96. <artifactId>swagger-annotations</artifactId>
  97. <version>${swagger.core.version}</version>
  98. </dependency>
  99. <!-- 验证码 -->
  100. <dependency>
  101. <groupId>com.github.penggle</groupId>
  102. <artifactId>kaptcha</artifactId>
  103. <version>${kaptcha.version}</version>
  104. </dependency>
  105. <!-- pagehelper 分页插件 -->
  106. <dependency>
  107. <groupId>com.github.pagehelper</groupId>
  108. <artifactId>pagehelper-spring-boot-starter</artifactId>
  109. <version>${pagehelper.boot.version}</version>
  110. </dependency>
  111. <!-- io常用工具类 -->
  112. <dependency>
  113. <groupId>commons-io</groupId>
  114. <artifactId>commons-io</artifactId>
  115. <version>${commons.io.version}</version>
  116. </dependency>
  117. <!-- excel工具 -->
  118. <dependency>
  119. <groupId>org.apache.poi</groupId>
  120. <artifactId>poi-ooxml</artifactId>
  121. <version>${poi.version}</version>
  122. </dependency>
  123. <!-- 文件上传工具类 -->
  124. <dependency>
  125. <groupId>commons-fileupload</groupId>
  126. <artifactId>commons-fileupload</artifactId>
  127. <version>${commons.fileupload.version}</version>
  128. </dependency>
  129. <!-- 代码生成使用模板 -->
  130. <dependency>
  131. <groupId>org.apache.velocity</groupId>
  132. <artifactId>velocity</artifactId>
  133. <version>${velocity.version}</version>
  134. </dependency>
  135. <!-- JSON 解析器和生成器 -->
  136. <dependency>
  137. <groupId>com.alibaba</groupId>
  138. <artifactId>fastjson</artifactId>
  139. <version>${fastjson.version}</version>
  140. </dependency>
  141. <!-- 公共资源池 -->
  142. <dependency>
  143. <groupId>org.apache.commons</groupId>
  144. <artifactId>commons-pool2</artifactId>
  145. <version>${common-pool.version}</version>
  146. </dependency>
  147. <!-- 核心模块 -->
  148. <dependency>
  149. <groupId>com.dgtis</groupId>
  150. <artifactId>dgtis-common-core</artifactId>
  151. <version>${dgtis.version}</version>
  152. </dependency>
  153. <!-- 接口模块 -->
  154. <dependency>
  155. <groupId>com.dgtis</groupId>
  156. <artifactId>dgtis-common-swagger</artifactId>
  157. <version>${dgtis.version}</version>
  158. </dependency>
  159. <!-- 安全模块 -->
  160. <dependency>
  161. <groupId>com.dgtis</groupId>
  162. <artifactId>dgtis-common-security</artifactId>
  163. <version>${dgtis.version}</version>
  164. </dependency>
  165. <!-- 权限范围 -->
  166. <dependency>
  167. <groupId>com.dgtis</groupId>
  168. <artifactId>dgtis-common-datascope</artifactId>
  169. <version>${dgtis.version}</version>
  170. </dependency>
  171. <!-- 日志记录 -->
  172. <dependency>
  173. <groupId>com.dgtis</groupId>
  174. <artifactId>dgtis-common-log</artifactId>
  175. <version>${dgtis.version}</version>
  176. </dependency>
  177. <!-- 缓存服务 -->
  178. <dependency>
  179. <groupId>com.dgtis</groupId>
  180. <artifactId>dgtis-common-redis</artifactId>
  181. <version>${dgtis.version}</version>
  182. </dependency>
  183. <!-- 系统接口 -->
  184. <dependency>
  185. <groupId>com.dgtis</groupId>
  186. <artifactId>dgtis-api-system</artifactId>
  187. <version>${dgtis.version}</version>
  188. </dependency>
  189. <!-- log4j 依赖 -->
  190. <dependency>
  191. <groupId>org.apache.logging.log4j</groupId>
  192. <artifactId>log4j-slf4j-impl</artifactId>
  193. <version>${log4j2.version}</version>
  194. <scope>compile</scope>
  195. <exclusions>
  196. <exclusion>
  197. <artifactId>log4j-api</artifactId>
  198. <groupId>org.apache.logging.log4j</groupId>
  199. </exclusion>
  200. <exclusion>
  201. <artifactId>log4j-core</artifactId>
  202. <groupId>org.apache.logging.log4j</groupId>
  203. </exclusion>
  204. </exclusions>
  205. </dependency>
  206. <dependency>
  207. <groupId>org.apache.logging.log4j</groupId>
  208. <artifactId>log4j-api</artifactId>
  209. <version>${log4j2.version}</version>
  210. <scope>compile</scope>
  211. </dependency>
  212. <dependency>
  213. <groupId>org.apache.logging.log4j</groupId>
  214. <artifactId>log4j-core</artifactId>
  215. <version>${log4j2.version}</version>
  216. <scope>compile</scope>
  217. <exclusions>
  218. <exclusion>
  219. <artifactId>log4j-api</artifactId>
  220. <groupId>org.apache.logging.log4j</groupId>
  221. </exclusion>
  222. </exclusions>
  223. </dependency>
  224. </dependencies>
  225. </dependencyManagement>
  226. <modules>
  227. <module>dgtis-auth</module>
  228. <module>dgtis-gateway</module>
  229. <module>dgtis-visual</module>
  230. <module>dgtis-modules</module>
  231. <module>dgtis-api</module>
  232. <module>dgtis-common</module>
  233. </modules>
  234. <packaging>pom</packaging>
  235. <dependencies>
  236. </dependencies>
  237. <build>
  238. <plugins>
  239. <!--使用docker-maven-plugin插件-->
  240. <plugin>
  241. <groupId>com.spotify</groupId>
  242. <artifactId>docker-maven-plugin</artifactId>
  243. <version>1.0.0</version>
  244. <configuration>
  245. <!--指定生成的镜像名-->
  246. <imageName>${namespace}-${project.artifactId}</imageName>
  247. <!--指定标签-->
  248. <imageTags>
  249. <imageTag>latest</imageTag>
  250. </imageTags>
  251. <!-- 指定 Dockerfile 路径-->
  252. <dockerDirectory>${project.basedir}/src/main/docker</dockerDirectory>
  253. <!--指定远程 docker api地址-->
  254. <dockerHost>${docker.host}</dockerHost>
  255. <!-- 这里是复制 jar 包到 docker 容器指定目录配置 -->
  256. <resources>
  257. <resource>
  258. <targetPath>/</targetPath>
  259. <!--jar 包所在的路径 此处配置的 即对应 target 目录-->
  260. <directory>${project.build.directory}</directory>
  261. <!-- 需要包含的 jar包 ,这里对应的是 Dockerfile中添加的文件名 -->
  262. <include>${project.build.finalName}.jar</include>
  263. </resource>
  264. </resources>
  265. </configuration>
  266. </plugin>
  267. <plugin>
  268. <groupId>org.apache.maven.plugins</groupId>
  269. <artifactId>maven-compiler-plugin</artifactId>
  270. <version>2.3.2</version>
  271. <configuration>
  272. <source>${java.version}</source>
  273. <target>${java.version}</target>
  274. <encoding>${project.build.sourceEncoding}</encoding>
  275. </configuration>
  276. </plugin>
  277. </plugins>
  278. </build>
  279. </project>