pom.xml 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269
  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. <!--docker 部署配置 start-->
  34. <namespace>shanghailifeecif</namespace>
  35. <!--开发环境docker 地址-->
  36. <docker.host>http://192.168.100.254:2375</docker.host>
  37. </properties>
  38. <!-- 依赖声明 -->
  39. <dependencyManagement>
  40. <dependencies>
  41. <!-- SpringCloud 微服务 -->
  42. <dependency>
  43. <groupId>org.springframework.cloud</groupId>
  44. <artifactId>spring-cloud-dependencies</artifactId>
  45. <version>${spring-cloud.version}</version>
  46. <type>pom</type>
  47. <scope>import</scope>
  48. </dependency>
  49. <!-- SpringCloud Alibaba 微服务 -->
  50. <dependency>
  51. <groupId>com.alibaba.cloud</groupId>
  52. <artifactId>spring-cloud-alibaba-dependencies</artifactId>
  53. <version>${spring-cloud-alibaba.version}</version>
  54. <type>pom</type>
  55. <scope>import</scope>
  56. </dependency>
  57. <!-- SpringBoot 依赖配置 -->
  58. <dependency>
  59. <groupId>org.springframework.boot</groupId>
  60. <artifactId>spring-boot-dependencies</artifactId>
  61. <version>${spring-boot.version}</version>
  62. <type>pom</type>
  63. <scope>import</scope>
  64. </dependency>
  65. <!-- SpringBoot 监控客户端 -->
  66. <dependency>
  67. <groupId>de.codecentric</groupId>
  68. <artifactId>spring-boot-admin-starter-client</artifactId>
  69. <version>${spring-boot-admin.version}</version>
  70. </dependency>
  71. <!-- Mybatis 依赖配置 -->
  72. <dependency>
  73. <groupId>org.mybatis.spring.boot</groupId>
  74. <artifactId>mybatis-spring-boot-starter</artifactId>
  75. <version>${spring-boot.mybatis}</version>
  76. </dependency>
  77. <!-- Swagger 依赖配置 -->
  78. <dependency>
  79. <groupId>io.swagger</groupId>
  80. <artifactId>swagger-models</artifactId>
  81. <version>${swagger.core.version}</version>
  82. </dependency>
  83. <dependency>
  84. <groupId>io.swagger</groupId>
  85. <artifactId>swagger-annotations</artifactId>
  86. <version>${swagger.core.version}</version>
  87. </dependency>
  88. <!-- 验证码 -->
  89. <dependency>
  90. <groupId>com.github.penggle</groupId>
  91. <artifactId>kaptcha</artifactId>
  92. <version>${kaptcha.version}</version>
  93. </dependency>
  94. <!-- pagehelper 分页插件 -->
  95. <dependency>
  96. <groupId>com.github.pagehelper</groupId>
  97. <artifactId>pagehelper-spring-boot-starter</artifactId>
  98. <version>${pagehelper.boot.version}</version>
  99. </dependency>
  100. <!-- io常用工具类 -->
  101. <dependency>
  102. <groupId>commons-io</groupId>
  103. <artifactId>commons-io</artifactId>
  104. <version>${commons.io.version}</version>
  105. </dependency>
  106. <!-- excel工具 -->
  107. <dependency>
  108. <groupId>org.apache.poi</groupId>
  109. <artifactId>poi-ooxml</artifactId>
  110. <version>${poi.version}</version>
  111. </dependency>
  112. <!-- 文件上传工具类 -->
  113. <dependency>
  114. <groupId>commons-fileupload</groupId>
  115. <artifactId>commons-fileupload</artifactId>
  116. <version>${commons.fileupload.version}</version>
  117. </dependency>
  118. <!-- 代码生成使用模板 -->
  119. <dependency>
  120. <groupId>org.apache.velocity</groupId>
  121. <artifactId>velocity</artifactId>
  122. <version>${velocity.version}</version>
  123. </dependency>
  124. <!-- JSON 解析器和生成器 -->
  125. <dependency>
  126. <groupId>com.alibaba</groupId>
  127. <artifactId>fastjson</artifactId>
  128. <version>${fastjson.version}</version>
  129. </dependency>
  130. <!-- 公共资源池 -->
  131. <dependency>
  132. <groupId>org.apache.commons</groupId>
  133. <artifactId>commons-pool2</artifactId>
  134. <version>${common-pool.version}</version>
  135. </dependency>
  136. <!-- 核心模块 -->
  137. <dependency>
  138. <groupId>com.dgtis</groupId>
  139. <artifactId>dgtis-common-core</artifactId>
  140. <version>${dgtis.version}</version>
  141. </dependency>
  142. <!-- 接口模块 -->
  143. <dependency>
  144. <groupId>com.dgtis</groupId>
  145. <artifactId>dgtis-common-swagger</artifactId>
  146. <version>${dgtis.version}</version>
  147. </dependency>
  148. <!-- 安全模块 -->
  149. <dependency>
  150. <groupId>com.dgtis</groupId>
  151. <artifactId>dgtis-common-security</artifactId>
  152. <version>${dgtis.version}</version>
  153. </dependency>
  154. <!-- 权限范围 -->
  155. <dependency>
  156. <groupId>com.dgtis</groupId>
  157. <artifactId>dgtis-common-datascope</artifactId>
  158. <version>${dgtis.version}</version>
  159. </dependency>
  160. <!-- 日志记录 -->
  161. <dependency>
  162. <groupId>com.dgtis</groupId>
  163. <artifactId>dgtis-common-log</artifactId>
  164. <version>${dgtis.version}</version>
  165. </dependency>
  166. <!-- 缓存服务 -->
  167. <dependency>
  168. <groupId>com.dgtis</groupId>
  169. <artifactId>dgtis-common-redis</artifactId>
  170. <version>${dgtis.version}</version>
  171. </dependency>
  172. <!-- 系统接口 -->
  173. <dependency>
  174. <groupId>com.dgtis</groupId>
  175. <artifactId>dgtis-api-system</artifactId>
  176. <version>${dgtis.version}</version>
  177. </dependency>
  178. </dependencies>
  179. </dependencyManagement>
  180. <modules>
  181. <module>dgtis-auth</module>
  182. <module>dgtis-gateway</module>
  183. <module>dgtis-visual</module>
  184. <module>dgtis-modules</module>
  185. <module>dgtis-api</module>
  186. <module>dgtis-common</module>
  187. </modules>
  188. <packaging>pom</packaging>
  189. <dependencies>
  190. </dependencies>
  191. <build>
  192. <plugins>
  193. <!--使用docker-maven-plugin插件-->
  194. <plugin>
  195. <groupId>com.spotify</groupId>
  196. <artifactId>docker-maven-plugin</artifactId>
  197. <version>1.0.0</version>
  198. <configuration>
  199. <!--指定生成的镜像名-->
  200. <imageName>${namespace}-${project.artifactId}</imageName>
  201. <!--指定标签-->
  202. <imageTags>
  203. <imageTag>latest</imageTag>
  204. </imageTags>
  205. <!-- 指定 Dockerfile 路径-->
  206. <dockerDirectory>${project.basedir}/src/main/docker</dockerDirectory>
  207. <!--指定远程 docker api地址-->
  208. <dockerHost>${docker.host}</dockerHost>
  209. <!-- 这里是复制 jar 包到 docker 容器指定目录配置 -->
  210. <resources>
  211. <resource>
  212. <targetPath>/</targetPath>
  213. <!--jar 包所在的路径 此处配置的 即对应 target 目录-->
  214. <directory>${project.build.directory}</directory>
  215. <!-- 需要包含的 jar包 ,这里对应的是 Dockerfile中添加的文件名 -->
  216. <include>${project.build.finalName}.jar</include>
  217. </resource>
  218. </resources>
  219. </configuration>
  220. </plugin>
  221. <plugin>
  222. <groupId>org.apache.maven.plugins</groupId>
  223. <artifactId>maven-compiler-plugin</artifactId>
  224. <version>2.3.2</version>
  225. <configuration>
  226. <source>${java.version}</source>
  227. <target>${java.version}</target>
  228. <encoding>${project.build.sourceEncoding}</encoding>
  229. </configuration>
  230. </plugin>
  231. </plugins>
  232. </build>
  233. </project>