pom.xml 8.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271
  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.5.1</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.1.3.RELEASE</spring-boot.version>
  43. <spring-cloud.version>Greenwich.RELEASE</spring-cloud.version>
  44. <spring-platform.version>Cairo-SR7</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.1.3</spring-boot-admin.version>
  49. <hutool.version>4.4.5</hutool.version>
  50. <kaptcha.version>0.0.9</kaptcha.version>
  51. <swagger.version>2.9.2</swagger.version>
  52. <curator.version>2.10.0</curator.version>
  53. <velocity.version>1.7</velocity.version>
  54. <lcn.version>4.1.0</lcn.version>
  55. <jasypt.version>2.1.1</jasypt.version>
  56. <ttl.version>2.10.2</ttl.version>
  57. <minio.version>6.0.2</minio.version>
  58. <elastic-job-lite.version>2.1.5</elastic-job-lite.version>
  59. <security.oauth.version>2.3.4.RELEASE</security.oauth.version>
  60. <security.oauth.auto.version>2.1.2.RELEASE</security.oauth.auto.version>
  61. <activiti.version>5.22.0</activiti.version>
  62. <zipkin.version>2.12.2</zipkin.version>
  63. <zipkin-storage-mysql.version>2.8.4</zipkin-storage-mysql.version>
  64. <docker.url>http://192.168.0.13:4243</docker.url>
  65. <docker.plugin.version>0.4.12</docker.plugin.version>
  66. <registry.url>192.168.0.13:5000</registry.url>
  67. </properties>
  68. <dependencies>
  69. <!--eureka 客户端-->
  70. <dependency>
  71. <groupId>org.springframework.cloud</groupId>
  72. <artifactId>spring-cloud-starter-netflix-eureka-client</artifactId>
  73. </dependency>
  74. <!--配置文件处理器-->
  75. <dependency>
  76. <groupId>org.springframework.boot</groupId>
  77. <artifactId>spring-boot-configuration-processor</artifactId>
  78. <optional>true</optional>
  79. </dependency>
  80. <!--jasypt配置文件加解密-->
  81. <dependency>
  82. <groupId>com.github.ulisesbocchio</groupId>
  83. <artifactId>jasypt-spring-boot-starter</artifactId>
  84. <version>${jasypt.version}</version>
  85. </dependency>
  86. <!--监控-->
  87. <dependency>
  88. <groupId>org.springframework.boot</groupId>
  89. <artifactId>spring-boot-starter-actuator</artifactId>
  90. </dependency>
  91. <!--监控客户端-->
  92. <dependency>
  93. <groupId>de.codecentric</groupId>
  94. <artifactId>spring-boot-admin-starter-client</artifactId>
  95. <version>${spring-boot-admin.version}</version>
  96. </dependency>
  97. <!--服务追踪-->
  98. <dependency>
  99. <groupId>org.springframework.cloud</groupId>
  100. <artifactId>spring-cloud-starter-sleuth</artifactId>
  101. </dependency>
  102. <dependency>
  103. <groupId>org.springframework.cloud</groupId>
  104. <artifactId>spring-cloud-sleuth-zipkin</artifactId>
  105. </dependency>
  106. <!--断路器依赖-->
  107. <dependency>
  108. <groupId>org.springframework.cloud</groupId>
  109. <artifactId>spring-cloud-starter-netflix-hystrix</artifactId>
  110. </dependency>
  111. <!--Lombok-->
  112. <dependency>
  113. <groupId>org.projectlombok</groupId>
  114. <artifactId>lombok</artifactId>
  115. <scope>provided</scope>
  116. </dependency>
  117. <!--测试依赖-->
  118. <dependency>
  119. <groupId>org.springframework.boot</groupId>
  120. <artifactId>spring-boot-starter-test</artifactId>
  121. <scope>test</scope>
  122. </dependency>
  123. </dependencies>
  124. <modules>
  125. <module>pigx-eureka</module>
  126. <module>pigx-config</module>
  127. <module>pigx-gateway</module>
  128. <module>pigx-auth</module>
  129. <module>pigx-upms</module>
  130. <module>pigx-common</module>
  131. <module>pigx-visual</module>
  132. </modules>
  133. <dependencyManagement>
  134. <dependencies>
  135. <dependency>
  136. <groupId>org.springframework.boot</groupId>
  137. <artifactId>spring-boot-dependencies</artifactId>
  138. <version>${spring-boot.version}</version>
  139. <type>pom</type>
  140. <scope>import</scope>
  141. </dependency>
  142. <dependency>
  143. <groupId>io.spring.platform</groupId>
  144. <artifactId>platform-bom</artifactId>
  145. <version>${spring-platform.version}</version>
  146. <type>pom</type>
  147. <scope>import</scope>
  148. </dependency>
  149. <dependency>
  150. <groupId>org.springframework.cloud</groupId>
  151. <artifactId>spring-cloud-dependencies</artifactId>
  152. <version>${spring-cloud.version}</version>
  153. <type>pom</type>
  154. <scope>import</scope>
  155. </dependency>
  156. <dependency>
  157. <groupId>org.springframework.cloud</groupId>
  158. <artifactId>pigx-common-bom</artifactId>
  159. <version>${project.version}</version>
  160. <type>pom</type>
  161. <scope>import</scope>
  162. </dependency>
  163. <!--稳定版本,替代spring security bom内置-->
  164. <dependency>
  165. <groupId>org.springframework.security.oauth</groupId>
  166. <artifactId>spring-security-oauth2</artifactId>
  167. <version>${security.oauth.version}</version>
  168. </dependency>
  169. <dependency>
  170. <groupId>org.springframework.security.oauth.boot</groupId>
  171. <artifactId>spring-security-oauth2-autoconfigure</artifactId>
  172. <version>${security.oauth.auto.version}</version>
  173. </dependency>
  174. <!--web 模块-->
  175. <dependency>
  176. <groupId>org.springframework.boot</groupId>
  177. <artifactId>spring-boot-starter-web</artifactId>
  178. <version>${spring-boot.version}</version>
  179. <exclusions>
  180. <!--排除tomcat依赖-->
  181. <exclusion>
  182. <artifactId>spring-boot-starter-tomcat</artifactId>
  183. <groupId>org.springframework.boot</groupId>
  184. </exclusion>
  185. </exclusions>
  186. </dependency>
  187. </dependencies>
  188. </dependencyManagement>
  189. <build>
  190. <finalName>${project.name}</finalName>
  191. <resources>
  192. <resource>
  193. <directory>src/main/resources</directory>
  194. <filtering>true</filtering>
  195. </resource>
  196. </resources>
  197. <pluginManagement>
  198. <plugins>
  199. <plugin>
  200. <groupId>org.springframework.boot</groupId>
  201. <artifactId>spring-boot-maven-plugin</artifactId>
  202. <version>${spring-boot.version}</version>
  203. <executions>
  204. <execution>
  205. <goals>
  206. <goal>repackage</goal>
  207. </goals>
  208. </execution>
  209. </executions>
  210. </plugin>
  211. <plugin>
  212. <groupId>com.spotify</groupId>
  213. <artifactId>docker-maven-plugin</artifactId>
  214. <version>${docker.plugin.version}</version>
  215. <configuration>
  216. <imageName>${registry.url}/${project.name}:0.0.1</imageName>
  217. <dockerHost>${docker.url}</dockerHost>
  218. <dockerDirectory>${project.basedir}</dockerDirectory>
  219. <resources>
  220. <resource>
  221. <targetPath>/</targetPath>
  222. <directory>${project.build.directory}</directory>
  223. <include>${project.build.finalName}.jar</include>
  224. </resource>
  225. </resources>
  226. <serverId>docker-hub</serverId>
  227. <registryUrl>https://index.docker.io/v1/</registryUrl>
  228. </configuration>
  229. </plugin>
  230. </plugins>
  231. </pluginManagement>
  232. <plugins>
  233. <plugin>
  234. <artifactId>maven-compiler-plugin</artifactId>
  235. <version>3.8.0</version>
  236. <configuration>
  237. <target>${maven.compiler.target}</target>
  238. <source>${maven.compiler.source}</source>
  239. <encoding>UTF-8</encoding>
  240. <skip>true</skip>
  241. </configuration>
  242. </plugin>
  243. <plugin>
  244. <groupId>pl.project13.maven</groupId>
  245. <artifactId>git-commit-id-plugin</artifactId>
  246. <version>2.2.5</version>
  247. </plugin>
  248. </plugins>
  249. </build>
  250. <repositories>
  251. <repository>
  252. <id>aliyun</id>
  253. <name>aliyun</name>
  254. <url>https://maven.aliyun.com/repository/public</url>
  255. <releases>
  256. <enabled>true</enabled>
  257. </releases>
  258. <snapshots>
  259. <enabled>false</enabled>
  260. </snapshots>
  261. </repository>
  262. </repositories>
  263. </project>