pom.xml 5.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132
  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-order-business</artifactId>
  8. <version>2.3.0-SNAPSHOT</version>
  9. </parent>
  10. <modelVersion>4.0.0</modelVersion>
  11. <artifactId>sikey-order-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>org.json</groupId>
  35. <artifactId>json</artifactId>
  36. <version>20231013</version>
  37. <scope>compile</scope>
  38. </dependency>
  39. </dependencies>
  40. <build>
  41. <!-- 设置构建的 jar 包名 -->
  42. <finalName>${project.artifactId}</finalName>
  43. <pluginManagement>
  44. <plugins>
  45. <!-- maven-surefire-plugin 插件,用于运行单元测试。 -->
  46. <!-- 注意,需要使用 3.0.X+,因为要支持 Junit 5 版本 -->
  47. <plugin>
  48. <groupId>org.apache.maven.plugins</groupId>
  49. <artifactId>maven-surefire-plugin</artifactId>
  50. <version>${maven-surefire-plugin.version}</version>
  51. </plugin>
  52. <!-- maven-compiler-plugin 插件,解决 Lombok + MapStruct 组合 -->
  53. <!-- https://stackoverflow.com/questions/33483697/re-run-spring-boot-configuration-annotation-processor-to-update-generated-metada -->
  54. <plugin>
  55. <groupId>org.apache.maven.plugins</groupId>
  56. <artifactId>maven-compiler-plugin</artifactId>
  57. <version>${maven-compiler-plugin.version}</version>
  58. <configuration>
  59. <annotationProcessorPaths>
  60. <path>
  61. <groupId>org.springframework.boot</groupId>
  62. <artifactId>spring-boot-configuration-processor</artifactId>
  63. <version>${spring.boot.version}</version>
  64. </path>
  65. <path>
  66. <groupId>org.projectlombok</groupId>
  67. <artifactId>lombok</artifactId>
  68. <version>${lombok.version}</version>
  69. </path>
  70. <path>
  71. <groupId>org.mapstruct</groupId>
  72. <artifactId>mapstruct-processor</artifactId>
  73. <version>${mapstruct.version}</version>
  74. </path>
  75. </annotationProcessorPaths>
  76. <!-- 编译参数写在 arg 内,解决 Spring Boot 3.2 的 Parameter Name Discovery 问题 -->
  77. <debug>false</debug>
  78. <compilerArgs>
  79. <arg>-parameters</arg>
  80. </compilerArgs>
  81. </configuration>
  82. </plugin>
  83. </plugins>
  84. </pluginManagement>
  85. <plugins>
  86. <!-- 统一 revision 版本 -->
  87. <plugin>
  88. <groupId>org.codehaus.mojo</groupId>
  89. <artifactId>flatten-maven-plugin</artifactId>
  90. <version>${flatten-maven-plugin.version}</version>
  91. <configuration>
  92. <flattenMode>oss</flattenMode>
  93. <updatePomFile>true</updatePomFile>
  94. </configuration>
  95. <executions>
  96. <execution>
  97. <goals>
  98. <goal>flatten</goal>
  99. </goals>
  100. <id>flatten</id>
  101. <phase>process-resources</phase>
  102. </execution>
  103. <execution>
  104. <goals>
  105. <goal>clean</goal>
  106. </goals>
  107. <id>flatten.clean</id>
  108. <phase>clean</phase>
  109. </execution>
  110. </executions>
  111. </plugin>
  112. <!--<plugin>
  113. <groupId>org.springframework.boot</groupId>
  114. <artifactId>spring-boot-maven-plugin</artifactId>
  115. <executions>
  116. <execution>
  117. <goals>
  118. <goal>repackage</goal> &lt;!&ndash; 生成包含依赖的可执行 JAR &ndash;&gt;
  119. </goals>
  120. </execution>
  121. </executions>
  122. </plugin>-->
  123. </plugins>
  124. </build>
  125. </project>