pom.xml 6.7 KB

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