pom.xml 5.5 KB

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