Skip to content

Commit a12b76b

Browse files
committed
IDEA-93855
1 parent e8eb156 commit a12b76b

File tree

1 file changed

+12
-8
lines changed

1 file changed

+12
-8
lines changed

Diff for: kyuubi-server/pom.xml

+12-8
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@
7777

7878
<dependency>
7979
<groupId>org.apache.kyuubi</groupId>
80-
<artifactId>kyuubi-hive-jdbc</artifactId>
80+
<artifactId>${hive.jdbc.artifact}</artifactId>
8181
<version>${project.version}</version>
8282
</dependency>
8383

@@ -269,17 +269,21 @@
269269
<scope>test</scope>
270270
</dependency>
271271

272-
<dependency>
273-
<groupId>org.apache.kyuubi</groupId>
274-
<artifactId>${hive.jdbc.artifact}</artifactId>
275-
<version>${project.version}</version>
276-
<scope>test</scope>
277-
</dependency>
278-
272+
<!--
273+
The server module does not consume the spark-sql-engine classes, but it supposes that
274+
spark-sql-engine's jar existed on the target folder, so here we declare it as a dependency
275+
to make sure that Maven always process spark-sql-engine module before the server module.
276+
IntelliJ IDEA 2024.1 fixed the IDEA-93855, thus the relocated classes inside the
277+
spark-sql-engine's shaded jar are visible in the server module in IDEA, for example,
278+
`org.apache.kyuubi.shaded.spark.connect.proto.ExecutePlanRequest`, which silently breaks
279+
the IDEA code analysis and jumping capabilities. This seems could be workaround by changing
280+
the dependency type from `jar`(default value) to `pom`.
281+
-->
279282
<dependency>
280283
<groupId>org.apache.kyuubi</groupId>
281284
<artifactId>kyuubi-spark-sql-engine_${scala.binary.version}</artifactId>
282285
<version>${project.version}</version>
286+
<type>pom</type>
283287
<scope>test</scope>
284288
</dependency>
285289

0 commit comments

Comments
 (0)