Simple configuration If your grammar files are organized into the default locations as described in the {{{../index.html}introduction}}, then configuring the pom.xml file for your project is as simple as adding this to it +-- org.antlr antlr3-maven-plugin 3.1.3-1 antlr ... +-- When the mvn command is executed all grammar files under <<>>, except any import grammars under <<>> will be analyzed and converted to java source code in the output directory <<>>. Your input files under <<>> should be stored in sub directories that reflect the package structure of your java parsers. If your grammar file parser.g contains: +--- @header { package org.jimi.themuss; } +--- Then the .g file should be stored in: <<>>. THis way the generated .java files will correctly reflect the package structure in which they will finally rest as classes.