1 <properties> 2 <project.build.sourceEncoding>UTF8</project.build.sourceEncoding> 3 <hive.version>3.1.2</hive.version> 4 </properties> 5 <repositories> 6 <repository> 7 <id>spring-plugin</id> 8 <url>https://repo.spring.io/plugins-release/</url> 9 </repository> 10 </repositories> 11 12 <dependencies> 13 <!--添加hive依赖--> 14 <dependency> 15 <groupId>org.apache.hive</groupId> 16 <artifactId>hive-exec</artifactId> 17 <version>${hive.version}</version> 18 </dependency> 19 <dependency> 20 <groupId>junit</groupId> 21 <artifactId>junit</artifactId> 22 <version>4.13</version> 23 <scope>test</scope> 24 </dependency> 25 26 </dependencies> 27 <build> 28 <plugins> 29 <plugin> 30 <artifactId>maven-compiler-plugin</artifactId> 31 <version>2.3.2</version> 32 <configuration> 33 <source>1.8</source> 34 <target>1.8</target> 35 </configuration> 36 </plugin> 37 <plugin> 38 <artifactId>maven-assembly-plugin</artifactId> 39 <configuration> 40 <descriptorRefs> 41 <descriptorRef>jar-with-dependencies</descriptorRef> 42 </descriptorRefs> 43 </configuration> 44 <executions> 45 <execution> 46 <id>make-assembly</id> 47 <phase>package</phase> 48 <goals> 49 <goal>single</goal> 50 </goals> 51 </execution> 52 </executions> 53 </plugin> 54 </plugins> 55 </build>