I\'m using the antlr4 maven plug-in to build my maven project which uses antlr4:
org.antlr antlr4-
I had the same problem and solved with the following configuration:
${basedir}/src/main/antlr4/yourGrammarDirectory
Look here: How to import grammar in Antlr4 to build with maven