diff --git a/javacc-wrapper.xml b/javacc-wrapper.xml
index 05837e96ba..cde14d0ae1 100644
--- a/javacc-wrapper.xml
+++ b/javacc-wrapper.xml
@@ -25,9 +25,9 @@
It also uses the following maven properties:
- javacc.outputDirectory: Directory in which to root the generated package tree
- - javacc.jar: JAR of JavaCC in the local maven repository
+ - plugin-classpath: The classpath of maven-antrun-plugin with javacc.jar dependency
+ Provided by maven via ""
- some properties of project.build
-
-->
@@ -40,8 +40,6 @@
-
-
@@ -84,7 +82,7 @@
+ depends="checkUpToDate,init,jjtree,jjtree-ersatz,javacc,adapt-generated,default-visitor" />
@@ -104,9 +102,6 @@
-
-
-
@@ -117,11 +112,6 @@
-
-
-
-
-
+ classpath="${plugin-classpath}">
@@ -148,7 +138,7 @@
+ classpath="${plugin-classpath}">
diff --git a/pmd-cpp/pom.xml b/pmd-cpp/pom.xml
index adbfbd8e3c..a42c4f850a 100644
--- a/pmd-cpp/pom.xml
+++ b/pmd-cpp/pom.xml
@@ -34,10 +34,10 @@
+
-
diff --git a/pmd-java/pom.xml b/pmd-java/pom.xml
index d8131b8d65..2d82829d15 100644
--- a/pmd-java/pom.xml
+++ b/pmd-java/pom.xml
@@ -105,7 +105,7 @@
-
+
diff --git a/pmd-javascript/pom.xml b/pmd-javascript/pom.xml
index 5e4506efd4..ea4d55938d 100644
--- a/pmd-javascript/pom.xml
+++ b/pmd-javascript/pom.xml
@@ -47,10 +47,10 @@
+
-
diff --git a/pmd-jsp/pom.xml b/pmd-jsp/pom.xml
index 9f1d3fb223..790d5353f8 100644
--- a/pmd-jsp/pom.xml
+++ b/pmd-jsp/pom.xml
@@ -40,7 +40,7 @@
-
+
diff --git a/pmd-matlab/pom.xml b/pmd-matlab/pom.xml
index 373fa78a8d..42a69e2497 100644
--- a/pmd-matlab/pom.xml
+++ b/pmd-matlab/pom.xml
@@ -34,10 +34,10 @@
+
-
diff --git a/pmd-modelica/pom.xml b/pmd-modelica/pom.xml
index 639c224e2c..d551bc25a1 100644
--- a/pmd-modelica/pom.xml
+++ b/pmd-modelica/pom.xml
@@ -64,7 +64,7 @@
-
+
diff --git a/pmd-objectivec/pom.xml b/pmd-objectivec/pom.xml
index 66818f1a47..197c6dac58 100644
--- a/pmd-objectivec/pom.xml
+++ b/pmd-objectivec/pom.xml
@@ -34,10 +34,10 @@
+
-
diff --git a/pmd-plsql/pom.xml b/pmd-plsql/pom.xml
index 2e6ad097a4..26a5614255 100644
--- a/pmd-plsql/pom.xml
+++ b/pmd-plsql/pom.xml
@@ -40,7 +40,7 @@
-
+
diff --git a/pmd-python/pom.xml b/pmd-python/pom.xml
index 85b6643126..30326faeeb 100644
--- a/pmd-python/pom.xml
+++ b/pmd-python/pom.xml
@@ -34,10 +34,10 @@
+
-
diff --git a/pmd-velocity/pom.xml b/pmd-velocity/pom.xml
index 6cb54b0cd5..905cd6b41c 100644
--- a/pmd-velocity/pom.xml
+++ b/pmd-velocity/pom.xml
@@ -43,7 +43,7 @@
-
+
diff --git a/pmd-visualforce/pom.xml b/pmd-visualforce/pom.xml
index 7ae874578d..164795a623 100644
--- a/pmd-visualforce/pom.xml
+++ b/pmd-visualforce/pom.xml
@@ -47,7 +47,7 @@
-
+
diff --git a/pom.xml b/pom.xml
index 67269e26ad..fd7181a348 100644
--- a/pom.xml
+++ b/pom.xml
@@ -118,7 +118,7 @@
27
7.2.0
- ${settings.localRepository}/net/java/dev/javacc/javacc/${javacc.version}/javacc-${javacc.version}.jar
+
${project.build.directory}/generated-sources/javacc
${project.basedir}/../javacc-wrapper.xml