Jak automatycznie wygenerować parser Lexer + z ANTLR4 i Maven?

Jestem nowy w ANTLR4 i wygląda na to, że nie ma wtyczki Eclipse dla v4. Dobrze byłoby więc automatycznie budować źródła Java z gramatyk .g4. Mam prosty, pusty projekt Maven z src / main / java, src / test / java. Gdzie umieścić pliki .g4? Jak mogę automatycznie budować gramatyki za pomocą Maven?

Mój własny test POM nie powiódł się:

<repository>
    <id>mvn-public</id>
    <name>MVNRepository</name>
    <url>http://mvnrepository.com</url>
</repository>

...

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

Eclipse mówi:

Failure to find org.antlr:antlr4-maven-plugin:pom:4.0.0 in http://repo.maven.apache.org/maven2 was cached in the local repository, resolution will not be reattempted until the update interval of
central has elapsed or updates are forced

questionAnswers(2)

yourAnswerToTheQuestion