pom.xml 6.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163
  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-starter-parent</artifactId>
  9. <version>2.5.9</version>
  10. </parent>
  11. <groupId>org.muchinfo</groupId>
  12. <artifactId>mtp3</artifactId>
  13. <version>${revision}</version>
  14. <modules>
  15. <module>mtp3-common</module>
  16. <module>mtp3-interface</module>
  17. <module>mtp3-pojos</module>
  18. <module>mtp3-century</module>
  19. </modules>
  20. <packaging>pom</packaging>
  21. <properties>
  22. <revision>0.0.1-SNAPSHOT</revision>
  23. <!-- Maven 相关 -->
  24. <java.version>1.8</java.version>
  25. <maven.compiler.source>${java.version}</maven.compiler.source>
  26. <maven.compiler.target>${java.version}</maven.compiler.target>
  27. <maven-compiler-plugin.version>3.8.1</maven-compiler-plugin.version>
  28. <flatten-maven-plugin.version>1.3.0</flatten-maven-plugin.version>
  29. <!-- 看看咋放到 bom 里 -->
  30. <lombok.version>1.18.30</lombok.version>
  31. <mapstruct.version>1.5.5.Final</mapstruct.version>
  32. <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  33. </properties>
  34. <dependencies>
  35. <dependency>
  36. <groupId>org.projectlombok</groupId>
  37. <artifactId>lombok</artifactId>
  38. <optional>true</optional>
  39. <version>1.18.8</version>
  40. </dependency>
  41. <!-- swagger -->
  42. <dependency>
  43. <groupId>io.springfox</groupId>
  44. <artifactId>springfox-swagger-ui</artifactId>
  45. <version>2.9.2</version>
  46. </dependency>
  47. <dependency>
  48. <groupId>io.springfox</groupId>
  49. <artifactId>springfox-swagger2</artifactId>
  50. <version>2.9.2</version>
  51. </dependency>
  52. <!-- mybatis-plus -->
  53. <dependency>
  54. <groupId>com.baomidou</groupId>
  55. <artifactId>mybatis-plus-boot-starter</artifactId>
  56. <version>3.5.5</version>
  57. </dependency>
  58. <!-- security -->
  59. <dependency>
  60. <groupId>org.springframework.boot</groupId>
  61. <artifactId>spring-boot-starter-security</artifactId>
  62. <version>2.5.9</version>
  63. </dependency>
  64. <!-- jwt -->
  65. <dependency>
  66. <groupId>io.jsonwebtoken</groupId>
  67. <artifactId>jjwt</artifactId>
  68. <version>0.9.1</version>
  69. </dependency>
  70. <!-- shiro -->
  71. <dependency>
  72. <groupId>org.apache.shiro</groupId>
  73. <artifactId>shiro-core</artifactId>
  74. <version>1.2.4</version>
  75. </dependency>
  76. <!-- fastjson2 -->
  77. <dependency>
  78. <groupId>com.alibaba.fastjson2</groupId>
  79. <artifactId>fastjson2</artifactId>
  80. <version>2.0.34</version>
  81. </dependency>
  82. <!-- easyexcel -->
  83. <dependency>
  84. <groupId>com.alibaba</groupId>
  85. <artifactId>easyexcel</artifactId>
  86. <version>3.1.3</version>
  87. </dependency>
  88. <!-- https://mvnrepository.com/artifact/org.apache.httpcomponents/httpclient -->
  89. <dependency>
  90. <groupId>org.apache.httpcomponents</groupId>
  91. <artifactId>httpclient</artifactId>
  92. <version>4.5.13</version>
  93. </dependency>
  94. </dependencies>
  95. <build>
  96. <pluginManagement>
  97. <plugins>
  98. <!-- maven-compiler-plugin 插件,解决 spring-boot-configuration-processor + Lombok + MapStruct 组合 -->
  99. <!-- https://stackoverflow.com/questions/33483697/re-run-spring-boot-configuration-annotation-processor-to-update-generated-metada -->
  100. <plugin>
  101. <groupId>org.apache.maven.plugins</groupId>
  102. <artifactId>maven-compiler-plugin</artifactId>
  103. <version>${maven-compiler-plugin.version}</version>
  104. <configuration>
  105. <annotationProcessorPaths>
  106. <path>
  107. <groupId>org.springframework.boot</groupId>
  108. <artifactId>spring-boot-configuration-processor</artifactId>
  109. <version>2.5.9</version>
  110. </path>
  111. <path>
  112. <groupId>org.projectlombok</groupId>
  113. <artifactId>lombok</artifactId>
  114. <version>${lombok.version}</version>
  115. </path>
  116. <path>
  117. <groupId>org.mapstruct</groupId>
  118. <artifactId>mapstruct-processor</artifactId>
  119. <version>${mapstruct.version}</version>
  120. </path>
  121. </annotationProcessorPaths>
  122. </configuration>
  123. </plugin>
  124. <plugin>
  125. <groupId>org.codehaus.mojo</groupId>
  126. <artifactId>flatten-maven-plugin</artifactId>
  127. </plugin>
  128. </plugins>
  129. </pluginManagement>
  130. <plugins>
  131. <!-- 统一 revision 版本 -->
  132. <plugin>
  133. <groupId>org.codehaus.mojo</groupId>
  134. <artifactId>flatten-maven-plugin</artifactId>
  135. <version>${flatten-maven-plugin.version}</version>
  136. <configuration>
  137. <flattenMode>resolveCiFriendliesOnly</flattenMode>
  138. <updatePomFile>true</updatePomFile>
  139. </configuration>
  140. <executions>
  141. <execution>
  142. <goals>
  143. <goal>flatten</goal>
  144. </goals>
  145. <id>flatten</id>
  146. <phase>process-resources</phase>
  147. </execution>
  148. <execution>
  149. <goals>
  150. <goal>clean</goal>
  151. </goals>
  152. <id>flatten.clean</id>
  153. <phase>clean</phase>
  154. </execution>
  155. </executions>
  156. </plugin>
  157. </plugins>
  158. </build>
  159. </project>