pom.xml 8.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277
  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. <dependency>
  80. <groupId>org.springframework.boot</groupId>
  81. <artifactId>spring-boot-autoconfigure-processor</artifactId>
  82. <optional>true</optional>
  83. </dependency>
  84. <!--jasypt配置文件加解密-->
  85. <dependency>
  86. <groupId>com.github.ulisesbocchio</groupId>
  87. <artifactId>jasypt-spring-boot-starter</artifactId>
  88. <version>${jasypt.version}</version>
  89. </dependency>
  90. <!--监控-->
  91. <dependency>
  92. <groupId>org.springframework.boot</groupId>
  93. <artifactId>spring-boot-starter-actuator</artifactId>
  94. </dependency>
  95. <!--监控客户端-->
  96. <dependency>
  97. <groupId>de.codecentric</groupId>
  98. <artifactId>spring-boot-admin-starter-client</artifactId>
  99. <version>${spring-boot-admin.version}</version>
  100. </dependency>
  101. <!--断路器依赖-->
  102. <dependency>
  103. <groupId>org.springframework.cloud</groupId>
  104. <artifactId>spring-cloud-starter-netflix-hystrix</artifactId>
  105. </dependency>
  106. <!--Lombok-->
  107. <dependency>
  108. <groupId>org.projectlombok</groupId>
  109. <artifactId>lombok</artifactId>
  110. <scope>provided</scope>
  111. </dependency>
  112. <!--测试依赖-->
  113. <dependency>
  114. <groupId>org.springframework.boot</groupId>
  115. <artifactId>spring-boot-starter-test</artifactId>
  116. <scope>test</scope>
  117. </dependency>
  118. </dependencies>
  119. <modules>
  120. <module>pigx-eureka</module>
  121. <module>pigx-config</module>
  122. <module>pigx-gateway</module>
  123. <module>pigx-auth</module>
  124. <module>pigx-upms</module>
  125. <module>pigx-common</module>
  126. <module>pigx-visual</module>
  127. </modules>
  128. <dependencyManagement>
  129. <dependencies>
  130. <dependency>
  131. <groupId>org.springframework.boot</groupId>
  132. <artifactId>spring-boot-dependencies</artifactId>
  133. <version>${spring-boot.version}</version>
  134. <type>pom</type>
  135. <scope>import</scope>
  136. </dependency>
  137. <dependency>
  138. <groupId>io.spring.platform</groupId>
  139. <artifactId>platform-bom</artifactId>
  140. <version>${spring-platform.version}</version>
  141. <type>pom</type>
  142. <scope>import</scope>
  143. </dependency>
  144. <dependency>
  145. <groupId>org.springframework.cloud</groupId>
  146. <artifactId>spring-cloud-dependencies</artifactId>
  147. <version>${spring-cloud.version}</version>
  148. <type>pom</type>
  149. <scope>import</scope>
  150. </dependency>
  151. <!--jackson模块-->
  152. <dependency>
  153. <groupId>com.fasterxml.jackson.module</groupId>
  154. <artifactId>jackson-modules-java8</artifactId>
  155. <version>${jackson.modules}</version>
  156. <type>pom</type>
  157. <scope>import</scope>
  158. </dependency>
  159. </dependencies>
  160. </dependencyManagement>
  161. <build>
  162. <finalName>${project.name}</finalName>
  163. <resources>
  164. <resource>
  165. <directory>src/main/resources</directory>
  166. <filtering>true</filtering>
  167. </resource>
  168. </resources>
  169. <pluginManagement>
  170. <plugins>
  171. <plugin>
  172. <groupId>org.springframework.boot</groupId>
  173. <artifactId>spring-boot-maven-plugin</artifactId>
  174. <version>${spring-boot.version}</version>
  175. <configuration>
  176. <finalName>${project.build.finalName}</finalName>
  177. </configuration>
  178. </plugin>
  179. <plugin>
  180. <groupId>com.spotify</groupId>
  181. <artifactId>docker-maven-plugin</artifactId>
  182. <version>0.4.12</version>
  183. <configuration>
  184. <imageName>${registry.url}/${project.name}:0.0.1</imageName>
  185. <dockerHost>${docker.url}</dockerHost>
  186. <dockerDirectory>${project.basedir}</dockerDirectory>
  187. <resources>
  188. <resource>
  189. <targetPath>/</targetPath>
  190. <directory>${project.build.directory}</directory>
  191. <include>${project.build.finalName}.jar</include>
  192. </resource>
  193. </resources>
  194. <serverId>docker-hub</serverId>
  195. <registryUrl>https://index.docker.io/v1/</registryUrl>
  196. </configuration>
  197. </plugin>
  198. </plugins>
  199. </pluginManagement>
  200. <plugins>
  201. <plugin>
  202. <artifactId>maven-compiler-plugin</artifactId>
  203. <version>3.8.0</version>
  204. <configuration>
  205. <target>${maven.compiler.target}</target>
  206. <source>${maven.compiler.source}</source>
  207. <encoding>UTF-8</encoding>
  208. </configuration>
  209. </plugin>
  210. <plugin>
  211. <groupId>pl.project13.maven</groupId>
  212. <artifactId>git-commit-id-plugin</artifactId>
  213. <version>2.2.5</version>
  214. </plugin>
  215. </plugins>
  216. </build>
  217. <repositories>
  218. <!--阿里云主仓库,代理了maven central和jcenter仓库-->
  219. <repository>
  220. <id>aliyun</id>
  221. <name>aliyun</name>
  222. <url>https://maven.aliyun.com/repository/public</url>
  223. <releases>
  224. <enabled>true</enabled>
  225. </releases>
  226. <snapshots>
  227. <enabled>false</enabled>
  228. </snapshots>
  229. </repository>
  230. <!--阿里云代理Spring 官方仓库-->
  231. <repository>
  232. <id>spring-milestones</id>
  233. <name>Spring Milestones</name>
  234. <url>https://maven.aliyun.com/repository/spring</url>
  235. <releases>
  236. <enabled>true</enabled>
  237. </releases>
  238. <snapshots>
  239. <enabled>false</enabled>
  240. </snapshots>
  241. </repository>
  242. <!--私服厂库-->
  243. <repository>
  244. <id>pigx</id>
  245. <name>pigx repository</name>
  246. <url>http://nexus.gitee.wang/repository/maven-public</url>
  247. <releases>
  248. <enabled>true</enabled>
  249. </releases>
  250. <snapshots>
  251. <enabled>false</enabled>
  252. </snapshots>
  253. </repository>
  254. </repositories>
  255. <pluginRepositories>
  256. <!--阿里云代理Spring 插件仓库-->
  257. <pluginRepository>
  258. <id>spring-plugin</id>
  259. <name>spring-plugin</name>
  260. <url>https://maven.aliyun.com/repository/spring-plugin</url>
  261. <releases>
  262. <enabled>true</enabled>
  263. </releases>
  264. <snapshots>
  265. <enabled>false</enabled>
  266. </snapshots>
  267. </pluginRepository>
  268. </pluginRepositories>
  269. </project>