pom.xml 6.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201
  1. <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  2. xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
  3. <modelVersion>4.0.0</modelVersion>
  4. <!--
  5. 下方 parent 为 ContiNew Starter(Continue New Starter)。
  6. ContiNew Starter(Continue New Starter)基于"约定优于配置"的理念,
  7. 再次精简常规配置,提供一个更为完整的配置解决方案,帮助开发人员更加快速的集成常用第三方库或工具到 Spring Boot Web 应用程序中。
  8. ContiNew Starter 包含了一系列经过企业实践优化的依赖包(如 MyBatis-Plus、SaToken),
  9. 可轻松集成到应用中,为开发人员减少手动引入依赖及配置的麻烦,为 Spring Boot Web 项目的灵活快速构建提供支持。
  10. -->
  11. <parent>
  12. <groupId>top.continew</groupId>
  13. <artifactId>continew-starter</artifactId>
  14. <version>2.12.0</version>
  15. </parent>
  16. <groupId>com.pavis</groupId>
  17. <artifactId>pavis-admin</artifactId>
  18. <version>${revision}</version>
  19. <packaging>pom</packaging>
  20. <description>持续迭代优化的前后端分离中后台管理系统框架,开箱即用,持续提供舒适的开发体验。</description>
  21. <modules>
  22. <module>pavis-webapi</module>
  23. <module>pavis-module-system</module>
  24. <module>pavis-plugin</module>
  25. <module>pavis-common</module>
  26. <module>pavis-extension</module>
  27. <module>pavis-module-aigc</module>
  28. </modules>
  29. <properties>
  30. <!-- 项目版本号 -->
  31. <revision>3.7.0</revision>
  32. </properties>
  33. <!-- 全局依赖版本管理 -->
  34. <dependencyManagement>
  35. <dependencies>
  36. <!-- API 模块(存放 Controller 层代码,打包部署的模块) -->
  37. <dependency>
  38. <groupId>com.pavis</groupId>
  39. <artifactId>pavis-webapi</artifactId>
  40. <version>${revision}</version>
  41. </dependency>
  42. <!-- 系统管理模块(存放系统管理模块相关功能,例如:部门管理、角色管理、用户管理等) -->
  43. <dependency>
  44. <groupId>com.pavis</groupId>
  45. <artifactId>pavis-module-system</artifactId>
  46. <version>${revision}</version>
  47. </dependency>
  48. <!-- 智能管理模块(存放智能管理相关业务功能,例如:知识库、增强检索、智能体等) -->
  49. <dependency>
  50. <groupId>com.pavis</groupId>
  51. <artifactId>pavis-module-aigc</artifactId>
  52. <version>${revision}</version>
  53. </dependency>
  54. <!-- 公共模块(存放公共工具类,公共配置等) -->
  55. <dependency>
  56. <groupId>com.pavis</groupId>
  57. <artifactId>pavis-common</artifactId>
  58. <version>${revision}</version>
  59. </dependency>
  60. <!-- 任务调度插件(后续会改造为独立插件) -->
  61. <dependency>
  62. <groupId>com.pavis</groupId>
  63. <artifactId>pavis-plugin-schedule</artifactId>
  64. <version>${revision}</version>
  65. </dependency>
  66. <!-- 能力开放插件(后续会改造为独立插件) -->
  67. <dependency>
  68. <groupId>com.pavis</groupId>
  69. <artifactId>pavis-plugin-open</artifactId>
  70. <version>${revision}</version>
  71. </dependency>
  72. <!-- 代码生成器插件(后续会改造为独立插件) -->
  73. <dependency>
  74. <groupId>com.pavis</groupId>
  75. <artifactId>pavis-plugin-generator</artifactId>
  76. <version>${revision}</version>
  77. </dependency>
  78. </dependencies>
  79. </dependencyManagement>
  80. <dependencies>
  81. <!-- Hutool(小而全的 Java 工具类库,通过静态方法封装,降低相关 API 的学习成本,提高工作效率,使 Java 拥有函数式语言般的优雅,让 Java 语言也可以"甜甜的") -->
  82. <dependency>
  83. <groupId>cn.hutool</groupId>
  84. <artifactId>hutool-all</artifactId>
  85. </dependency>
  86. <!-- Lombok(在 Java 开发过程中用注解的方式,简化了 JavaBean 的编写,避免了冗余和样板式代码,让编写的类更加简洁) -->
  87. <dependency>
  88. <groupId>org.projectlombok</groupId>
  89. <artifactId>lombok</artifactId>
  90. <optional>true</optional> <!-- 表示依赖不会被传递 -->
  91. </dependency>
  92. </dependencies>
  93. <build>
  94. <plugins>
  95. <!-- 编译插件 -->
  96. <plugin>
  97. <groupId>org.apache.maven.plugins</groupId>
  98. <artifactId>maven-compiler-plugin</artifactId>
  99. <configuration>
  100. <compilerArgument>-parameters</compilerArgument>
  101. </configuration>
  102. </plugin>
  103. <!-- 单元测试相关插件 -->
  104. <plugin>
  105. <groupId>org.apache.maven.plugins</groupId>
  106. <artifactId>maven-surefire-plugin</artifactId>
  107. <configuration>
  108. <!-- 跳过单元测试 -->
  109. <skip>true</skip>
  110. </configuration>
  111. </plugin>
  112. <!-- 代码格式化插件 -->
  113. <plugin>
  114. <groupId>com.diffplug.spotless</groupId>
  115. <artifactId>spotless-maven-plugin</artifactId>
  116. <executions>
  117. <execution>
  118. <phase>compile</phase>
  119. <goals>
  120. <goal>apply</goal>
  121. </goals>
  122. </execution>
  123. </executions>
  124. <configuration>
  125. <java>
  126. <removeUnusedImports/>
  127. <eclipse>
  128. <file>.style/p3c-codestyle.xml</file>
  129. </eclipse>
  130. </java>
  131. </configuration>
  132. </plugin>
  133. <!-- 统一版本号插件 -->
  134. <plugin>
  135. <groupId>org.codehaus.mojo</groupId>
  136. <artifactId>flatten-maven-plugin</artifactId>
  137. <configuration>
  138. <updatePomFile>true</updatePomFile>
  139. <flattenMode>resolveCiFriendliesOnly</flattenMode>
  140. </configuration>
  141. <executions>
  142. <execution>
  143. <id>flatten</id>
  144. <phase>process-resources</phase>
  145. <goals>
  146. <goal>flatten</goal>
  147. </goals>
  148. </execution>
  149. <execution>
  150. <id>flatten-clean</id>
  151. <phase>clean</phase>
  152. <goals>
  153. <goal>clean</goal>
  154. </goals>
  155. </execution>
  156. </executions>
  157. </plugin>
  158. </plugins>
  159. </build>
  160. <!-- 依赖仓库配置 -->
  161. <repositories>
  162. <repository>
  163. <id>huawei-mirror</id>
  164. <name>HuaweiCloud Mirror</name>
  165. <url>https://mirrors.huaweicloud.com/repository/maven/</url>
  166. </repository>
  167. <repository>
  168. <id>ali-mirror</id>
  169. <name>AliYun Mirror</name>
  170. <url>https://maven.aliyun.com/repository/public/</url>
  171. </repository>
  172. </repositories>
  173. <!-- 插件仓库配置 -->
  174. <pluginRepositories>
  175. <pluginRepository>
  176. <id>huawei-mirror</id>
  177. <name>HuaweiCloud Mirror</name>
  178. <url>https://mirrors.huaweicloud.com/repository/maven/</url>
  179. </pluginRepository>
  180. <pluginRepository>
  181. <id>ali-mirror</id>
  182. <name>AliYun Mirror</name>
  183. <url>https://maven.aliyun.com/repository/public/</url>
  184. </pluginRepository>
  185. </pluginRepositories>
  186. </project>