Skip to content

Commit

Permalink
Fix missing antlr-runtime dependency of hive engine when using nacos …
Browse files Browse the repository at this point in the history
…discovery (#5047)
  • Loading branch information
wForget authored Dec 17, 2023
1 parent b127dfa commit a452a1e
Show file tree
Hide file tree
Showing 2 changed files with 39 additions and 1 deletion.
39 changes: 39 additions & 0 deletions linkis-engineconn-plugins/hive/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -396,5 +396,44 @@
</dependency>
</dependencies>
</profile>

<!-- fix different discovery dependencies -->
<profile>
<id>eureka</id>
<activation>
<activeByDefault>true</activeByDefault>
<property>
<name>discovery</name>
<value>eureka</value>
</property>
</activation>
<dependencyManagement>
<dependencies>
<dependency>
<groupId>org.antlr</groupId>
<artifactId>antlr-runtime</artifactId>
<scope>provided</scope>
</dependency>
</dependencies>
</dependencyManagement>
</profile>
<profile>
<id>nacos</id>
<activation>
<property>
<name>discovery</name>
<value>nacos</value>
</property>
</activation>
<dependencyManagement>
<dependencies>
<dependency>
<groupId>org.antlr</groupId>
<artifactId>antlr-runtime</artifactId>
<scope>compile</scope>
</dependency>
</dependencies>
</dependencyManagement>
</profile>
</profiles>
</project>
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,6 @@
<exclude>javax.xml.bind:jaxb-api:jar</exclude>
<exclude>javax.xml.stream:stax-api:jar</exclude>
<exclude>mysql:mysql-connector-java:jar</exclude>
<exclude>org.antlr:antlr-runtime:jar</exclude>
<exclude>org.antlr:stringtemplate:jar</exclude>
<exclude>org.apache.commons:commons-compress:jar</exclude>
<exclude>org.apache.commons:commons-math:jar</exclude>
Expand Down

0 comments on commit a452a1e

Please sign in to comment.