antlr Activate maven profile for a particular version of ANTLR API: ANTLR 3: mvn clean package -Dantlr3 ANTLR 4: mvn clean package -Dantlr4