pom.xml 5.8 KB

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