pom.xml 7.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220
  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.8.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. <ttl.version>2.6.1</ttl.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. <activiti.version>5.22.0</activiti.version>
  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. <!--jackson模块-->
  133. <dependency>
  134. <groupId>com.fasterxml.jackson.module</groupId>
  135. <artifactId>jackson-modules-java8</artifactId>
  136. <version>${jackson.modules}</version>
  137. <type>pom</type>
  138. <scope>import</scope>
  139. </dependency>
  140. </dependencies>
  141. </dependencyManagement>
  142. <build>
  143. <finalName>${project.name}</finalName>
  144. <pluginManagement>
  145. <plugins>
  146. <plugin>
  147. <groupId>org.springframework.boot</groupId>
  148. <artifactId>spring-boot-maven-plugin</artifactId>
  149. <version>${spring-boot.version}</version>
  150. <configuration>
  151. <finalName>${project.build.finalName}</finalName>
  152. </configuration>
  153. <executions>
  154. <execution>
  155. <goals>
  156. <goal>repackage</goal>
  157. </goals>
  158. </execution>
  159. </executions>
  160. </plugin>
  161. <plugin>
  162. <groupId>com.spotify</groupId>
  163. <artifactId>docker-maven-plugin</artifactId>
  164. <version>0.4.12</version>
  165. <configuration>
  166. <imageName>${registry.url}/${project.name}:0.0.1</imageName>
  167. <dockerHost>${docker.url}</dockerHost>
  168. <dockerDirectory>${project.basedir}</dockerDirectory>
  169. <resources>
  170. <resource>
  171. <targetPath>/</targetPath>
  172. <directory>${project.build.directory}</directory>
  173. <include>${project.build.finalName}.jar</include>
  174. </resource>
  175. </resources>
  176. <serverId>docker-hub</serverId>
  177. <registryUrl>https://index.docker.io/v1/</registryUrl>
  178. </configuration>
  179. </plugin>
  180. </plugins>
  181. </pluginManagement>
  182. <plugins>
  183. <plugin>
  184. <artifactId>maven-compiler-plugin</artifactId>
  185. <version>3.8.0</version>
  186. <configuration>
  187. <target>${maven.compiler.target}</target>
  188. <source>${maven.compiler.source}</source>
  189. <encoding>UTF-8</encoding>
  190. </configuration>
  191. </plugin>
  192. <plugin>
  193. <groupId>pl.project13.maven</groupId>
  194. <artifactId>git-commit-id-plugin</artifactId>
  195. <version>2.2.5</version>
  196. </plugin>
  197. </plugins>
  198. </build>
  199. <repositories>
  200. <!--使用阿里云镜像-->
  201. <repository>
  202. <id>aliyun</id>
  203. <name>aliyun</name>
  204. <url>http://maven.aliyun.com/nexus/content/groups/public/</url>
  205. </repository>
  206. <repository>
  207. <id>spring-milestones</id>
  208. <name>Spring Milestones</name>
  209. <url>https://repo.spring.io/libs-milestone</url>
  210. </repository>
  211. </repositories>
  212. </project>