pom.xml 6.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211
  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. <elastic-job-lite.version>2.1.5</elastic-job-lite.version>
  48. <security.oauth.version>2.3.3.RELEASE</security.oauth.version>
  49. <jackson.modules>2.9.6</jackson.modules>
  50. <docker.url>http://192.168.0.13:4243</docker.url>
  51. <registry.url>192.168.0.13:5000</registry.url>
  52. </properties>
  53. <dependencies>
  54. <!--eureka 客户端-->
  55. <dependency>
  56. <groupId>org.springframework.cloud</groupId>
  57. <artifactId>spring-cloud-starter-netflix-eureka-client</artifactId>
  58. </dependency>
  59. <!--配置文件处理器-->
  60. <dependency>
  61. <groupId>org.springframework.boot</groupId>
  62. <artifactId>spring-boot-configuration-processor</artifactId>
  63. <optional>true</optional>
  64. </dependency>
  65. <dependency>
  66. <groupId>com.github.ulisesbocchio</groupId>
  67. <artifactId>jasypt-spring-boot-starter</artifactId>
  68. <version>${jasypt.version}</version>
  69. </dependency>
  70. <!--监控-->
  71. <dependency>
  72. <groupId>org.springframework.boot</groupId>
  73. <artifactId>spring-boot-starter-actuator</artifactId>
  74. </dependency>
  75. <!--监控客户端-->
  76. <dependency>
  77. <groupId>de.codecentric</groupId>
  78. <artifactId>spring-boot-admin-starter-client</artifactId>
  79. <version>${monitor.version}</version>
  80. </dependency>
  81. <!--断路器依赖-->
  82. <dependency>
  83. <groupId>org.springframework.cloud</groupId>
  84. <artifactId>spring-cloud-starter-netflix-hystrix</artifactId>
  85. </dependency>
  86. <!--Lombok-->
  87. <dependency>
  88. <groupId>org.projectlombok</groupId>
  89. <artifactId>lombok</artifactId>
  90. <scope>provided</scope>
  91. </dependency>
  92. <!--测试依赖-->
  93. <dependency>
  94. <groupId>org.springframework.boot</groupId>
  95. <artifactId>spring-boot-starter-test</artifactId>
  96. <scope>test</scope>
  97. </dependency>
  98. </dependencies>
  99. <modules>
  100. <module>pigx-eureka</module>
  101. <module>pigx-config</module>
  102. <module>pigx-gateway</module>
  103. <module>pigx-auth</module>
  104. <module>pigx-upms</module>
  105. <module>pigx-common</module>
  106. <module>pigx-visual</module>
  107. </modules>
  108. <dependencyManagement>
  109. <dependencies>
  110. <dependency>
  111. <groupId>org.springframework.boot</groupId>
  112. <artifactId>spring-boot-dependencies</artifactId>
  113. <version>${spring-boot.version}</version>
  114. <type>pom</type>
  115. <scope>import</scope>
  116. </dependency>
  117. <dependency>
  118. <groupId>io.spring.platform</groupId>
  119. <artifactId>platform-bom</artifactId>
  120. <version>${spring-platform.version}</version>
  121. <type>pom</type>
  122. <scope>import</scope>
  123. </dependency>
  124. <dependency>
  125. <groupId>org.springframework.cloud</groupId>
  126. <artifactId>spring-cloud-dependencies</artifactId>
  127. <version>${spring-cloud.version}</version>
  128. <type>pom</type>
  129. <scope>import</scope>
  130. </dependency>
  131. </dependencies>
  132. </dependencyManagement>
  133. <build>
  134. <finalName>${project.name}</finalName>
  135. <pluginManagement>
  136. <plugins>
  137. <plugin>
  138. <groupId>org.springframework.boot</groupId>
  139. <artifactId>spring-boot-maven-plugin</artifactId>
  140. <version>${spring-boot.version}</version>
  141. <configuration>
  142. <finalName>${project.build.finalName}</finalName>
  143. </configuration>
  144. <executions>
  145. <execution>
  146. <goals>
  147. <goal>repackage</goal>
  148. </goals>
  149. </execution>
  150. </executions>
  151. </plugin>
  152. <plugin>
  153. <groupId>com.spotify</groupId>
  154. <artifactId>docker-maven-plugin</artifactId>
  155. <version>0.4.12</version>
  156. <configuration>
  157. <imageName>${registry.url}/${project.name}:0.0.1</imageName>
  158. <dockerHost>${docker.url}</dockerHost>
  159. <dockerDirectory>${project.basedir}</dockerDirectory>
  160. <resources>
  161. <resource>
  162. <targetPath>/</targetPath>
  163. <directory>${project.build.directory}</directory>
  164. <include>${project.build.finalName}.jar</include>
  165. </resource>
  166. </resources>
  167. <serverId>docker-hub</serverId>
  168. <registryUrl>https://index.docker.io/v1/</registryUrl>
  169. </configuration>
  170. </plugin>
  171. </plugins>
  172. </pluginManagement>
  173. <plugins>
  174. <plugin>
  175. <artifactId>maven-compiler-plugin</artifactId>
  176. <version>3.8.0</version>
  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. <version>2.2.5</version>
  187. </plugin>
  188. </plugins>
  189. </build>
  190. <repositories>
  191. <!--使用阿里云镜像-->
  192. <repository>
  193. <id>aliyun</id>
  194. <name>aliyun</name>
  195. <url>http://maven.aliyun.com/nexus/content/groups/public/</url>
  196. </repository>
  197. <repository>
  198. <id>spring-milestones</id>
  199. <name>Spring Milestones</name>
  200. <url>https://repo.spring.io/libs-milestone</url>
  201. </repository>
  202. </repositories>
  203. </project>