pom.xml 4.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138
  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 http://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.1.3.RELEASE</version>
  9. <relativePath/> <!-- lookup parent from repository -->
  10. </parent>
  11. <groupId>com.example</groupId>
  12. <artifactId>01-SpringBoot-ES-Local</artifactId>
  13. <version>0.0.1-SNAPSHOT</version>
  14. <name>01-SpringBoot-ES-Local</name>
  15. <description>Demo project for Spring Boot</description>
  16. <properties>
  17. <java.version>1.8</java.version>
  18. <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  19. <fastjson.version>1.2.47</fastjson.version>
  20. <commons-lang3.version>3.7</commons-lang3.version>
  21. <elasticsearch.version>6.6.1</elasticsearch.version>
  22. </properties>
  23. <dependencies>
  24. <dependency>
  25. <groupId>org.springframework.boot</groupId>
  26. <artifactId>spring-boot-starter</artifactId>
  27. </dependency>
  28. <dependency>
  29. <groupId>org.springframework.boot</groupId>
  30. <artifactId>spring-boot-starter-test</artifactId>
  31. <scope>test</scope>
  32. </dependency>
  33. <!-- DevTools -->
  34. <dependency>
  35. <groupId>org.springframework.boot</groupId>
  36. <artifactId>spring-boot-devtools</artifactId>
  37. <optional>true</optional>
  38. </dependency>
  39. <!-- Web -->
  40. <dependency>
  41. <groupId>org.springframework.boot</groupId>
  42. <artifactId>spring-boot-starter-web</artifactId>
  43. </dependency>
  44. <!-- Thymeleaf -->
  45. <dependency>
  46. <groupId>org.springframework.boot</groupId>
  47. <artifactId>spring-boot-starter-thymeleaf</artifactId>
  48. </dependency>
  49. <!-- Java Low Level REST Client -->
  50. <dependency>
  51. <groupId>org.elasticsearch.client</groupId>
  52. <artifactId>elasticsearch-rest-client</artifactId>
  53. <version>${elasticsearch.version}</version>
  54. </dependency>
  55. <!-- Java High Level REST Client -->
  56. <dependency>
  57. <groupId>org.elasticsearch.client</groupId>
  58. <artifactId>elasticsearch-rest-high-level-client</artifactId>
  59. <version>${elasticsearch.version}</version>
  60. </dependency>
  61. <!-- Fastjson -->
  62. <dependency>
  63. <groupId>com.alibaba</groupId>
  64. <artifactId>fastjson</artifactId>
  65. <version>${fastjson.version}</version>
  66. </dependency>
  67. <!-- Commons-Lang3工具包 -->
  68. <dependency>
  69. <groupId>org.apache.commons</groupId>
  70. <artifactId>commons-lang3</artifactId>
  71. <version>${commons-lang3.version}</version>
  72. </dependency>
  73. <!-- lombok的依赖 -->
  74. <dependency>
  75. <groupId>org.projectlombok</groupId>
  76. <artifactId>lombok</artifactId>
  77. <optional>true</optional>
  78. </dependency>
  79. <!-- -->
  80. <dependency>
  81. <groupId>org.elasticsearch.client</groupId>
  82. <artifactId>elasticsearch-rest-high-level-client</artifactId>
  83. <version>${elasticsearch.version}</version>
  84. </dependency>
  85. <dependency>
  86. <groupId>mysql</groupId>
  87. <artifactId>mysql-connector-java</artifactId>
  88. </dependency>
  89. <dependency>
  90. <groupId>com.baomidou</groupId>
  91. <artifactId>mybatis-plus-boot-starter</artifactId>
  92. <version>3.2.0</version>
  93. </dependency>
  94. </dependencies>
  95. <build>
  96. <plugins>
  97. <!-- SrpingBoot打包工具 -->
  98. <plugin>
  99. <groupId>org.springframework.boot</groupId>
  100. <artifactId>spring-boot-maven-plugin</artifactId>
  101. </plugin>
  102. <!-- 指定JDK编译版本 -->
  103. <plugin>
  104. <groupId>org.apache.maven.plugins</groupId>
  105. <artifactId>maven-compiler-plugin</artifactId>
  106. <configuration>
  107. <source>${java.version}</source>
  108. <target>${java.version}</target>
  109. <encoding>${project.build.sourceEncoding}</encoding>
  110. </configuration>
  111. </plugin>
  112. <!-- JavaDoc -->
  113. <plugin>
  114. <groupId>org.apache.maven.plugins</groupId>
  115. <artifactId>maven-javadoc-plugin</artifactId>
  116. <version>3.0.0</version>
  117. </plugin>
  118. </plugins>
  119. </build>
  120. </project>