pom.xml
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 <parent>
6 <groupId>org.springframework.boot</groupId>
7 <artifactId>spring-boot-starter-parent</artifactId>
8 <version>3.3.3</version>
9 <relativePath/> <!-- lookup parent from repository -->
10 </parent>
11 <groupId>com.lian</groupId>
12 <artifactId>hiveDemo</artifactId>
13 <version>0.0.1-SNAPSHOT</version>
14 <name>hiveDemo</name>
15 <description>hiveDemo</description>
16 <url/>
17 <licenses>
18 <license/>
19 </licenses>
20 <developers>
21 <developer/>
22 </developers>
23 <scm>
24 <connection/>
25 <developerConnection/>
26 <tag/>
27 <url/>
28 </scm>
29 <properties>
30 <java.version>17</java.version>
31 </properties>
32 <dependencies>
33 <dependency>
34 <groupId>org.springframework.boot</groupId>
35 <artifactId>spring-boot-starter</artifactId>
36 </dependency>
37
38 <dependency>
39 <groupId>org.springframework.boot</groupId>
40 <artifactId>spring-boot-starter-test</artifactId>
41 <scope>test</scope>
42 </dependency>
43
44 <dependency>
45 <groupId>org.springframework.boot</groupId>
46 <artifactId>spring-boot-starter-web</artifactId>
47 </dependency>
48
49 <!-- Hive JDBC 驱动 -->
50 <dependency>
51 <groupId>org.apache.hive</groupId>
52 <artifactId>hive-jdbc</artifactId>
53 <version>3.1.2</version>
54 <!-- <exclusions>-->
55 <!-- <exclusion>-->
56 <!-- <groupId>org.slf4j</groupId>-->
57 <!-- <artifactId>slf4j-reload4j</artifactId>-->
58 <!-- </exclusion>-->
59 <!-- <exclusion>-->
60 <!-- <groupId>org.eclipse.jetty</groupId>-->
61 <!-- <artifactId>jetty-all</artifactId>-->
62 <!-- </exclusion>-->
63 <!-- <exclusion>-->
64 <!-- <groupId>org.eclipse.jetty</groupId>-->
65 <!-- <artifactId>jetty-server</artifactId>-->
66 <!-- </exclusion>-->
67 <!-- </exclusions>-->
68
69 <exclusions>
70 <exclusion>
71 <groupId>org.apache.orc</groupId>
72 <artifactId>*</artifactId>
73 </exclusion>
74 <exclusion>
75 <groupId>javax.servlet.jsp</groupId>
76 <artifactId>javax.servlet.jsp-api</artifactId>
77 </exclusion>
78 <exclusion>
79 <groupId>org.eclipse.jetty</groupId>
80 <artifactId>*</artifactId>
81 </exclusion>
82 <exclusion>
83 <groupId>io.netty</groupId>
84 <artifactId>*</artifactId>
85 </exclusion>
86 <exclusion>
87 <groupId>org.apache.hbase</groupId>
88 <artifactId>hbase-hadoop-compat</artifactId>
89 </exclusion>
90 <exclusion>
91 <groupId>org.apache.hbase</groupId>
92 <artifactId>*</artifactId>
93 </exclusion>
94 </exclusions>
95 </dependency>
96
97 <!-- MySQL Connector (如果需要) -->
98 <dependency>
99 <groupId>com.mysql</groupId>
100 <artifactId>mysql-connector-j</artifactId>
101 <scope>runtime</scope>
102 </dependency>
103
104 <dependency>
105 <groupId>com.baomidou</groupId>
106 <artifactId>mybatis-plus-boot-starter</artifactId>
107 <version>3.4.1</version>
108 </dependency>
109
110 <!-- SLF4J 日志 -->
111 <dependency>
112 <groupId>org.slf4j</groupId>
113 <artifactId>slf4j-api</artifactId>
114 <version>2.0.16</version>
115 </dependency>
116
117
118
119 <!-- Hadoop Common -->
120 <dependency>
121 <groupId>org.apache.hadoop</groupId>
122 <artifactId>hadoop-common</artifactId>
123 <version>3.3.5</version>
124 <exclusions>
125 <exclusion>
126 <groupId>org.slf4j</groupId>
127 <artifactId>slf4j-reload4j</artifactId>
128 </exclusion>
129 <exclusion>
130 <groupId>org.slf4j</groupId>
131 <artifactId>slf4j-reload4j</artifactId>
132 </exclusion>
133 <exclusion>
134 <groupId>org.eclipse.jetty</groupId>
135 <artifactId>jetty-all</artifactId>
136 </exclusion>
137 <exclusion>
138 <groupId>org.eclipse.jetty</groupId>
139 <artifactId>jetty-server</artifactId>
140 </exclusion>
141 </exclusions>
142 </dependency>
143
144 <!-- Hadoop HDFS (如果需要与 HDFS 交互) -->
145 <dependency>
146 <groupId>org.apache.hadoop</groupId>
147 <artifactId>hadoop-hdfs</artifactId>
148 <version>3.3.5</version>
149 <exclusions>
150 <exclusion>
151 <groupId>org.slf4j</groupId>
152 <artifactId>slf4j-reload4j</artifactId>
153 </exclusion>
154 <exclusion>
155 <groupId>org.slf4j</groupId>
156 <artifactId>slf4j-reload4j</artifactId>
157 </exclusion>
158 <exclusion>
159 <groupId>org.eclipse.jetty</groupId>
160 <artifactId>jetty-all</artifactId>
161 </exclusion>
162 <exclusion>
163 <groupId>org.eclipse.jetty</groupId>
164 <artifactId>jetty-server</artifactId>
165 </exclusion>
166 </exclusions>
167 </dependency>
168
169
170
171
172
173
174
175 <!-- <dependency>-->
176 <!-- <groupId>org.glassfish.web</groupId>-->
177 <!-- <artifactId>jakarta.servlet.jsp.jstl</artifactId>-->
178 <!-- <version>3.1.0</version>-->
179 <!-- </dependency>-->
180
181
182
183
184 </dependencies>
185
186 <build>
187 <plugins>
188 <plugin>
189 <groupId>org.springframework.boot</groupId>
190 <artifactId>spring-boot-maven-plugin</artifactId>
191 </plugin>
192
193 <plugin>
194 <groupId>org.apache.maven.plugins</groupId>
195 <artifactId>maven-compiler-plugin</artifactId>
196 <version>3.8.1</version>
197 <configuration>
198 <source>17</source>
199 <target>17</target>
200 </configuration>
201 </plugin>
202
203 </plugins>
204 </build>
205
206 </project>