pom.xml 8.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278
  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.0.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.0.7.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.0</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. <elastic-job-lite.version>2.1.5</elastic-job-lite.version>
  59. <mysql.connector.version>8.0.13</mysql.connector.version>
  60. <security.oauth.version>2.3.3.RELEASE</security.oauth.version>
  61. <jackson.modules>2.9.6</jackson.modules>
  62. <activiti.version>5.22.0</activiti.version>
  63. <docker.url>http://192.168.0.13:4243</docker.url>
  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. <!--jackson模块-->
  146. <dependency>
  147. <groupId>com.fasterxml.jackson.module</groupId>
  148. <artifactId>jackson-modules-java8</artifactId>
  149. <version>${jackson.modules}</version>
  150. <type>pom</type>
  151. <scope>import</scope>
  152. </dependency>
  153. </dependencies>
  154. </dependencyManagement>
  155. <build>
  156. <finalName>${project.name}</finalName>
  157. <resources>
  158. <resource>
  159. <directory>src/main/resources</directory>
  160. <filtering>true</filtering>
  161. </resource>
  162. </resources>
  163. <pluginManagement>
  164. <plugins>
  165. <plugin>
  166. <groupId>org.springframework.boot</groupId>
  167. <artifactId>spring-boot-maven-plugin</artifactId>
  168. <version>${spring-boot.version}</version>
  169. <configuration>
  170. <finalName>${project.build.finalName}</finalName>
  171. </configuration>
  172. <executions>
  173. <execution>
  174. <goals>
  175. <goal>repackage</goal>
  176. </goals>
  177. </execution>
  178. </executions>
  179. </plugin>
  180. <plugin>
  181. <groupId>com.spotify</groupId>
  182. <artifactId>docker-maven-plugin</artifactId>
  183. <version>0.4.12</version>
  184. <configuration>
  185. <imageName>${registry.url}/${project.name}:0.0.1</imageName>
  186. <dockerHost>${docker.url}</dockerHost>
  187. <dockerDirectory>${project.basedir}</dockerDirectory>
  188. <resources>
  189. <resource>
  190. <targetPath>/</targetPath>
  191. <directory>${project.build.directory}</directory>
  192. <include>${project.build.finalName}.jar</include>
  193. </resource>
  194. </resources>
  195. <serverId>docker-hub</serverId>
  196. <registryUrl>https://index.docker.io/v1/</registryUrl>
  197. </configuration>
  198. </plugin>
  199. </plugins>
  200. </pluginManagement>
  201. <plugins>
  202. <plugin>
  203. <artifactId>maven-compiler-plugin</artifactId>
  204. <version>3.8.0</version>
  205. <configuration>
  206. <target>${maven.compiler.target}</target>
  207. <source>${maven.compiler.source}</source>
  208. <encoding>UTF-8</encoding>
  209. </configuration>
  210. </plugin>
  211. <plugin>
  212. <groupId>pl.project13.maven</groupId>
  213. <artifactId>git-commit-id-plugin</artifactId>
  214. <version>2.2.5</version>
  215. </plugin>
  216. </plugins>
  217. </build>
  218. <repositories>
  219. <!--阿里云主仓库,代理了maven central和jcenter仓库-->
  220. <repository>
  221. <id>aliyun</id>
  222. <name>aliyun</name>
  223. <url>https://maven.aliyun.com/repository/public</url>
  224. <releases>
  225. <enabled>true</enabled>
  226. </releases>
  227. <snapshots>
  228. <enabled>false</enabled>
  229. </snapshots>
  230. </repository>
  231. <!--阿里云代理Spring 官方仓库-->
  232. <repository>
  233. <id>spring-milestones</id>
  234. <name>Spring Milestones</name>
  235. <url>https://maven.aliyun.com/repository/spring</url>
  236. <releases>
  237. <enabled>true</enabled>
  238. </releases>
  239. <snapshots>
  240. <enabled>false</enabled>
  241. </snapshots>
  242. </repository>
  243. <!--私服厂库-->
  244. <repository>
  245. <id>pigx</id>
  246. <name>pigx repository</name>
  247. <url>http://nexus.gitee.wang/repository/maven-public</url>
  248. <releases>
  249. <enabled>true</enabled>
  250. </releases>
  251. <snapshots>
  252. <enabled>false</enabled>
  253. </snapshots>
  254. </repository>
  255. </repositories>
  256. <pluginRepositories>
  257. <!--阿里云代理Spring 插件仓库-->
  258. <pluginRepository>
  259. <id>spring-plugin</id>
  260. <name>spring-plugin</name>
  261. <url>https://maven.aliyun.com/repository/spring-plugin</url>
  262. <releases>
  263. <enabled>true</enabled>
  264. </releases>
  265. <snapshots>
  266. <enabled>false</enabled>
  267. </snapshots>
  268. </pluginRepository>
  269. </pluginRepositories>
  270. </project>