pom.xml 6.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218
  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>1.7.0</version>
  26. <name>${project.artifactId}</name>
  27. <packaging>pom</packaging>
  28. <url>https://www.pig4cloud.com</url>
  29. <properties>
  30. <spring-boot.version>2.0.6.RELEASE</spring-boot.version>
  31. <spring-cloud.version>Finchley.SR2</spring-cloud.version>
  32. <spring-platform.version>Cairo-SR3</spring-platform.version>
  33. <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  34. <maven.compiler.source>1.8</maven.compiler.source>
  35. <maven.compiler.target>1.8</maven.compiler.target>
  36. <monitor.version>2.0.4</monitor.version>
  37. <hutool.version>4.1.13</hutool.version>
  38. <mbp.boot.version>2.3</mbp.boot.version>
  39. <kaptcha.version>0.0.9</kaptcha.version>
  40. <swagger.version>2.9.2</swagger.version>
  41. <elastic-job.version>2.0.0</elastic-job.version>
  42. <curator.version>2.10.0</curator.version>
  43. <velocity.version>1.7</velocity.version>
  44. <lcn.version>4.1.0</lcn.version>
  45. <jasypt.version>2.1.0</jasypt.version>
  46. <elastic-job-lite.version>2.1.5</elastic-job-lite.version>
  47. <security.oauth.version>2.3.3.RELEASE</security.oauth.version>
  48. <jackson.modules>2.9.6</jackson.modules>
  49. <docker.url>http://192.168.0.13:4243</docker.url>
  50. <registry.url>192.168.0.13:5000</registry.url>
  51. </properties>
  52. <dependencies>
  53. <!--eureka 客户端-->
  54. <dependency>
  55. <groupId>org.springframework.cloud</groupId>
  56. <artifactId>spring-cloud-starter-netflix-eureka-client</artifactId>
  57. </dependency>
  58. <!--配置文件处理器-->
  59. <dependency>
  60. <groupId>org.springframework.boot</groupId>
  61. <artifactId>spring-boot-configuration-processor</artifactId>
  62. <optional>true</optional>
  63. </dependency>
  64. <dependency>
  65. <groupId>com.github.ulisesbocchio</groupId>
  66. <artifactId>jasypt-spring-boot-starter</artifactId>
  67. <version>${jasypt.version}</version>
  68. </dependency>
  69. <!--监控-->
  70. <dependency>
  71. <groupId>org.springframework.boot</groupId>
  72. <artifactId>spring-boot-starter-actuator</artifactId>
  73. </dependency>
  74. <!--监控客户端-->
  75. <dependency>
  76. <groupId>de.codecentric</groupId>
  77. <artifactId>spring-boot-admin-starter-client</artifactId>
  78. <version>${monitor.version}</version>
  79. </dependency>
  80. <!--断路器依赖-->
  81. <dependency>
  82. <groupId>org.springframework.cloud</groupId>
  83. <artifactId>spring-cloud-starter-netflix-hystrix</artifactId>
  84. </dependency>
  85. <!--Lombok-->
  86. <dependency>
  87. <groupId>org.projectlombok</groupId>
  88. <artifactId>lombok</artifactId>
  89. <scope>provided</scope>
  90. </dependency>
  91. <!--测试依赖-->
  92. <dependency>
  93. <groupId>org.springframework.boot</groupId>
  94. <artifactId>spring-boot-starter-test</artifactId>
  95. <scope>test</scope>
  96. </dependency>
  97. </dependencies>
  98. <modules>
  99. <module>pigx-eureka</module>
  100. <module>pigx-config</module>
  101. <module>pigx-gateway</module>
  102. <module>pigx-auth</module>
  103. <module>pigx-upms</module>
  104. <module>pigx-common</module>
  105. <module>pigx-visual</module>
  106. </modules>
  107. <dependencyManagement>
  108. <dependencies>
  109. <dependency>
  110. <groupId>org.springframework.boot</groupId>
  111. <artifactId>spring-boot-dependencies</artifactId>
  112. <version>${spring-boot.version}</version>
  113. <type>pom</type>
  114. <scope>import</scope>
  115. </dependency>
  116. <dependency>
  117. <groupId>io.spring.platform</groupId>
  118. <artifactId>platform-bom</artifactId>
  119. <version>${spring-platform.version}</version>
  120. <type>pom</type>
  121. <scope>import</scope>
  122. </dependency>
  123. <dependency>
  124. <groupId>org.springframework.cloud</groupId>
  125. <artifactId>spring-cloud-dependencies</artifactId>
  126. <version>${spring-cloud.version}</version>
  127. <type>pom</type>
  128. <scope>import</scope>
  129. </dependency>
  130. <!--jackson模块-->
  131. <dependency>
  132. <groupId>com.fasterxml.jackson.module</groupId>
  133. <artifactId>jackson-modules-java8</artifactId>
  134. <version>${jackson.modules}</version>
  135. <type>pom</type>
  136. <scope>import</scope>
  137. </dependency>
  138. </dependencies>
  139. </dependencyManagement>
  140. <build>
  141. <finalName>${project.name}</finalName>
  142. <pluginManagement>
  143. <plugins>
  144. <plugin>
  145. <groupId>org.springframework.boot</groupId>
  146. <artifactId>spring-boot-maven-plugin</artifactId>
  147. <version>${spring-boot.version}</version>
  148. <configuration>
  149. <finalName>${project.build.finalName}</finalName>
  150. </configuration>
  151. <executions>
  152. <execution>
  153. <goals>
  154. <goal>repackage</goal>
  155. </goals>
  156. </execution>
  157. </executions>
  158. </plugin>
  159. <plugin>
  160. <groupId>com.spotify</groupId>
  161. <artifactId>docker-maven-plugin</artifactId>
  162. <version>0.4.12</version>
  163. <configuration>
  164. <imageName>${registry.url}/${project.name}:0.0.1</imageName>
  165. <dockerHost>${docker.url}</dockerHost>
  166. <dockerDirectory>${project.basedir}</dockerDirectory>
  167. <resources>
  168. <resource>
  169. <targetPath>/</targetPath>
  170. <directory>${project.build.directory}</directory>
  171. <include>${project.build.finalName}.jar</include>
  172. </resource>
  173. </resources>
  174. <serverId>docker-hub</serverId>
  175. <registryUrl>https://index.docker.io/v1/</registryUrl>
  176. </configuration>
  177. </plugin>
  178. </plugins>
  179. </pluginManagement>
  180. <plugins>
  181. <plugin>
  182. <artifactId>maven-compiler-plugin</artifactId>
  183. <version>3.8.0</version>
  184. <configuration>
  185. <target>${maven.compiler.target}</target>
  186. <source>${maven.compiler.source}</source>
  187. <encoding>UTF-8</encoding>
  188. </configuration>
  189. </plugin>
  190. <plugin>
  191. <groupId>pl.project13.maven</groupId>
  192. <artifactId>git-commit-id-plugin</artifactId>
  193. <version>2.2.5</version>
  194. </plugin>
  195. </plugins>
  196. </build>
  197. <repositories>
  198. <!--使用阿里云镜像-->
  199. <repository>
  200. <id>aliyun</id>
  201. <name>aliyun</name>
  202. <url>http://maven.aliyun.com/nexus/content/groups/public/</url>
  203. </repository>
  204. <repository>
  205. <id>spring-milestones</id>
  206. <name>Spring Milestones</name>
  207. <url>https://repo.spring.io/libs-milestone</url>
  208. </repository>
  209. </repositories>
  210. </project>