gpt4 book ai didi

java - ANTLR4 运行时 JAR

转载 作者:行者123 更新时间:2023-12-02 02:51:34 26 4
gpt4 key购买 nike

当我将以下依赖项添加到 IntelliJ IDEA 中的 Maven 项目时:

<!-- https://mvnrepository.com/artifact/org.antlr/antlr4 -->
<dependency>
<groupId>org.antlr</groupId>
<artifactId>antlr4</artifactId>
<version>4.7</version>
</dependency>

我的模块中有 7 个依赖项:

enter image description here

但是我如何知道运行时需要哪些 jar?分发 org.antlr.antlr4-runtime:4.7 就足够了,还是我需要其他 antlr 依赖项?

此外,我有 antlr4-runtime:4.7 以及 antlr-runtime:3.5.2,这似乎“错误”,但我不知道两者是否相同版本应该存在或不存在。

有什么想法吗?谢谢。

最佳答案

您当前依赖于 ANTLR 4 本身。如果您只需要 ANTLR 4 运行时,那么您需要依赖 Artifact antlr4-runtime,而不是 antlr4

这是否足够取决于您的应用程序的用途,但对于使用 ANTLR 4 编译语法的普通应用程序来说,它应该足够。

关于java - ANTLR4 运行时 JAR,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/43769424/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com