I'm using the antlr4 maven plug-in to build my maven project which uses antlr4:
<groupId>org.antlr</groupId>
<artifactId>antlr4-maven-plugin</artifactId>
<version>4.0</version>
I started with one grammar file and got my pom.xml set-up and everything was building nicely.
Then I decided to split my grammar into logical parts and therefore used several grammar files but in different directories (so the generated code would be put into separate packages) but still all under the same root src/main/antlr4 directory.
I use the import statement in my "top" level grammar file to import the other required files.
But now maven gives me the following error when trying to build:
[ERROR] Message{errorType=CANNOT_FIND_IMPORTED_GRAMMAR
Why can't antlr find the other files that I am importing?
thanks, Ryan.