pom.xml 5.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168
  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. <packaging>jar</packaging>
  7. <parent>
  8. <groupId>cc.uncarbon.framework</groupId>
  9. <artifactId>helio-starters</artifactId>
  10. <version>2.3.1</version>
  11. </parent>
  12. <artifactId>helio-boot</artifactId>
  13. <description>Helio 单模块版单体脚手架</description>
  14. <!-- 制品版本号,建议每次打包发布时都调整以作区分 -->
  15. <version>2.3.1</version>
  16. <properties>
  17. <!-- 如果实际开发使用的是JDK 21,则下面改成'21' -->
  18. <java.version>17</java.version>
  19. <!-- 这里管理全局第三方依赖版本,避免冲突 -->
  20. <!-- 文件上传 -->
  21. <x-file-storage.version>2.2.1</x-file-storage.version>
  22. <minio.version>8.5.8</minio.version>
  23. </properties>
  24. <dependencies>
  25. <!-- 脚手架 starters -->
  26. <dependency>
  27. <groupId>cc.uncarbon.framework</groupId>
  28. <artifactId>helio-core</artifactId>
  29. </dependency>
  30. <dependency>
  31. <groupId>cc.uncarbon.framework</groupId>
  32. <artifactId>helio-starter-aop</artifactId>
  33. </dependency>
  34. <dependency>
  35. <groupId>cc.uncarbon.framework</groupId>
  36. <artifactId>helio-starter-crud</artifactId>
  37. </dependency>
  38. <dependency>
  39. <groupId>cc.uncarbon.framework</groupId>
  40. <artifactId>helio-starter-knife4j</artifactId>
  41. <exclusions>
  42. <exclusion>
  43. <groupId>com.github.xiaoymin</groupId>
  44. <artifactId>knife4j-micro-spring-boot-starter</artifactId>
  45. </exclusion>
  46. </exclusions>
  47. </dependency>
  48. <dependency>
  49. <groupId>cc.uncarbon.framework</groupId>
  50. <artifactId>helio-starter-redis</artifactId>
  51. </dependency>
  52. <dependency>
  53. <groupId>cc.uncarbon.framework</groupId>
  54. <artifactId>helio-starter-satoken</artifactId>
  55. </dependency>
  56. <dependency>
  57. <groupId>cc.uncarbon.framework</groupId>
  58. <artifactId>helio-starter-test</artifactId>
  59. <scope>test</scope>
  60. </dependency>
  61. <dependency>
  62. <groupId>cc.uncarbon.framework</groupId>
  63. <artifactId>helio-starter-web</artifactId>
  64. </dependency>
  65. <!-- 这里写其他第三方依赖 -->
  66. <!-- 对象存储工具类 https://gitee.com/dromara/x-file-storage -->
  67. <dependency>
  68. <groupId>org.dromara.x-file-storage</groupId>
  69. <artifactId>x-file-storage-spring</artifactId>
  70. <version>${x-file-storage.version}</version>
  71. <exclusions>
  72. <!-- hutool版本冲突,用 helio-core 的版本 -->
  73. <exclusion>
  74. <groupId>cn.hutool</groupId>
  75. <artifactId>hutool-core</artifactId>
  76. </exclusion>
  77. </exclusions>
  78. </dependency>
  79. <!-- MinIO 依赖包 -->
  80. <dependency>
  81. <groupId>io.minio</groupId>
  82. <artifactId>minio</artifactId>
  83. <version>${minio.version}</version>
  84. </dependency>
  85. </dependencies>
  86. <build>
  87. <!-- 支持 mybatis XML 放置在 java 包下 -->
  88. <resources>
  89. <resource>
  90. <directory>src/main/java</directory>
  91. <includes>
  92. <include>**/*.xml</include>
  93. </includes>
  94. </resource>
  95. <resource>
  96. <directory>src/main/resources</directory>
  97. </resource>
  98. </resources>
  99. <plugins>
  100. <!-- Spring Boot 打包插件 -->
  101. <plugin>
  102. <groupId>org.springframework.boot</groupId>
  103. <artifactId>spring-boot-maven-plugin</artifactId>
  104. <version>${spring-boot.version}</version>
  105. <executions>
  106. <execution>
  107. <goals>
  108. <goal>repackage</goal>
  109. </goals>
  110. </execution>
  111. </executions>
  112. </plugin>
  113. <!-- 编译时,跳过单元测试 -->
  114. <plugin>
  115. <groupId>org.apache.maven.plugins</groupId>
  116. <artifactId>maven-surefire-plugin</artifactId>
  117. <configuration>
  118. <skipTests>true</skipTests>
  119. </configuration>
  120. </plugin>
  121. <!-- 编译时,不执行 mvn deploy -->
  122. <plugin>
  123. <groupId>org.apache.maven.plugins</groupId>
  124. <artifactId>maven-deploy-plugin</artifactId>
  125. <configuration>
  126. <skip>true</skip>
  127. </configuration>
  128. </plugin>
  129. <!-- 编译时,不生成 javadoc.jar -->
  130. <plugin>
  131. <groupId>org.apache.maven.plugins</groupId>
  132. <artifactId>maven-javadoc-plugin</artifactId>
  133. <configuration>
  134. <skip>true</skip>
  135. </configuration>
  136. </plugin>
  137. <!-- 编译时,不生成 sources.jar -->
  138. <plugin>
  139. <groupId>org.apache.maven.plugins</groupId>
  140. <artifactId>maven-source-plugin</artifactId>
  141. <configuration>
  142. <skipSource>true</skipSource>
  143. </configuration>
  144. </plugin>
  145. </plugins>
  146. </build>
  147. </project>