pom.xml 5.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140
  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. <parent>
  6. <groupId>cn.sikey.cloud</groupId>
  7. <artifactId>sikey-pay-business</artifactId>
  8. <version>2.3.0-SNAPSHOT</version>
  9. </parent>
  10. <modelVersion>4.0.0</modelVersion>
  11. <artifactId>sikey-pay-business-api</artifactId>
  12. <packaging>jar</packaging>
  13. <name>${project.artifactId}</name>
  14. <description>
  15. pay 模块 API,暴露给其它模块调用
  16. </description>
  17. <dependencies>
  18. <dependency>
  19. <groupId>cn.sikey.cloud</groupId>
  20. <artifactId>sikey-common</artifactId>
  21. <version>2.3.0-SNAPSHOT</version>
  22. </dependency>
  23. <!-- 参数校验 -->
  24. <dependency>
  25. <groupId>org.springframework.boot</groupId>
  26. <artifactId>spring-boot-starter-validation</artifactId>
  27. </dependency>
  28. <!-- RPC 远程调用相关 -->
  29. <dependency>
  30. <groupId>org.springframework.cloud</groupId>
  31. <artifactId>spring-cloud-starter-openfeign</artifactId>
  32. </dependency>
  33. <dependency>
  34. <groupId>com.github.wechatpay-apiv3</groupId>
  35. <artifactId>wechatpay-java</artifactId>
  36. </dependency>
  37. <dependency>
  38. <groupId>org.apache.tomcat.embed</groupId>
  39. <artifactId>tomcat-embed-core</artifactId>
  40. <version>10.1.34</version>
  41. <scope>compile</scope>
  42. </dependency>
  43. </dependencies>
  44. <build>
  45. <!-- 设置构建的 jar 包名 -->
  46. <finalName>${project.artifactId}</finalName>
  47. <pluginManagement>
  48. <plugins>
  49. <!-- maven-surefire-plugin 插件,用于运行单元测试。 -->
  50. <!-- 注意,需要使用 3.0.X+,因为要支持 Junit 5 版本 -->
  51. <plugin>
  52. <groupId>org.apache.maven.plugins</groupId>
  53. <artifactId>maven-surefire-plugin</artifactId>
  54. <version>${maven-surefire-plugin.version}</version>
  55. </plugin>
  56. <!-- maven-compiler-plugin 插件,解决 Lombok + MapStruct 组合 -->
  57. <!-- https://stackoverflow.com/questions/33483697/re-run-spring-boot-configuration-annotation-processor-to-update-generated-metada -->
  58. <plugin>
  59. <groupId>org.apache.maven.plugins</groupId>
  60. <artifactId>maven-compiler-plugin</artifactId>
  61. <version>${maven-compiler-plugin.version}</version>
  62. <configuration>
  63. <annotationProcessorPaths>
  64. <path>
  65. <groupId>org.springframework.boot</groupId>
  66. <artifactId>spring-boot-configuration-processor</artifactId>
  67. <version>${spring.boot.version}</version>
  68. </path>
  69. <path>
  70. <groupId>org.projectlombok</groupId>
  71. <artifactId>lombok</artifactId>
  72. <version>${lombok.version}</version>
  73. </path>
  74. <path>
  75. <groupId>org.mapstruct</groupId>
  76. <artifactId>mapstruct-processor</artifactId>
  77. <version>${mapstruct.version}</version>
  78. </path>
  79. </annotationProcessorPaths>
  80. <!-- 编译参数写在 arg 内,解决 Spring Boot 3.2 的 Parameter Name Discovery 问题 -->
  81. <debug>false</debug>
  82. <compilerArgs>
  83. <arg>-parameters</arg>
  84. </compilerArgs>
  85. </configuration>
  86. </plugin>
  87. </plugins>
  88. </pluginManagement>
  89. <plugins>
  90. <!-- 统一 revision 版本 -->
  91. <plugin>
  92. <groupId>org.codehaus.mojo</groupId>
  93. <artifactId>flatten-maven-plugin</artifactId>
  94. <version>${flatten-maven-plugin.version}</version>
  95. <configuration>
  96. <flattenMode>oss</flattenMode>
  97. <updatePomFile>true</updatePomFile>
  98. </configuration>
  99. <executions>
  100. <execution>
  101. <goals>
  102. <goal>flatten</goal>
  103. </goals>
  104. <id>flatten</id>
  105. <phase>process-resources</phase>
  106. </execution>
  107. <execution>
  108. <goals>
  109. <goal>clean</goal>
  110. </goals>
  111. <id>flatten.clean</id>
  112. <phase>clean</phase>
  113. </execution>
  114. </executions>
  115. </plugin>
  116. <!-- 关键:添加 spring-boot-maven-plugin -->
  117. <!--<plugin>
  118. <groupId>org.springframework.boot</groupId>
  119. <artifactId>spring-boot-maven-plugin</artifactId>
  120. <version>${spring.boot.version}</version>
  121. <executions>
  122. <execution>
  123. <goals>
  124. <goal>repackage</goal>
  125. </goals>
  126. </execution>
  127. </executions>
  128. </plugin>-->
  129. </plugins>
  130. </build>
  131. </project>