pom.xml 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294
  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. <groupId>com.ventanaly</groupId>
  7. <artifactId>vpm-boot</artifactId>
  8. <version>2.12.2</version>
  9. <description>通风软件包管理系统</description>
  10. <parent>
  11. <groupId>org.springframework.boot</groupId>
  12. <artifactId>spring-boot-starter-parent</artifactId>
  13. <version>3.3.2</version> <!-- lookup parent from repository -->
  14. <relativePath/>
  15. </parent>
  16. <properties>
  17. <maven.compiler.source>17</maven.compiler.source>
  18. <maven.compiler.target>17</maven.compiler.target>
  19. <hutool.version>5.8.27</hutool.version>
  20. <mysql.version>8.0.28</mysql.version>
  21. <druid.version>1.2.23</druid.version>
  22. <mybatis-plus.version>3.5.5</mybatis-plus.version>
  23. <knife4j.version>4.5.0</knife4j.version>
  24. <mapstruct.version>1.5.5.Final</mapstruct.version>
  25. <lombok-mapstruct-binding.version>0.2.0</lombok-mapstruct-binding.version>
  26. <xxl-job.version>2.4.1</xxl-job.version>
  27. <easyexcel.version>3.2.1</easyexcel.version>
  28. <!-- 对象存储 -->
  29. <minio.version>8.5.10</minio.version>
  30. <okhttp3.version>4.8.1</okhttp3.version>
  31. <aliyun-sdk-oss.version>3.16.3</aliyun-sdk-oss.version>
  32. <!-- redisson 分布式锁 -->
  33. <redisson.version>3.30.0</redisson.version>
  34. <!-- 自动代码生成 -->
  35. <mybatis-plus-generator.version>3.5.6</mybatis-plus-generator.version>
  36. <velocity.version>2.3</velocity.version>
  37. <!-- IP 地区转换 -->
  38. <ip2region.version>2.7.0</ip2region.version>
  39. <!-- 阿里云短信 -->
  40. <aliyun.java.sdk.core.version>4.6.4</aliyun.java.sdk.core.version>
  41. <aliyun.java.sdk.dysmsapi.version>2.2.1</aliyun.java.sdk.dysmsapi.version>
  42. <outDir>${user.dir}/target/dist</outDir>
  43. </properties>
  44. <dependencies>
  45. <dependency>
  46. <groupId>org.projectlombok</groupId>
  47. <artifactId>lombok</artifactId>
  48. <!--编译测试环境,不打包在lib-->
  49. <scope>provided</scope>
  50. </dependency>
  51. <dependency>
  52. <groupId>commons-net</groupId>
  53. <artifactId>commons-net</artifactId>
  54. <version>3.9.0</version>
  55. </dependency>
  56. <dependency>
  57. <groupId>cn.hutool</groupId>
  58. <artifactId>hutool-all</artifactId>
  59. <version>${hutool.version}</version>
  60. </dependency>
  61. <!-- 允许使用Lombok的Java Bean类中使用MapStruct注解 (Lombok 1.18.20+) -->
  62. <dependency>
  63. <groupId>org.projectlombok</groupId>
  64. <artifactId>lombok-mapstruct-binding</artifactId>
  65. <version>${lombok-mapstruct-binding.version}</version>
  66. <scope>provided</scope>
  67. </dependency>
  68. <dependency>
  69. <groupId>org.springframework.boot</groupId>
  70. <artifactId>spring-boot-starter-web</artifactId>
  71. </dependency>
  72. <dependency>
  73. <groupId>org.springframework.boot</groupId>
  74. <artifactId>spring-boot-starter-test</artifactId>
  75. <scope>test</scope>
  76. </dependency>
  77. <dependency>
  78. <groupId>org.springframework.boot</groupId>
  79. <artifactId>spring-boot-starter-security</artifactId>
  80. </dependency>
  81. <dependency>
  82. <groupId>org.springframework.boot</groupId>
  83. <artifactId>spring-boot-starter-data-redis</artifactId>
  84. </dependency>
  85. <dependency>
  86. <groupId>org.springframework.boot</groupId>
  87. <artifactId>spring-boot-starter-cache</artifactId>
  88. </dependency>
  89. <dependency>
  90. <groupId>org.springframework.boot</groupId>
  91. <artifactId>spring-boot-starter-aop</artifactId>
  92. </dependency>
  93. <dependency>
  94. <groupId>mysql</groupId>
  95. <artifactId>mysql-connector-java</artifactId>
  96. <version>${mysql.version}</version>
  97. </dependency>
  98. <dependency>
  99. <groupId>com.alibaba</groupId>
  100. <artifactId>druid-spring-boot-starter</artifactId>
  101. <version>${druid.version}</version>
  102. </dependency>
  103. <dependency>
  104. <groupId>com.baomidou</groupId>
  105. <artifactId>mybatis-plus-spring-boot3-starter</artifactId>
  106. <version>${mybatis-plus.version}</version>
  107. </dependency>
  108. <dependency>
  109. <groupId>com.github.xiaoymin</groupId>
  110. <artifactId>knife4j-openapi3-jakarta-spring-boot-starter</artifactId>
  111. <version>${knife4j.version}</version>
  112. </dependency>
  113. <dependency>
  114. <groupId>org.mapstruct</groupId>
  115. <artifactId>mapstruct</artifactId>
  116. <version>${mapstruct.version}</version>
  117. </dependency>
  118. <dependency>
  119. <groupId>org.mapstruct</groupId>
  120. <artifactId>mapstruct-processor</artifactId>
  121. <version>${mapstruct.version}</version>
  122. </dependency>
  123. <dependency>
  124. <groupId>com.xuxueli</groupId>
  125. <artifactId>xxl-job-core</artifactId>
  126. <version>${xxl-job.version}</version>
  127. </dependency>
  128. <dependency>
  129. <groupId>com.alibaba</groupId>
  130. <artifactId>easyexcel</artifactId>
  131. <version>${easyexcel.version}</version>
  132. </dependency>
  133. <dependency>
  134. <groupId>org.springframework.boot</groupId>
  135. <artifactId>spring-boot-starter-validation</artifactId>
  136. </dependency>
  137. <!-- MinIO 对象存储 -->
  138. <dependency>
  139. <groupId>io.minio</groupId>
  140. <artifactId>minio</artifactId>
  141. <version>${minio.version}</version>
  142. </dependency>
  143. <dependency>
  144. <groupId>com.aliyun.oss</groupId>
  145. <artifactId>aliyun-sdk-oss</artifactId>
  146. <version>${aliyun-sdk-oss.version}</version>
  147. </dependency>
  148. <!-- redisson 分布式锁 -->
  149. <dependency>
  150. <groupId>org.redisson</groupId>
  151. <artifactId>redisson-spring-boot-starter</artifactId>
  152. <version>${redisson.version}</version>
  153. </dependency>
  154. <dependency>
  155. <groupId>org.springframework.boot</groupId>
  156. <artifactId>spring-boot-starter-websocket</artifactId>
  157. </dependency>
  158. <dependency>
  159. <groupId>com.baomidou</groupId>
  160. <artifactId>mybatis-plus-generator</artifactId>
  161. <version>${mybatis-plus-generator.version}</version>
  162. </dependency>
  163. <dependency>
  164. <groupId>org.apache.velocity</groupId>
  165. <artifactId>velocity-engine-core</artifactId>
  166. <version>${velocity.version}</version>
  167. </dependency>
  168. <dependency>
  169. <groupId>org.lionsoul</groupId>
  170. <artifactId>ip2region</artifactId>
  171. <version>${ip2region.version}</version>
  172. </dependency>
  173. <dependency>
  174. <groupId>org.springframework.boot</groupId>
  175. <artifactId>spring-boot-starter-mail</artifactId>
  176. </dependency>
  177. <dependency>
  178. <groupId>com.jcraft</groupId>
  179. <artifactId>jsch</artifactId>
  180. <version>0.1.55</version>
  181. </dependency>
  182. <dependency>
  183. <groupId>com.alibaba</groupId>
  184. <artifactId>fastjson</artifactId>
  185. <version>1.2.47</version>
  186. </dependency>
  187. <dependency>
  188. <groupId>com.aliyun</groupId>
  189. <artifactId>aliyun-java-sdk-core</artifactId>
  190. <version>${aliyun.java.sdk.core.version}</version>
  191. </dependency>
  192. <dependency>
  193. <groupId>com.aliyun</groupId>
  194. <artifactId>aliyun-java-sdk-dysmsapi</artifactId>
  195. <version>${aliyun.java.sdk.dysmsapi.version}</version>
  196. </dependency>
  197. </dependencies>
  198. <build>
  199. <finalName>${project.artifactId}</finalName>
  200. <plugins>
  201. <plugin>
  202. <groupId>org.springframework.boot</groupId>
  203. <artifactId>spring-boot-maven-plugin</artifactId>
  204. <configuration>
  205. <outputDirectory>${outDir}</outputDirectory>
  206. <includes>
  207. <include>
  208. <groupId>non-exists</groupId>
  209. <artifactId>non-exists</artifactId>
  210. </include>
  211. </includes>
  212. </configuration>
  213. </plugin>
  214. <plugin>
  215. <groupId>org.apache.maven.plugins</groupId>
  216. <artifactId>maven-dependency-plugin</artifactId>
  217. <executions>
  218. <execution>
  219. <id>copy-dependencies</id>
  220. <phase>package</phase>
  221. <goals>
  222. <goal>copy-dependencies</goal>
  223. </goals>
  224. <configuration>
  225. <!-- lib依赖包输出目录,打包的时候不打进jar包里 -->
  226. <outputDirectory>${outDir}/lib</outputDirectory>
  227. <excludeTransitive>false</excludeTransitive>
  228. <stripVersion>false</stripVersion>
  229. <includeScope>runtime</includeScope>
  230. </configuration>
  231. </execution>
  232. </executions>
  233. </plugin>
  234. <plugin>
  235. <groupId>org.apache.maven.plugins</groupId>
  236. <artifactId>maven-jar-plugin</artifactId>
  237. <version>3.3.0</version>
  238. <configuration>
  239. <archive>
  240. <manifest>
  241. <addClasspath>true</addClasspath>
  242. <classpathPrefix>lib/</classpathPrefix>
  243. </manifest>
  244. </archive>
  245. </configuration>
  246. </plugin>
  247. </plugins>
  248. </build>
  249. </project>