pom.xml 6.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <project xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  3. xmlns="http://maven.apache.org/POM/4.0.0"
  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. <groupId>com.github.jfcloud</groupId>
  7. <artifactId>jfcloud-gene</artifactId>
  8. <version>3.2.0</version>
  9. <packaging>pom</packaging>
  10. <modules>
  11. <module>jfcloud-gene-biz</module>
  12. <module>jfcloud-gene-common</module>
  13. <module>jfcloud-gene-api</module>
  14. </modules>
  15. <properties>
  16. <maven.compiler.source>8</maven.compiler.source>
  17. <maven.compiler.target>8</maven.compiler.target>
  18. <maven.compiler.version>3.8.1</maven.compiler.version>
  19. <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  20. <spring-boot.version>2.7.12</spring-boot.version>
  21. <hutool.version>5.8.22</hutool.version>
  22. <lombok.version>1.18.16</lombok.version>
  23. <mapstruct.version>1.4.2.Final</mapstruct.version>
  24. <jfcloud-bom.version>K7.5.1</jfcloud-bom.version>
  25. <jfcloud-dependencies.version>K7.5.0</jfcloud-dependencies.version>
  26. <rich-text.version>K7.5.2</rich-text.version>
  27. </properties>
  28. <dependencies>
  29. <dependency>
  30. <groupId>org.projectlombok</groupId>
  31. <artifactId>lombok</artifactId>
  32. <scope>provided</scope>
  33. </dependency>
  34. </dependencies>
  35. <dependencyManagement>
  36. <dependencies>
  37. <!--jfcloud 公共版本定义-->
  38. <dependency>
  39. <groupId>com.github.jfcloud</groupId>
  40. <artifactId>jfcloud-bom</artifactId>
  41. <version>${jfcloud-bom.version}</version>
  42. <type>pom</type>
  43. <scope>import</scope>
  44. </dependency>
  45. <dependency>
  46. <groupId>com.github.jfcloud</groupId>
  47. <artifactId>jfcloud-aew-rich-text</artifactId>
  48. <version>${rich-text.version}</version>
  49. </dependency>
  50. </dependencies>
  51. </dependencyManagement>
  52. <build>
  53. <finalName>${project.name}</finalName>
  54. <resources>
  55. <resource>
  56. <directory>src/main/resources</directory>
  57. <filtering>true</filtering>
  58. </resource>
  59. </resources>
  60. <pluginManagement>
  61. <plugins>
  62. <!--spring boot 默认插件-->
  63. <plugin>
  64. <groupId>org.springframework.boot</groupId>
  65. <artifactId>spring-boot-maven-plugin</artifactId>
  66. <version>${spring-boot.version}</version>
  67. <executions>
  68. <execution>
  69. <goals>
  70. <goal>repackage</goal>
  71. </goals>
  72. </execution>
  73. </executions>
  74. </plugin>
  75. <!--解决文件打包编译字体、文件损坏-->
  76. <plugin>
  77. <groupId>org.apache.maven.plugins</groupId>
  78. <artifactId>maven-resources-plugin</artifactId>
  79. <configuration>
  80. <nonFilteredFileExtensions>
  81. <nonFilteredFileExtension>doc</nonFilteredFileExtension>
  82. <nonFilteredFileExtension>docx</nonFilteredFileExtension>
  83. <nonFilteredFileExtension>xls</nonFilteredFileExtension>
  84. <nonFilteredFileExtension>xlsx</nonFilteredFileExtension>
  85. <nonFilteredFileExtension>pdf</nonFilteredFileExtension>
  86. <nonFilteredFileExtension>ftl</nonFilteredFileExtension>
  87. <nonFilteredFileExtension>ttf</nonFilteredFileExtension>
  88. </nonFilteredFileExtensions>
  89. </configuration>
  90. </plugin>
  91. </plugins>
  92. </pluginManagement>
  93. <plugins>
  94. <!--代码编译指定版本插件-->
  95. <plugin>
  96. <groupId>org.apache.maven.plugins</groupId>
  97. <artifactId>maven-compiler-plugin</artifactId>
  98. <version>${maven.compiler.version}</version>
  99. <configuration>
  100. <target>${maven.compiler.target}</target>
  101. <source>${maven.compiler.source}</source>
  102. <encoding>UTF-8</encoding>
  103. <annotationProcessorPaths>
  104. <path>
  105. <groupId>org.projectlombok</groupId>
  106. <artifactId>lombok</artifactId>
  107. <version>${lombok.version}</version>
  108. </path>
  109. <path>
  110. <groupId>org.projectlombok</groupId>
  111. <artifactId>lombok-mapstruct-binding</artifactId>
  112. <version>0.2.0</version>
  113. </path>
  114. <path>
  115. <groupId>org.mapstruct</groupId>
  116. <artifactId>mapstruct-processor</artifactId>
  117. <version>${mapstruct.version}</version>
  118. </path>
  119. </annotationProcessorPaths>
  120. <skip>true</skip>
  121. </configuration>
  122. </plugin>
  123. </plugins>
  124. </build>
  125. <profiles>
  126. <profile>
  127. <id>dev</id>
  128. <properties>
  129. <profiles.active>dev</profiles.active>
  130. <nacos.namespace>jfcloud</nacos.namespace>
  131. <nacos.username>jfcloud</nacos.username>
  132. <nacos.password>jfcloudjfcloud</nacos.password>
  133. </properties>
  134. <activation>
  135. <!-- 默认环境 -->
  136. <activeByDefault>true</activeByDefault>
  137. </activation>
  138. </profile>
  139. <profile>
  140. <id>prod</id>
  141. <properties>
  142. <profiles.active>prod</profiles.active>
  143. <nacos.namespace>jfcloud</nacos.namespace>
  144. <nacos.username>jfcloud</nacos.username>
  145. <nacos.password>jfcloudjfcloud</nacos.password>
  146. </properties>
  147. </profile>
  148. </profiles>
  149. <distributionManagement>
  150. <repository>
  151. <id>rdc-releases</id>
  152. <url>https://packages.aliyun.com/maven/repository/2316288-release-CnOxYD/</url>
  153. </repository>
  154. <snapshotRepository>
  155. <id>rdc-snapshots</id>
  156. <url>https://packages.aliyun.com/maven/repository/2316288-snapshot-fEBoLS/</url>
  157. </snapshotRepository>
  158. </distributionManagement>
  159. <repositories>
  160. <repository>
  161. <id>public</id>
  162. <name>aliyun nexus</name>
  163. <url>https://maven.aliyun.com/repository/public/</url>
  164. <releases>
  165. <enabled>true</enabled>
  166. </releases>
  167. </repository>
  168. </repositories>
  169. <pluginRepositories>
  170. <pluginRepository>
  171. <id>aliyun-plugin</id>
  172. <url>https://maven.aliyun.com/repository/public</url>
  173. <releases>
  174. <enabled>true</enabled>
  175. </releases>
  176. <snapshots>
  177. <enabled>false</enabled>
  178. </snapshots>
  179. </pluginRepository>
  180. </pluginRepositories>
  181. </project>