diff --git a/spring-data-jpa/pom.xml b/spring-data-jpa/pom.xml
index ae3f2a928c5..02133bbb334 100644
--- a/spring-data-jpa/pom.xml
+++ b/spring-data-jpa/pom.xml
@@ -318,6 +318,39 @@
+
+ org.codehaus.mojo
+ build-helper-maven-plugin
+
+
+
+ set-antlr4-directory
+
+ uptodate-property
+
+
+ validate
+
+ antlr4.dir
+ antlr4-dummy
+ antlr4
+
+ ${project.basedir}/src/main/antlr4
+ ${project.build.directory}/generated-sources/antlr4
+
+ glob
+ *.g4
+ *.interp
+
+
+
+
+
+
+
org.antlr
antlr4-maven-plugin
@@ -330,7 +363,8 @@
generate-sources
true
- ${project.basedir}/src/main/antlr4
+
+ ${project.basedir}/src/main/${antlr4.dir}
@@ -338,8 +372,8 @@
com.google.code.maven-replacer-plugin
- maven-replacer-plugin
- 1.4.1
+ replacer
+ 1.5.3
process-sources
@@ -349,7 +383,8 @@
${project.build.directory}/generated-sources
- antlr4/**/*.java
+
+ ${antlr4.dir}/**/*.java
public class=class,public interface=interface