Antlr4 maven plugin cannot find grammar files in different directories

前端 未结 2 1916
青春惊慌失措
青春惊慌失措 2021-01-19 04:47

I\'m using the antlr4 maven plug-in to build my maven project which uses antlr4:

     org.antlr
     antlr4-         


        
2条回答
  •  情歌与酒
    2021-01-19 05:16

    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

提交回复
热议问题