pom.xml 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  3. xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
  4. <modelVersion>4.0.0</modelVersion>
  5. <parent>
  6. <groupId>org.springframework.boot</groupId>
  7. <artifactId>spring-boot-starter-parent</artifactId>
  8. <version>2.3.7.RELEASE</version>
  9. <relativePath/> <!-- lookup parent from repository -->
  10. </parent>
  11. <groupId>com.xuecheng</groupId>
  12. <artifactId>xuecheng-plus-parent</artifactId>
  13. <version>0.0.1-SNAPSHOT</version>
  14. <name>xuecheng-plus-parent</name>
  15. <description>xuecheng-plus-parent</description>
  16. <properties>
  17. <java.version>1.8</java.version>
  18. <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  19. <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
  20. <spring-boot.version>2.3.7.RELEASE</spring-boot.version>
  21. <spring-cloud.version>Hoxton.SR9</spring-cloud.version>
  22. <org.mapstruct.version>1.3.1.Final</org.mapstruct.version>
  23. <spring-cloud-alibaba.version>2.2.6.RELEASE</spring-cloud-alibaba.version>
  24. <org.projectlombok.version>1.18.8</org.projectlombok.version>
  25. <javax.servlet-api.version>4.0.1</javax.servlet-api.version>
  26. <fastjson.version>1.2.83</fastjson.version>
  27. <druid-spring-boot-starter.version>1.2.8</druid-spring-boot-starter.version>
  28. <mysql-connector-java.version>8.0.30</mysql-connector-java.version>
  29. <mybatis-plus-boot-starter.version>3.4.1</mybatis-plus-boot-starter.version>
  30. <commons-lang.version>2.6</commons-lang.version>
  31. <minio.version>8.4.3</minio.version>
  32. <xxl-job-core.version>2.3.1</xxl-job-core.version>
  33. <swagger-annotations.version>1.5.20</swagger-annotations.version>
  34. <commons-lang3.version>3.10</commons-lang3.version>
  35. <okhttp.version>4.8.1</okhttp.version>
  36. <swagger-spring-boot-starter.version>1.9.0.RELEASE</swagger-spring-boot-starter.version>
  37. <elasticsearch.version>7.12.1</elasticsearch.version>
  38. </properties>
  39. <dependencyManagement>
  40. <dependencies>
  41. <dependency>
  42. <groupId>org.springframework.cloud</groupId>
  43. <artifactId>spring-cloud-dependencies</artifactId>
  44. <version>${spring-cloud.version}</version>
  45. <type>pom</type>
  46. <scope>import</scope>
  47. </dependency>
  48. <dependency>
  49. <groupId>org.springframework.boot</groupId>
  50. <artifactId>spring-boot-dependencies</artifactId>
  51. <version>${spring-boot.version}</version>
  52. <type>pom</type>
  53. <scope>import</scope>
  54. </dependency>
  55. <dependency>
  56. <groupId>com.alibaba.cloud</groupId>
  57. <artifactId>spring-cloud-alibaba-dependencies</artifactId>
  58. <version>${spring-cloud-alibaba.version}</version>
  59. <type>pom</type>
  60. <scope>import</scope>
  61. </dependency>
  62. <!-- lombok,简化类的构建-->
  63. <dependency>
  64. <groupId>org.projectlombok</groupId>
  65. <artifactId>lombok</artifactId>
  66. <version>${org.projectlombok.version}</version>
  67. </dependency>
  68. <!-- mapstruct 代码生成器,简化java bean之间的映射 -->
  69. <dependency>
  70. <groupId>org.mapstruct</groupId>
  71. <artifactId>mapstruct-jdk8</artifactId>
  72. <version>${org.mapstruct.version}</version>
  73. </dependency>
  74. <dependency>
  75. <groupId>org.mapstruct</groupId>
  76. <artifactId>mapstruct-processor</artifactId>
  77. <version>${org.mapstruct.version}</version>
  78. </dependency>
  79. <dependency>
  80. <groupId>io.swagger</groupId>
  81. <artifactId>swagger-annotations</artifactId>
  82. <version>${swagger-annotations.version}</version>
  83. </dependency>
  84. <!-- Servlet 容器管理 -->
  85. <dependency>
  86. <groupId>javax.servlet</groupId>
  87. <artifactId>javax.servlet-api</artifactId>
  88. <version>${javax.servlet-api.version}</version>
  89. <scope>provided</scope>
  90. </dependency>
  91. <!-- fastjson ,json解析工具 -->
  92. <dependency>
  93. <groupId>com.alibaba</groupId>
  94. <artifactId>fastjson</artifactId>
  95. <version>${fastjson.version}</version>
  96. </dependency>
  97. <!-- druid 连接池管理 -->
  98. <dependency>
  99. <groupId>com.alibaba</groupId>
  100. <artifactId>druid-spring-boot-starter</artifactId>
  101. <version>${druid-spring-boot-starter.version}</version>
  102. </dependency>
  103. <!-- mySQL数据库驱动包管理 -->
  104. <dependency>
  105. <groupId>mysql</groupId>
  106. <artifactId>mysql-connector-java</artifactId>
  107. <version>${mysql-connector-java.version}</version>
  108. </dependency>
  109. <!-- mybatis plus 集成Spring Boot启动器 -->
  110. <dependency>
  111. <groupId>com.baomidou</groupId>
  112. <artifactId>mybatis-plus-boot-starter</artifactId>
  113. <version>${mybatis-plus-boot-starter.version}</version>
  114. </dependency>
  115. <!-- mybatis plus 代码生成器 -->
  116. <dependency>
  117. <groupId>com.baomidou</groupId>
  118. <artifactId>mybatis-plus-generator</artifactId>
  119. <version>${mybatis-plus-boot-starter.version}</version>
  120. </dependency>
  121. <!-- 工具类管理 -->
  122. <dependency>
  123. <groupId>commons-lang</groupId>
  124. <artifactId>commons-lang</artifactId>
  125. <version>${commons-lang.version}</version>
  126. </dependency>
  127. <!-- 分布式文件系统 minIO的客户端API包 -->
  128. <dependency>
  129. <groupId>io.minio</groupId>
  130. <artifactId>minio</artifactId>
  131. <version>${minio.version}</version>
  132. </dependency>
  133. <!--google推荐的一套工具类库-->
  134. <dependency>
  135. <groupId>com.google.guava</groupId>
  136. <artifactId>guava</artifactId>
  137. <version>25.0-jre</version>
  138. </dependency>
  139. <!--分布式任务调度-->
  140. <dependency>
  141. <groupId>com.xuxueli</groupId>
  142. <artifactId>xxl-job-core</artifactId>
  143. <version>${xxl-job-core.version}</version>
  144. </dependency>
  145. <!--Spring boot单元测试-->
  146. <dependency>
  147. <groupId>org.springframework.boot</groupId>
  148. <artifactId>spring-boot-starter-test</artifactId>
  149. <version>${spring-boot.version}</version>
  150. <scope>test</scope>
  151. <exclusions>
  152. <exclusion>
  153. <groupId>org.junit.vintage</groupId>
  154. <artifactId>junit-vintage-engine</artifactId>
  155. </exclusion>
  156. </exclusions>
  157. </dependency>
  158. <dependency>
  159. <groupId>com.squareup.okhttp3</groupId>
  160. <artifactId>okhttp</artifactId>
  161. <version>${okhttp.version}</version>
  162. </dependency>
  163. <dependency>
  164. <groupId>org.apache.commons</groupId>
  165. <artifactId>commons-lang3</artifactId>
  166. <version>${commons-lang3.version}</version>
  167. </dependency>
  168. <dependency>
  169. <groupId>com.spring4all</groupId>
  170. <artifactId>swagger-spring-boot-starter</artifactId>
  171. <version>${swagger-spring-boot-starter.version}</version>
  172. </dependency>
  173. <dependency>
  174. <groupId>org.elasticsearch.client</groupId>
  175. <artifactId>elasticsearch-rest-high-level-client</artifactId>
  176. <version>${elasticsearch.version}</version>
  177. </dependency>
  178. <dependency>
  179. <groupId>org.elasticsearch</groupId>
  180. <artifactId>elasticsearch</artifactId>
  181. <version>${elasticsearch.version}</version>
  182. </dependency>
  183. </dependencies>
  184. </dependencyManagement>
  185. <build>
  186. <finalName>${project.name}</finalName>
  187. <!--编译打包过虑配置-->
  188. <resources>
  189. <resource>
  190. <directory>src/main/resources</directory>
  191. <filtering>true</filtering>
  192. <includes>
  193. <include>**/*</include>
  194. </includes>
  195. </resource>
  196. <resource>
  197. <directory>src/main/java</directory>
  198. <includes>
  199. <include>**/*.xml</include>
  200. </includes>
  201. </resource>
  202. </resources>
  203. <plugins>
  204. <!--打包插件-->
  205. <plugin>
  206. <groupId>org.springframework.boot</groupId>
  207. <artifactId>spring-boot-maven-plugin</artifactId>
  208. <version>${spring-boot.version}</version>
  209. </plugin>
  210. <plugin>
  211. <groupId>org.apache.maven.plugins</groupId>
  212. <artifactId>maven-compiler-plugin</artifactId>
  213. <version>3.8.1</version>
  214. <configuration>
  215. <!--指定项目源码jdk的版本-->
  216. <source>1.8</source>
  217. <!--指定项目编译后的jdk的版本-->
  218. <target>1.8</target>
  219. <!--配置注解预编译-->
  220. <annotationProcessorPaths>
  221. <!-- <path>
  222. <groupId>org.mapstruct</groupId>
  223. <artifactId>mapstruct-processor</artifactId>
  224. <version>${org.mapstruct.version}</version>
  225. </path>-->
  226. <path>
  227. <groupId>org.projectlombok</groupId>
  228. <artifactId>lombok</artifactId>
  229. <version>${org.projectlombok.version}</version>
  230. </path>
  231. </annotationProcessorPaths>
  232. </configuration>
  233. </plugin>
  234. <!--责处理项目资源文件并拷贝到输出目录,如果有额外的资源文件目录则需要配置-->
  235. <plugin>
  236. <groupId>org.apache.maven.plugins</groupId>
  237. <artifactId>maven-resources-plugin</artifactId>
  238. <version>3.3.0</version>
  239. <configuration>
  240. <encoding>utf-8</encoding>
  241. <!--使用默认分隔符,resource中可以使用分割符定义过虑的路径-->
  242. <useDefaultDelimiters>true</useDefaultDelimiters>
  243. </configuration>
  244. </plugin>
  245. </plugins>
  246. </build>
  247. </project>