pom.xml 19 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <project xmlns="http://maven.apache.org/POM/4.0.0"
  3. xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  4. xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
  5. <modelVersion>4.0.0</modelVersion>
  6. <parent>
  7. <groupId>org.springframework.boot</groupId>
  8. <artifactId>spring-boot-dependencies</artifactId>
  9. <version>3.3.0</version>
  10. <relativePath/>
  11. </parent>
  12. <groupId>com.github.microservice</groupId>
  13. <artifactId>MSConfigure</artifactId>
  14. <version>1.0.0-SNAPSHOT</version>
  15. <packaging>pom</packaging>
  16. <properties>
  17. <!-- 项目编码 -->
  18. <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  19. <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
  20. <!--JDK版本-->
  21. <java.version>17</java.version>
  22. <!-- spring boot -->
  23. <spring-boot.version>3.3.0</spring-boot.version>
  24. <!-- spring mvc -->
  25. <spring-mvc.version>6.1.8</spring-mvc.version>
  26. <spring-integration-core.version>6.3.0</spring-integration-core.version>
  27. <!-- spring cloud -->
  28. <spring-cloud-dependencies.version>2023.0.1</spring-cloud-dependencies.version>
  29. <spring-cloud.version>4.1.2</spring-cloud.version>
  30. <spring-cloud-starter-stream.version>4.1.1</spring-cloud-starter-stream.version>
  31. <spring-cloud-bus.version>4.1.1</spring-cloud-bus.version>
  32. <spring-cloud-starter-config.version>4.1.1</spring-cloud-starter-config.version>
  33. <spring-cloud-starter-consul-discovery.version>4.1.1</spring-cloud-starter-consul-discovery.version>
  34. <spring-cloud-gateway.version>4.1.2</spring-cloud-gateway.version>
  35. <netflix-hystrix.version>2.2.10.RELEASE</netflix-hystrix.version>
  36. <netflix-ribbon.version>2.2.10.RELEASE</netflix-ribbon.version>
  37. <!-- jpa -->
  38. <spring-boot-starter-data-jpa.version>3.3.0</spring-boot-starter-data-jpa.version>
  39. <spring-data-jpa.version>3.3.0</spring-data-jpa.version>
  40. <!-- 其他库 -->
  41. <groovy.version>4.0.21</groovy.version>
  42. <ehcache.version>3.10.8</ehcache.version>
  43. <caffeine.version>3.1.8</caffeine.version>
  44. <lombok.version>1.18.32</lombok.version>
  45. <httpclient.version>4.5.14</httpclient.version>
  46. <commons-lang3.version>3.14.0</commons-lang3.version>
  47. <junit.version>4.13.2</junit.version>
  48. <javax.servlet.jsp-api.version>2.3.3</javax.servlet.jsp-api.version>
  49. <servlets-ssi.version>5.0.16</servlets-ssi.version>
  50. <javax.servlet-api.version>4.0.1</javax.servlet-api.version>
  51. <commons-fileupload.version>1.5</commons-fileupload.version>
  52. <jstl.version>1.2</jstl.version>
  53. <gson.version>2.11.0</gson.version>
  54. <jackson.version>2.17.1</jackson.version>
  55. <commons-beanutils.version>1.9.4</commons-beanutils.version>
  56. <hibernate.version>6.5.2.Final</hibernate.version>
  57. <jaxb-api.version>2.3.1</jaxb-api.version>
  58. <javax.annotation-api.version>1.3.2</javax.annotation-api.version>
  59. <javassist.version>3.30.2-GA</javassist.version>
  60. <!--链路追踪-->
  61. <zipkin.version>2.2.8.RELEASE</zipkin.version>
  62. <!-- 插件 -->
  63. <maven-compiler-plugin.version>3.13.0</maven-compiler-plugin.version>
  64. <maven-war-plugin.version>3.4.0</maven-war-plugin.version>
  65. <maven-surefire-plugin.version>3.2.5</maven-surefire-plugin.version>
  66. <!--项目版本-->
  67. <Project.version>1.0.0-SNAPSHOT</Project.version>
  68. <Project.groupId>com.github.microservice</Project.groupId>
  69. <!-- 注册发现服务端口 -->
  70. <ApplicationCenter.port>8500</ApplicationCenter.port>
  71. <!-- 网关端口-->
  72. <GetWayCenter.port>80</GetWayCenter.port>
  73. <!--开放平台-->
  74. <OpenApi.port>7900</OpenApi.port>
  75. <!-- 配置中心 -->
  76. <ConfigCenter.port>8000</ConfigCenter.port>
  77. <!--用户中心-->
  78. <UserCenter.port>8100</UserCenter.port>
  79. <!--推送中心-->
  80. <PushCenter.port>8300</PushCenter.port>
  81. <!--文件中心-->
  82. <FileCenter.port>8400</FileCenter.port>
  83. <!--机器人验证码端口-->
  84. <RobotFirewall.port>8600</RobotFirewall.port>
  85. <!--权限中心-->
  86. <AuthCenter.port>8700</AuthCenter.port>
  87. <!--MQ中心-->
  88. <MQCenter.port>8800</MQCenter.port>
  89. <!--支付中心-->
  90. <PayCenter.port>8900</PayCenter.port>
  91. </properties>
  92. <profiles>
  93. <!--开发环境-->
  94. <profile>
  95. <id>dev</id>
  96. <activation>
  97. <activeByDefault>true</activeByDefault>
  98. </activation>
  99. <properties>
  100. <spring.profiles.active>dev</spring.profiles.active>
  101. <ApplicationCenter.url>192.168.31.132:8500,192.168.31.132:8501,192.168.31.132:8502
  102. </ApplicationCenter.url>
  103. <ConfigCenter.url>http://127.0.0.1:${ConfigCenter.port}</ConfigCenter.url>
  104. <Kafka.brokers>192.168.31.132:9092</Kafka.brokers>
  105. <Zipkin.baseUrl>http://192.168.110.241:9411</Zipkin.baseUrl>
  106. <Zipkin.sampler.probability>0.01</Zipkin.sampler.probability>
  107. </properties>
  108. </profile>
  109. <!--测试环境-->
  110. <profile>
  111. <id>test</id>
  112. <properties>
  113. <spring.profiles.active>test</spring.profiles.active>
  114. <ApplicationCenter.url>192.168.63.132</ApplicationCenter.url>
  115. <ConfigCenter.url>http://192.168.63.132:${ConfigCenter.port}</ConfigCenter.url>
  116. <Kafka.brokers>192.168.63.132:9092,192.168.63.132:9093,192.168.63.132:9094</Kafka.brokers>
  117. <Zipkin.baseUrl>http://192.168.63.132:9411</Zipkin.baseUrl>
  118. <Zipkin.sampler.probability>0.01</Zipkin.sampler.probability>
  119. </properties>
  120. </profile>
  121. <!--生产环境-->
  122. <profile>
  123. <id>prod</id>
  124. <properties>
  125. <spring.profiles.active>prod</spring.profiles.active>
  126. <ApplicationCenter.url>172.24.50.47:8500,172.24.50.47:8501,172.24.50.47:8502</ApplicationCenter.url>
  127. <ConfigCenter.url>http://172.24.50.47:${ConfigCenter.port}</ConfigCenter.url>
  128. <Kafka.brokers>172.24.50.52:9092</Kafka.brokers>
  129. <Zipkin.baseUrl>http://172.24.50.52:9411</Zipkin.baseUrl>
  130. <Zipkin.sampler.probability>0.01</Zipkin.sampler.probability>
  131. </properties>
  132. </profile>
  133. </profiles>
  134. <!--依赖-->
  135. <dependencies>
  136. <!-- spring boot -->
  137. <!--tomcat运行环境-->
  138. <dependency>
  139. <groupId>org.springframework.boot</groupId>
  140. <artifactId>spring-boot-starter-tomcat</artifactId>
  141. <version>${spring-boot.version}</version>
  142. </dependency>
  143. <!--自带web容器-->
  144. <dependency>
  145. <groupId>org.springframework.boot</groupId>
  146. <artifactId>spring-boot-starter-web</artifactId>
  147. <version>${spring-boot.version}</version>
  148. </dependency>
  149. <dependency>
  150. <groupId>org.springframework.boot</groupId>
  151. <artifactId>spring-boot-configuration-processor</artifactId>
  152. <version>${spring-boot.version}</version>
  153. <optional>true</optional>
  154. </dependency>
  155. <!--测试-->
  156. <dependency>
  157. <groupId>org.springframework.boot</groupId>
  158. <artifactId>spring-boot-starter-test</artifactId>
  159. <version>${spring-boot.version}</version>
  160. <scope>test</scope>
  161. </dependency>
  162. <!-- gson -->
  163. <dependency>
  164. <groupId>com.google.code.gson</groupId>
  165. <artifactId>gson</artifactId>
  166. <version>${gson.version}</version>
  167. </dependency>
  168. <!--Spring mvc-->
  169. <dependency>
  170. <groupId>org.springframework</groupId>
  171. <artifactId>spring-orm</artifactId>
  172. <version>${spring-mvc.version}</version>
  173. </dependency>
  174. <dependency>
  175. <groupId>org.springframework</groupId>
  176. <artifactId>spring-core</artifactId>
  177. <version>${spring-mvc.version}</version>
  178. </dependency>
  179. <dependency>
  180. <groupId>org.springframework</groupId>
  181. <artifactId>spring-aop</artifactId>
  182. <version>${spring-mvc.version}</version>
  183. </dependency>
  184. <dependency>
  185. <groupId>org.springframework</groupId>
  186. <artifactId>spring-tx</artifactId>
  187. <version>${spring-mvc.version}</version>
  188. </dependency>
  189. <dependency>
  190. <groupId>org.springframework</groupId>
  191. <artifactId>spring-context</artifactId>
  192. <version>${spring-mvc.version}</version>
  193. </dependency>
  194. <dependency>
  195. <groupId>org.springframework</groupId>
  196. <artifactId>spring-context-support</artifactId>
  197. <version>${spring-mvc.version}</version>
  198. </dependency>
  199. <dependency>
  200. <groupId>org.springframework</groupId>
  201. <artifactId>spring-webmvc</artifactId>
  202. <version>${spring-mvc.version}</version>
  203. </dependency>
  204. <dependency>
  205. <groupId>org.springframework</groupId>
  206. <artifactId>spring-aspects</artifactId>
  207. <version>${spring-mvc.version}</version>
  208. </dependency>
  209. <dependency>
  210. <groupId>org.springframework</groupId>
  211. <artifactId>spring-beans</artifactId>
  212. <version>${spring-mvc.version}</version>
  213. </dependency>
  214. <dependency>
  215. <groupId>org.springframework</groupId>
  216. <artifactId>spring-expression</artifactId>
  217. <version>${spring-mvc.version}</version>
  218. </dependency>
  219. <dependency>
  220. <groupId>org.springframework</groupId>
  221. <artifactId>spring-oxm</artifactId>
  222. <version>${spring-mvc.version}</version>
  223. </dependency>
  224. <dependency>
  225. <groupId>org.springframework</groupId>
  226. <artifactId>spring-messaging</artifactId>
  227. <version>${spring-mvc.version}</version>
  228. </dependency>
  229. <dependency>
  230. <groupId>org.springframework</groupId>
  231. <artifactId>spring-web</artifactId>
  232. <version>${spring-mvc.version}</version>
  233. </dependency>
  234. <!-- 依赖包 -->
  235. <dependency>
  236. <groupId>javax.servlet</groupId>
  237. <artifactId>jstl</artifactId>
  238. <version>${jstl.version}</version>
  239. </dependency>
  240. <dependency>
  241. <groupId>commons-fileupload</groupId>
  242. <artifactId>commons-fileupload</artifactId>
  243. <version>${commons-fileupload.version}</version>
  244. </dependency>
  245. <dependency>
  246. <groupId>javax.servlet</groupId>
  247. <artifactId>javax.servlet-api</artifactId>
  248. <version>${javax.servlet-api.version}</version>
  249. </dependency>
  250. <dependency>
  251. <groupId>tomcat</groupId>
  252. <artifactId>servlets-ssi</artifactId>
  253. <version>${servlets-ssi.version}</version>
  254. </dependency>
  255. <dependency>
  256. <groupId>javax.servlet.jsp</groupId>
  257. <artifactId>javax.servlet.jsp-api</artifactId>
  258. <version>${javax.servlet.jsp-api.version}</version>
  259. </dependency>
  260. <dependency>
  261. <groupId>junit</groupId>
  262. <artifactId>junit</artifactId>
  263. <version>${junit.version}</version>
  264. </dependency>
  265. <dependency>
  266. <groupId>org.apache.commons</groupId>
  267. <artifactId>commons-lang3</artifactId>
  268. <version>${commons-lang3.version}</version>
  269. </dependency>
  270. <dependency>
  271. <groupId>org.apache.httpcomponents</groupId>
  272. <artifactId>httpclient</artifactId>
  273. <version>${httpclient.version}</version>
  274. </dependency>
  275. <dependency>
  276. <groupId>org.apache.groovy</groupId>
  277. <artifactId>groovy-all</artifactId>
  278. <version>${groovy.version}</version>
  279. <type>pom</type>
  280. </dependency>
  281. <!-- Get Set 需要IDE 安装 lombok plugin -->
  282. <dependency>
  283. <groupId>org.projectlombok</groupId>
  284. <artifactId>lombok</artifactId>
  285. <version>${lombok.version}</version>
  286. </dependency>
  287. <dependency>
  288. <groupId>javax.annotation</groupId>
  289. <artifactId>javax.annotation-api</artifactId>
  290. <version>${javax.annotation-api.version}</version>
  291. </dependency>
  292. <dependency>
  293. <groupId>org.javassist</groupId>
  294. <artifactId>javassist</artifactId>
  295. <version>${javassist.version}</version>
  296. </dependency>
  297. </dependencies>
  298. <!--Spring Cloud-->
  299. <dependencyManagement>
  300. <dependencies>
  301. <dependency>
  302. <groupId>org.springframework.cloud</groupId>
  303. <artifactId>spring-cloud-dependencies</artifactId>
  304. <version>${spring-cloud-dependencies.version}</version>
  305. <type>pom</type>
  306. <scope>import</scope>
  307. </dependency>
  308. </dependencies>
  309. </dependencyManagement>
  310. <repositories>
  311. <!-- 阿里-->
  312. <repository>
  313. <id>nexus</id>
  314. <name>nexus</name>
  315. <url>https://maven.aliyun.com/nexus/content/groups/public</url>
  316. <releases>
  317. <enabled>true</enabled>
  318. </releases>
  319. <snapshots>
  320. <enabled>true</enabled>
  321. <updatePolicy>always</updatePolicy>
  322. </snapshots>
  323. </repository>
  324. <repository>
  325. <id>spring-snapshots</id>
  326. <name>Spring Snapshots</name>
  327. <url>https://repo.spring.io/snapshot</url>
  328. <snapshots>
  329. <enabled>true</enabled>
  330. </snapshots>
  331. </repository>
  332. <repository>
  333. <id>spring-milestones</id>
  334. <name>Spring Milestones</name>
  335. <url>https://repo.spring.io/milestone</url>
  336. <snapshots>
  337. <enabled>false</enabled>
  338. </snapshots>
  339. </repository>
  340. </repositories>
  341. <pluginRepositories>
  342. <pluginRepository>
  343. <id>groovy-plugins-release</id>
  344. <url>https://groovy.jfrog.io/artifactory/plugins-release</url>
  345. </pluginRepository>
  346. </pluginRepositories>
  347. <!--构建-->
  348. <build>
  349. <plugins>
  350. <!--支持yaml读取pom的参数-->
  351. <plugin>
  352. <groupId>org.apache.maven.plugins</groupId>
  353. <artifactId>maven-resources-plugin</artifactId>
  354. <version>3.3.1</version>
  355. <configuration>
  356. <encoding>UTF-8</encoding>
  357. <delimiters>
  358. <delimiter>@</delimiter>
  359. </delimiters>
  360. <useDefaultDelimiters>true</useDefaultDelimiters>
  361. <nonFilteredFileExtensions>
  362. <nonFilteredFileExtension>xlsx</nonFilteredFileExtension>
  363. <nonFilteredFileExtension>xls</nonFilteredFileExtension>
  364. <nonFilteredFileExtension>zip</nonFilteredFileExtension>
  365. <nonFilteredFileExtension>cer</nonFilteredFileExtension>
  366. <nonFilteredFileExtension>pfx</nonFilteredFileExtension>
  367. <nonFilteredFileExtension>py</nonFilteredFileExtension>
  368. <nonFilteredFileExtension>keystore</nonFilteredFileExtension>
  369. </nonFilteredFileExtensions>
  370. </configuration>
  371. </plugin>
  372. <plugin>
  373. <groupId>org.springframework.boot</groupId>
  374. <artifactId>spring-boot-maven-plugin</artifactId>
  375. <version>${spring-boot.version}</version>
  376. </plugin>
  377. <!-- groovy -->
  378. <plugin>
  379. <groupId>org.codehaus.gmavenplus</groupId>
  380. <artifactId>gmavenplus-plugin</artifactId>
  381. <version>2.1.0</version>
  382. <executions>
  383. <execution>
  384. <goals>
  385. <goal>addSources</goal>
  386. <goal>addTestSources</goal>
  387. <goal>generateStubs</goal>
  388. <goal>compile</goal>
  389. <goal>generateTestStubs</goal>
  390. <goal>compileTests</goal>
  391. <goal>removeStubs</goal>
  392. <goal>removeTestStubs</goal>
  393. </goals>
  394. </execution>
  395. </executions>
  396. <configuration>
  397. <sources>
  398. <source>
  399. <directory>${project.basedir}/src/main/java</directory>
  400. <includes>
  401. <include>**/*.groovy</include>
  402. </includes>
  403. </source>
  404. </sources>
  405. </configuration>
  406. </plugin>
  407. <plugin>
  408. <groupId>org.apache.maven.plugins</groupId>
  409. <artifactId>maven-compiler-plugin</artifactId>
  410. <version>${maven-compiler-plugin.version}</version>
  411. <configuration>
  412. <source>${java.version}</source>
  413. <target>${java.version}</target>
  414. <encoding>${project.build.sourceEncoding}</encoding>
  415. <useIncrementalCompilation>false</useIncrementalCompilation>
  416. <showDeprecation>true</showDeprecation>
  417. <showWarnings>true</showWarnings>
  418. </configuration>
  419. </plugin>
  420. <plugin>
  421. <artifactId>maven-war-plugin</artifactId>
  422. <version>${maven-war-plugin.version}</version>
  423. </plugin>
  424. <plugin>
  425. <groupId>org.apache.maven.plugins</groupId>
  426. <artifactId>maven-surefire-plugin</artifactId>
  427. <version>${maven-surefire-plugin.version}</version>
  428. <configuration>
  429. <skipTests>true</skipTests>
  430. </configuration>
  431. </plugin>
  432. </plugins>
  433. <!-- properties 取 pom 配置 -->
  434. <resources>
  435. <resource>
  436. <directory>src/main/resources</directory>
  437. <filtering>true</filtering>
  438. </resource>
  439. </resources>
  440. </build>
  441. </project>