原创转载请注明出处:https://www.cnblogs.com/agilestyle/p/12097679.html
Project Directory
Maven Dependency
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 7 <groupId>org.example</groupId> 8 <artifactId>hello-es</artifactId> 9 <version>1.0-SNAPSHOT</version> 10 11 <properties> 12 <elasticsearch.version>7.5.0</elasticsearch.version> 13 </properties> 14 15 <dependencies> 16 <dependency> 17 <groupId>org.elasticsearch</groupId> 18 <artifactId>elasticsearch</artifactId> 19 <version>${elasticsearch.version}</version> 20 </dependency> 21 <dependency> 22 <groupId>org.elasticsearch.client</groupId> 23 <artifactId>transport</artifactId> 24 <version>${elasticsearch.version}</version> 25 </dependency> 26 <dependency> 27 <groupId>org.elasticsearch.client</groupId> 28 <artifactId>elasticsearch-rest-high-level-client</artifactId> 29 <version>${elasticsearch.version}</version> 30 </dependency> 31 32 <dependency> 33 <groupId>org.apache.logging.log4j</groupId> 34 <artifactId>log4j-core</artifactId> 35 <version>2.12.1</version> 36 </dependency> 37 <dependency> 38 <groupId>org.apache.logging.log4j</groupId> 39 <artifactId>log4j-api</artifactId> 40 <version>2.12.1</version> 41 </dependency> 42 <dependency> 43 <groupId>org.apache.logging.log4j</groupId> 44 <artifactId>log4j-slf4j-impl</artifactId> 45 <version>2.12.1</version> 46 </dependency> 47 48 <dependency> 49 <groupId>com.fasterxml.jackson.core</groupId> 50 <artifactId>jackson-databind</artifactId> 51 <version>2.10.1</version> 52 </dependency> 53 54 <dependency> 55 <groupId>org.projectlombok</groupId> 56 <artifactId>lombok</artifactId> 57 <version>1.18.10</version> 58 </dependency> 59 60 <dependency> 61 <groupId>junit</groupId> 62 <artifactId>junit</artifactId> 63 <version>4.12</version> 64 </dependency> 65 </dependencies> 66 67 <build> 68 <plugins> 69 <plugin> 70 <groupId>org.apache.maven.plugins</groupId> 71 <artifactId>maven-compiler-plugin</artifactId> 72 <version>3.8.1</version> 73 <configuration> 74 <source>1.8</source> 75 <target>1.8</target> 76 </configuration> 77 </plugin> 78 </plugins> 79 </build> 80 </project>