<? xml version = "1.0" encoding = "UTF-8" ?> < project xmlns = "http://maven.apache.org/POM/4.0.0" xmlns:xsi = "http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation = "http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" > < modelVersion >4.0.0</ modelVersion > < groupId >org.example</ groupId > < artifactId >hadoop-demo</ artifactId > < version >1.0-SNAPSHOT</ version > < properties > < project.build.sourceEncoding >UTF-8</ project.build.sourceEncoding > < project.reporting.outputEncoding >UTF-8</ project.reporting.outputEncoding > < mybatis-spring-boot >1.2.0</ mybatis-spring-boot > < mysql-connector >8.0.11</ mysql-connector > < activiti.version >5.22.0</ activiti.version > </ properties > < parent > < groupId >org.springframework.boot</ groupId > < artifactId >spring-boot-starter-parent</ artifactId > < version >2.7.7</ version > </ parent > < dependencies > <!--springBoot相关--> < dependency > < groupId >org.springframework.boot</ groupId > < artifactId >spring-boot-starter-web</ artifactId > </ dependency > <!-- https://mvnrepository.com/artifact/com.baomidou/mybatis-plus-boot-starter --> <!-- https://mvnrepository.com/artifact/com.baomidou/dynamic-datasource-spring-boot-starter --> < dependency > < groupId >com.baomidou</ groupId > < artifactId >dynamic-datasource-spring-boot-starter</ artifactId > < version >3.6.1</ version > </ dependency > <!-- https://mvnrepository.com/artifact/com.baomidou/mybatis-plus-boot-starter --> < dependency > < groupId >com.baomidou</ groupId > < artifactId >mybatis-plus-boot-starter</ artifactId > < version >3.5.3.1</ version > </ dependency > <!--mybatis相关--> <!-- <dependency> <groupId>org.mybatis.spring.boot</groupId> <artifactId>mybatis-spring-boot-starter</artifactId> <version>${mybatis-spring-boot}</version> </dependency>--> <!--mysql驱动相关--> < dependency > < groupId >mysql</ groupId > < artifactId >mysql-connector-java</ artifactId > < version >${mysql-connector}</ version > </ dependency > <!--druid连接池相关--> < dependency > < groupId >com.alibaba</ groupId > < artifactId >druid</ artifactId > < version >1.1.12</ version > </ dependency > <!-- 添加hadoop依赖begin --> <!-- https://mvnrepository.com/artifact/org.apache.hadoop/hadoop-common --> < dependency > < groupId >org.apache.hadoop</ groupId > < artifactId >hadoop-common</ artifactId > < version >3.3.4</ version > </ dependency > <!-- https://mvnrepository.com/artifact/org.apache.hadoop/hadoop-hdfs --> < dependency > < groupId >org.apache.hadoop</ groupId > < artifactId >hadoop-hdfs</ artifactId > < version >3.3.4</ version > </ dependency > <!-- https://mvnrepository.com/artifact/org.apache.hadoop/hadoop-client --> < dependency > < groupId >org.apache.hadoop</ groupId > < artifactId >hadoop-client</ artifactId > < version >3.3.4</ version > </ dependency > <!--添加hadoop依赖end --> <!-- 添加hive依赖begin --> < dependency > < groupId >org.apache.hive</ groupId > < artifactId >hive-jdbc</ artifactId > < version >3.1.3</ version > < exclusions > < exclusion > < groupId >org.eclipse.jetty.aggregate</ groupId > < artifactId >*</ artifactId > </ exclusion > < exclusion > < groupId >org.eclipse.jetty</ groupId > < artifactId >jetty-runner</ artifactId > </ exclusion > </ exclusions > </ dependency > <!-- 添加hive依赖end --> <!-- https://mvnrepository.com/artifact/org.projectlombok/lombok --> < dependency > < groupId >org.projectlombok</ groupId > < artifactId >lombok</ artifactId > < version >1.18.24</ version > < scope >provided</ scope > </ dependency > < dependency > < groupId >junit</ groupId > < artifactId >junit</ artifactId > < version >4.12</ version > < scope >test</ scope > </ dependency > </ dependencies > < build > < finalName >community</ finalName > < resources > < resource > < directory >src/main/java</ directory > < includes > < include >**/*.properties</ include > < include >**/*.xml</ include > </ includes > < filtering >false</ filtering > </ resource > < resource > < directory >src/main/resources</ directory > < includes > < include >**/*.*</ include > </ includes > < filtering >false</ filtering > </ resource > </ resources > < plugins > < plugin > < groupId >org.springframework.boot</ groupId > < artifactId >spring-boot-maven-plugin</ artifactId > < configuration > < mainClass >com.mfc.hive.HiveApplication</ mainClass > < layout >ZIP</ layout > < includeSystemScope >true</ includeSystemScope > </ configuration > < executions > < execution > < goals > < goal >repackage</ goal > </ goals > </ execution > </ executions > </ plugin > </ plugins > </ build > </ project > |