pom.xml 10 KB

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