pom.xml 8.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!--
  3. ~
  4. ~ Copyright (c) 2018-2025, lengleng All rights reserved.
  5. ~
  6. ~ Redistribution and use in source and binary forms, with or without
  7. ~ modification, are permitted provided that the following conditions are met:
  8. ~
  9. ~ Redistributions of source code must retain the above copyright notice,
  10. ~ this list of conditions and the following disclaimer.
  11. ~ Redistributions in binary form must reproduce the above copyright
  12. ~ notice, this list of conditions and the following disclaimer in the
  13. ~ documentation and/or other materials provided with the distribution.
  14. ~ Neither the name of the pig4cloud.com developer nor the names of its
  15. ~ contributors may be used to endorse or promote products derived from
  16. ~ this software without specific prior written permission.
  17. ~ Author: lengleng (wangiegie@gmail.com)
  18. ~
  19. -->
  20. <project xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://maven.apache.org/POM/4.0.0"
  21. xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
  22. <modelVersion>4.0.0</modelVersion>
  23. <groupId>com.pig4cloud</groupId>
  24. <artifactId>pigx</artifactId>
  25. <version>2.1.2</version>
  26. <name>${project.artifactId}</name>
  27. <packaging>pom</packaging>
  28. <organization>
  29. <name>pig4cloud</name>
  30. <url>https://www.pig4cloud.com</url>
  31. </organization>
  32. <developers>
  33. <developer>
  34. <name>lengleng</name>
  35. <email>wangiegie@gmail.com</email>
  36. <roles>
  37. <role>leader</role>
  38. </roles>
  39. </developer>
  40. </developers>
  41. <properties>
  42. <spring-boot.version>2.0.8.RELEASE</spring-boot.version>
  43. <spring-cloud.version>Finchley.SR2</spring-cloud.version>
  44. <spring-platform.version>Cairo-SR6</spring-platform.version>
  45. <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  46. <maven.compiler.source>1.8</maven.compiler.source>
  47. <maven.compiler.target>1.8</maven.compiler.target>
  48. <spring-boot-admin.version>2.0.4</spring-boot-admin.version>
  49. <hutool.version>4.3.2</hutool.version>
  50. <mybatis-plus.version>3.0.6</mybatis-plus.version>
  51. <kaptcha.version>0.0.9</kaptcha.version>
  52. <swagger.version>2.9.2</swagger.version>
  53. <curator.version>2.10.0</curator.version>
  54. <velocity.version>1.7</velocity.version>
  55. <lcn.version>4.1.0</lcn.version>
  56. <jasypt.version>2.1.0</jasypt.version>
  57. <ttl.version>2.10.1</ttl.version>
  58. <minio.version>3.0.12</minio.version>
  59. <elastic-job-lite.version>2.1.5</elastic-job-lite.version>
  60. <mysql.connector.version>8.0.13</mysql.connector.version>
  61. <security.oauth.version>2.3.3.RELEASE</security.oauth.version>
  62. <jackson.modules>2.9.6</jackson.modules>
  63. <activiti.version>5.22.0</activiti.version>
  64. <docker.url>http://192.168.0.13:4243</docker.url>
  65. <registry.url>192.168.0.13:5000</registry.url>
  66. </properties>
  67. <dependencies>
  68. <!--eureka 客户端-->
  69. <dependency>
  70. <groupId>org.springframework.cloud</groupId>
  71. <artifactId>spring-cloud-starter-netflix-eureka-client</artifactId>
  72. </dependency>
  73. <!--配置文件处理器-->
  74. <dependency>
  75. <groupId>org.springframework.boot</groupId>
  76. <artifactId>spring-boot-configuration-processor</artifactId>
  77. <optional>true</optional>
  78. </dependency>
  79. <!--jasypt配置文件加解密-->
  80. <dependency>
  81. <groupId>com.github.ulisesbocchio</groupId>
  82. <artifactId>jasypt-spring-boot-starter</artifactId>
  83. <version>${jasypt.version}</version>
  84. </dependency>
  85. <!--监控-->
  86. <dependency>
  87. <groupId>org.springframework.boot</groupId>
  88. <artifactId>spring-boot-starter-actuator</artifactId>
  89. </dependency>
  90. <!--监控客户端-->
  91. <dependency>
  92. <groupId>de.codecentric</groupId>
  93. <artifactId>spring-boot-admin-starter-client</artifactId>
  94. <version>${spring-boot-admin.version}</version>
  95. </dependency>
  96. <!--断路器依赖-->
  97. <dependency>
  98. <groupId>org.springframework.cloud</groupId>
  99. <artifactId>spring-cloud-starter-netflix-hystrix</artifactId>
  100. </dependency>
  101. <!--Lombok-->
  102. <dependency>
  103. <groupId>org.projectlombok</groupId>
  104. <artifactId>lombok</artifactId>
  105. <scope>provided</scope>
  106. </dependency>
  107. <!--测试依赖-->
  108. <dependency>
  109. <groupId>org.springframework.boot</groupId>
  110. <artifactId>spring-boot-starter-test</artifactId>
  111. <scope>test</scope>
  112. </dependency>
  113. </dependencies>
  114. <modules>
  115. <module>pigx-eureka</module>
  116. <module>pigx-config</module>
  117. <module>pigx-gateway</module>
  118. <module>pigx-auth</module>
  119. <module>pigx-upms</module>
  120. <module>pigx-common</module>
  121. <module>pigx-visual</module>
  122. </modules>
  123. <dependencyManagement>
  124. <dependencies>
  125. <dependency>
  126. <groupId>org.springframework.boot</groupId>
  127. <artifactId>spring-boot-dependencies</artifactId>
  128. <version>${spring-boot.version}</version>
  129. <type>pom</type>
  130. <scope>import</scope>
  131. </dependency>
  132. <dependency>
  133. <groupId>io.spring.platform</groupId>
  134. <artifactId>platform-bom</artifactId>
  135. <version>${spring-platform.version}</version>
  136. <type>pom</type>
  137. <scope>import</scope>
  138. </dependency>
  139. <dependency>
  140. <groupId>org.springframework.cloud</groupId>
  141. <artifactId>spring-cloud-dependencies</artifactId>
  142. <version>${spring-cloud.version}</version>
  143. <type>pom</type>
  144. <scope>import</scope>
  145. </dependency>
  146. <!--jackson模块-->
  147. <dependency>
  148. <groupId>com.fasterxml.jackson.module</groupId>
  149. <artifactId>jackson-modules-java8</artifactId>
  150. <version>${jackson.modules}</version>
  151. <type>pom</type>
  152. <scope>import</scope>
  153. </dependency>
  154. </dependencies>
  155. </dependencyManagement>
  156. <build>
  157. <finalName>${project.name}</finalName>
  158. <resources>
  159. <resource>
  160. <directory>src/main/resources</directory>
  161. <filtering>true</filtering>
  162. </resource>
  163. </resources>
  164. <pluginManagement>
  165. <plugins>
  166. <plugin>
  167. <groupId>org.springframework.boot</groupId>
  168. <artifactId>spring-boot-maven-plugin</artifactId>
  169. <version>${spring-boot.version}</version>
  170. <configuration>
  171. <finalName>${project.build.finalName}</finalName>
  172. </configuration>
  173. </plugin>
  174. <plugin>
  175. <groupId>com.spotify</groupId>
  176. <artifactId>docker-maven-plugin</artifactId>
  177. <version>0.4.12</version>
  178. <configuration>
  179. <imageName>${registry.url}/${project.name}:0.0.1</imageName>
  180. <dockerHost>${docker.url}</dockerHost>
  181. <dockerDirectory>${project.basedir}</dockerDirectory>
  182. <resources>
  183. <resource>
  184. <targetPath>/</targetPath>
  185. <directory>${project.build.directory}</directory>
  186. <include>${project.build.finalName}.jar</include>
  187. </resource>
  188. </resources>
  189. <serverId>docker-hub</serverId>
  190. <registryUrl>https://index.docker.io/v1/</registryUrl>
  191. </configuration>
  192. </plugin>
  193. </plugins>
  194. </pluginManagement>
  195. <plugins>
  196. <plugin>
  197. <artifactId>maven-compiler-plugin</artifactId>
  198. <version>3.8.0</version>
  199. <configuration>
  200. <target>${maven.compiler.target}</target>
  201. <source>${maven.compiler.source}</source>
  202. <encoding>UTF-8</encoding>
  203. </configuration>
  204. </plugin>
  205. <plugin>
  206. <groupId>pl.project13.maven</groupId>
  207. <artifactId>git-commit-id-plugin</artifactId>
  208. <version>2.2.5</version>
  209. </plugin>
  210. </plugins>
  211. </build>
  212. <repositories>
  213. <!--阿里云主仓库,代理了maven central和jcenter仓库-->
  214. <repository>
  215. <id>aliyun</id>
  216. <name>aliyun</name>
  217. <url>https://maven.aliyun.com/repository/public</url>
  218. <releases>
  219. <enabled>true</enabled>
  220. </releases>
  221. <snapshots>
  222. <enabled>false</enabled>
  223. </snapshots>
  224. </repository>
  225. <!--阿里云代理Spring 官方仓库-->
  226. <repository>
  227. <id>spring-milestones</id>
  228. <name>Spring Milestones</name>
  229. <url>https://maven.aliyun.com/repository/spring</url>
  230. <releases>
  231. <enabled>true</enabled>
  232. </releases>
  233. <snapshots>
  234. <enabled>false</enabled>
  235. </snapshots>
  236. </repository>
  237. <!--私服厂库-->
  238. <repository>
  239. <id>pigx</id>
  240. <name>pigx repository</name>
  241. <url>http://nexus.gitee.wang/repository/maven-public</url>
  242. <releases>
  243. <enabled>true</enabled>
  244. </releases>
  245. <snapshots>
  246. <enabled>false</enabled>
  247. </snapshots>
  248. </repository>
  249. </repositories>
  250. <pluginRepositories>
  251. <!--阿里云代理Spring 插件仓库-->
  252. <pluginRepository>
  253. <id>spring-plugin</id>
  254. <name>spring-plugin</name>
  255. <url>https://maven.aliyun.com/repository/spring-plugin</url>
  256. <releases>
  257. <enabled>true</enabled>
  258. </releases>
  259. <snapshots>
  260. <enabled>false</enabled>
  261. </snapshots>
  262. </pluginRepository>
  263. </pluginRepositories>
  264. </project>