Antlr4语法、Eclipse和Maven。在我的代码中看不到生成的 类

Antlr4 grammar, Eclipse and Maven. Cannot see generated classes on my code

Eclipse Oxygen.3a 版本 4.7.3a 专家

我有一个项目,有很多类。

我试图创建一个 Antlr4 语法,所以我在 src/main/java/antlr4/mygrammar.g4.

上有我的 .g4 文件

Antlr4 不生成任何东西。

我的pom.xml:

<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>wiz</groupId>
<artifactId>calculo</artifactId>
<version>0.0.1</version>
<name>calculo</name>
<description>Cálculo do Sistema de Folha de Pagamento</description>

<scm>
    <connection>scm:git:https://github.com/zsoltherpai/fluent-jdbc.git</connection>
    <developerConnection>scm:git:git@github.com:zsoltherpai/fluent-jdbc.git</developerConnection>
    <url>https://github.com/zsoltherpai/fluent-jdbc</url>
</scm>

<properties>
    <maven.compiler.source>1.8</maven.compiler.source>
    <maven.compiler.target>1.8</maven.compiler.target>
</properties>

<dependencies>
    <dependency>
        <groupId>org.codejargon</groupId>
        <artifactId>fluentjdbc</artifactId>
        <version>1.8.3</version>
    </dependency>

    <dependency>
        <groupId>org.antlr</groupId>
        <artifactId>antlr4</artifactId>
        <version>4.7.1</version>
    </dependency>

    <dependency>
        <groupId>com.oracle</groupId>
        <artifactId>ojdbc7</artifactId>
        <version>12.1.0</version>
    </dependency>
</dependencies>

<build>
    <plugins>
        <plugin>
            <groupId>org.antlr</groupId>
            <artifactId>antlr4-maven-plugin</artifactId>
            <version>4.7.1</version>
            <executions>
                <execution>
                    <id>antlr</id>
                    <goals>
                        <goal>antlr4</goal>
                    </goals>
                </execution>
            </executions>
        </plugin>
    </plugins>
</build>

我错过了什么?我需要手动调用什么吗?

I have my .g4 file on src/main/java/antlr4/mygrammar.g4.

ANTLR4 maven 插件期望语法在 src/main/antlr4,而不是 src/main/java/antlr4