pom.xml 7.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246
  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.0</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.2.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.2</spring-boot-admin.version>
  49. <hutool.version>4.3.2</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.0</jasypt.version>
  56. <ttl.version>2.10.1</ttl.version>
  57. <minio.version>3.0.12</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. <docker.url>http://192.168.0.13:4243</docker.url>
  63. <docker.plugin.version>0.4.12</docker.plugin.version>
  64. <registry.url>192.168.0.13:5000</registry.url>
  65. </properties>
  66. <dependencies>
  67. <!--eureka 客户端-->
  68. <dependency>
  69. <groupId>org.springframework.cloud</groupId>
  70. <artifactId>spring-cloud-starter-netflix-eureka-client</artifactId>
  71. </dependency>
  72. <!--配置文件处理器-->
  73. <dependency>
  74. <groupId>org.springframework.boot</groupId>
  75. <artifactId>spring-boot-configuration-processor</artifactId>
  76. <optional>true</optional>
  77. </dependency>
  78. <!--jasypt配置文件加解密-->
  79. <dependency>
  80. <groupId>com.github.ulisesbocchio</groupId>
  81. <artifactId>jasypt-spring-boot-starter</artifactId>
  82. <version>${jasypt.version}</version>
  83. </dependency>
  84. <!--监控-->
  85. <dependency>
  86. <groupId>org.springframework.boot</groupId>
  87. <artifactId>spring-boot-starter-actuator</artifactId>
  88. </dependency>
  89. <!--监控客户端-->
  90. <dependency>
  91. <groupId>de.codecentric</groupId>
  92. <artifactId>spring-boot-admin-starter-client</artifactId>
  93. <version>${spring-boot-admin.version}</version>
  94. </dependency>
  95. <!--断路器依赖-->
  96. <dependency>
  97. <groupId>org.springframework.cloud</groupId>
  98. <artifactId>spring-cloud-starter-netflix-hystrix</artifactId>
  99. </dependency>
  100. <!--Lombok-->
  101. <dependency>
  102. <groupId>org.projectlombok</groupId>
  103. <artifactId>lombok</artifactId>
  104. <scope>provided</scope>
  105. </dependency>
  106. <!--测试依赖-->
  107. <dependency>
  108. <groupId>org.springframework.boot</groupId>
  109. <artifactId>spring-boot-starter-test</artifactId>
  110. <scope>test</scope>
  111. </dependency>
  112. </dependencies>
  113. <modules>
  114. <module>pigx-eureka</module>
  115. <module>pigx-config</module>
  116. <module>pigx-gateway</module>
  117. <module>pigx-auth</module>
  118. <module>pigx-upms</module>
  119. <module>pigx-common</module>
  120. <module>pigx-visual</module>
  121. </modules>
  122. <dependencyManagement>
  123. <dependencies>
  124. <dependency>
  125. <groupId>org.springframework.boot</groupId>
  126. <artifactId>spring-boot-dependencies</artifactId>
  127. <version>${spring-boot.version}</version>
  128. <type>pom</type>
  129. <scope>import</scope>
  130. </dependency>
  131. <dependency>
  132. <groupId>io.spring.platform</groupId>
  133. <artifactId>platform-bom</artifactId>
  134. <version>${spring-platform.version}</version>
  135. <type>pom</type>
  136. <scope>import</scope>
  137. </dependency>
  138. <dependency>
  139. <groupId>org.springframework.cloud</groupId>
  140. <artifactId>spring-cloud-dependencies</artifactId>
  141. <version>${spring-cloud.version}</version>
  142. <type>pom</type>
  143. <scope>import</scope>
  144. </dependency>
  145. <dependency>
  146. <groupId>org.springframework.cloud</groupId>
  147. <artifactId>pigx-common-bom</artifactId>
  148. <version>${project.version}</version>
  149. <type>pom</type>
  150. <scope>import</scope>
  151. </dependency>
  152. <!--稳定版本,替代spring security bom内置-->
  153. <dependency>
  154. <groupId>org.springframework.security.oauth</groupId>
  155. <artifactId>spring-security-oauth2</artifactId>
  156. <version>${security.oauth.version}</version>
  157. </dependency>
  158. <dependency>
  159. <groupId>org.springframework.security.oauth.boot</groupId>
  160. <artifactId>spring-security-oauth2-autoconfigure</artifactId>
  161. <version>${security.oauth.auto.version}</version>
  162. </dependency>
  163. </dependencies>
  164. </dependencyManagement>
  165. <build>
  166. <finalName>${project.name}</finalName>
  167. <resources>
  168. <resource>
  169. <directory>src/main/resources</directory>
  170. <filtering>true</filtering>
  171. </resource>
  172. </resources>
  173. <pluginManagement>
  174. <plugins>
  175. <plugin>
  176. <groupId>org.springframework.boot</groupId>
  177. <artifactId>spring-boot-maven-plugin</artifactId>
  178. <version>${spring-boot.version}</version>
  179. <executions>
  180. <execution>
  181. <goals>
  182. <goal>repackage</goal>
  183. </goals>
  184. </execution>
  185. </executions>
  186. </plugin>
  187. <plugin>
  188. <groupId>com.spotify</groupId>
  189. <artifactId>docker-maven-plugin</artifactId>
  190. <version>${docker.plugin.version}</version>
  191. <configuration>
  192. <imageName>${registry.url}/${project.name}:0.0.1</imageName>
  193. <dockerHost>${docker.url}</dockerHost>
  194. <dockerDirectory>${project.basedir}</dockerDirectory>
  195. <resources>
  196. <resource>
  197. <targetPath>/</targetPath>
  198. <directory>${project.build.directory}</directory>
  199. <include>${project.build.finalName}.jar</include>
  200. </resource>
  201. </resources>
  202. <serverId>docker-hub</serverId>
  203. <registryUrl>https://index.docker.io/v1/</registryUrl>
  204. </configuration>
  205. </plugin>
  206. </plugins>
  207. </pluginManagement>
  208. <plugins>
  209. <plugin>
  210. <artifactId>maven-compiler-plugin</artifactId>
  211. <version>3.8.0</version>
  212. <configuration>
  213. <target>${maven.compiler.target}</target>
  214. <source>${maven.compiler.source}</source>
  215. <encoding>UTF-8</encoding>
  216. </configuration>
  217. </plugin>
  218. <plugin>
  219. <groupId>pl.project13.maven</groupId>
  220. <artifactId>git-commit-id-plugin</artifactId>
  221. <version>2.2.5</version>
  222. </plugin>
  223. </plugins>
  224. </build>
  225. <repositories>
  226. <repository>
  227. <id>aliyun</id>
  228. <name>aliyun</name>
  229. <url>https://maven.aliyun.com/repository/public</url>
  230. <releases>
  231. <enabled>true</enabled>
  232. </releases>
  233. <snapshots>
  234. <enabled>false</enabled>
  235. </snapshots>
  236. </repository>
  237. </repositories>
  238. </project>