pom.xml 10 KB

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