pom.xml 6.1 KB

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