pom.xml 5.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149
  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.dongzili</groupId>
  6. <artifactId>EasySearchDemo</artifactId>
  7. <version>0.0.1-SNAPSHOT</version>
  8. <name>EasySearchDemo</name>
  9. <description>EasySearchDemo</description>
  10. <properties>
  11. <java.version>1.8</java.version>
  12. <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  13. <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
  14. <spring-boot.version>2.7.6</spring-boot.version>
  15. <elasticsearch.version>7.17.18</elasticsearch.version>
  16. </properties>
  17. <dependencies>
  18. <dependency>
  19. <groupId>org.springframework.boot</groupId>
  20. <artifactId>spring-boot-starter-web</artifactId>
  21. </dependency>
  22. <dependency>
  23. <groupId>com.mysql</groupId>
  24. <artifactId>mysql-connector-j</artifactId>
  25. <scope>runtime</scope>
  26. </dependency>
  27. <dependency>
  28. <groupId>org.projectlombok</groupId>
  29. <artifactId>lombok</artifactId>
  30. <optional>true</optional>
  31. </dependency>
  32. <dependency>
  33. <groupId>org.springframework.boot</groupId>
  34. <artifactId>spring-boot-starter-test</artifactId>
  35. <scope>test</scope>
  36. </dependency>
  37. <dependency>
  38. <groupId>org.springframework.boot</groupId>
  39. <artifactId>spring-boot-starter-validation</artifactId>
  40. </dependency>
  41. <dependency>
  42. <groupId>org.springframework.data</groupId>
  43. <artifactId>spring-data-elasticsearch</artifactId>
  44. <version>4.4.18</version>
  45. </dependency>
  46. <dependency>
  47. <groupId>org.elasticsearch</groupId>
  48. <artifactId>elasticsearch</artifactId>
  49. <version>${elasticsearch.version}</version>
  50. </dependency>
  51. <dependency>
  52. <groupId>org.elasticsearch.client</groupId>
  53. <artifactId>elasticsearch-rest-high-level-client</artifactId>
  54. <version>${elasticsearch.version}</version>
  55. </dependency>
  56. <!-- JSON处理 -->
  57. <dependency>
  58. <groupId>com.fasterxml.jackson.core</groupId>
  59. <artifactId>jackson-databind</artifactId>
  60. <version>2.13.0</version>
  61. </dependency>
  62. <dependency>
  63. <groupId>junit</groupId>
  64. <artifactId>junit</artifactId>
  65. <scope>test</scope>
  66. </dependency>
  67. <dependency>
  68. <groupId>cn.hutool</groupId>
  69. <artifactId>hutool-all</artifactId>
  70. <version>5.8.25</version>
  71. </dependency>
  72. <dependency>
  73. <groupId>com.baomidou</groupId>
  74. <artifactId>mybatis-plus-boot-starter</artifactId>
  75. <version>3.5.6</version>
  76. </dependency>
  77. <!-- 解决LocalDateTime问题-->
  78. <dependency>
  79. <groupId>org.mybatis</groupId>
  80. <artifactId>mybatis-typehandlers-jsr310</artifactId>
  81. <version>1.0.2</version>
  82. </dependency>
  83. <dependency>
  84. <groupId>net.bytebuddy</groupId>
  85. <artifactId>byte-buddy</artifactId>
  86. <version>1.15.10</version>
  87. </dependency>
  88. <dependency>
  89. <!--groupId 随便填写 -->
  90. <groupId>org.easysearch</groupId>
  91. <!--artifactId 随便填写-->
  92. <artifactId>sql-jdbc</artifactId>
  93. <!--version 随便填写-->
  94. <version>1.7.1</version>
  95. <!-- scope=system表示此依赖是来自外部jar,而不是maven仓库。当scope设置为system时,systemPath属性才会生效,systemPath为一个物理文件路径,来指定依赖的jar其物理磁盘的位置。 -->
  96. <scope>system</scope>
  97. <!-- ${project.basedir}代表根目录 -->
  98. <systemPath>${pom.basedir}/lib/sql-jdbc-1.7.1.jar</systemPath>
  99. </dependency>
  100. </dependencies>
  101. <dependencyManagement>
  102. <dependencies>
  103. <dependency>
  104. <groupId>org.springframework.boot</groupId>
  105. <artifactId>spring-boot-dependencies</artifactId>
  106. <version>${spring-boot.version}</version>
  107. <type>pom</type>
  108. <scope>import</scope>
  109. </dependency>
  110. </dependencies>
  111. </dependencyManagement>
  112. <build>
  113. <plugins>
  114. <plugin>
  115. <groupId>org.apache.maven.plugins</groupId>
  116. <artifactId>maven-compiler-plugin</artifactId>
  117. <version>3.8.1</version>
  118. <configuration>
  119. <source>1.8</source>
  120. <target>1.8</target>
  121. <encoding>UTF-8</encoding>
  122. </configuration>
  123. </plugin>
  124. <plugin>
  125. <groupId>org.springframework.boot</groupId>
  126. <artifactId>spring-boot-maven-plugin</artifactId>
  127. <version>${spring-boot.version}</version>
  128. <configuration>
  129. <mainClass>com.dongzili.easysearch.EasySearchDemoApplication</mainClass>
  130. <skip>true</skip>
  131. </configuration>
  132. <executions>
  133. <execution>
  134. <id>repackage</id>
  135. <goals>
  136. <goal>repackage</goal>
  137. </goals>
  138. </execution>
  139. </executions>
  140. </plugin>
  141. </plugins>
  142. </build>
  143. </project>