'Use source files generated by ANTLR

I use ANTLR with the maven plugin to generate the source files. When creating them with mvn package they get correctly compiled and put together into target/generated-sources/antlr4, but from there I cannot access them in from my project.

My question is if I should be able to do this and import them somehow or if I need to move them from there to src.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source