pom.xml 5.4 KB

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