diff --git a/javacc-wrapper.xml b/javacc-wrapper.xml
index 88ceeb09b3..bc0b1f9106 100644
--- a/javacc-wrapper.xml
+++ b/javacc-wrapper.xml
@@ -13,17 +13,19 @@
By convention the grammar file must be named exactly
so with a .jj[t] extension.
- lang-terse-name: Terse name, used in the conventional package names
- - target: Directory in which to root the generated package tree
- - source-dir: Root of the package tree in which the main sources live (src/main/java).
- This is used to check for duplicate files, any duplicate
- JJTree nodes will be removed automatically.
+
+ 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
+ - some properties of project.build
-->
-
-
+
+
-
+
@@ -74,7 +76,7 @@
-
+
@@ -118,8 +120,8 @@
-
-
+
+
diff --git a/pmd-java/pom.xml b/pmd-java/pom.xml
index 3417b76706..b8501a5e1d 100644
--- a/pmd-java/pom.xml
+++ b/pmd-java/pom.xml
@@ -52,17 +52,18 @@
generate-sources
generate-sources
-
-
-
-
-
-
-
-
run
+
+
+
+
+
+
+
+
+
diff --git a/pmd-modelica/pom.xml b/pmd-modelica/pom.xml
index 0db65a0d03..da02596f33 100644
--- a/pmd-modelica/pom.xml
+++ b/pmd-modelica/pom.xml
@@ -40,8 +40,6 @@
-
-
diff --git a/pom.xml b/pom.xml
index 7d1d278ec7..36c85d9c8a 100644
--- a/pom.xml
+++ b/pom.xml
@@ -108,7 +108,8 @@ Objective-C, Perl, PHP, PLSQL, Python, Ruby, Salesforce.com Apex, Scala, Swift a
6.19.0
${settings.localRepository}/net/java/dev/javacc/javacc/${javacc.version}/javacc-${javacc.version}.jar
- ../javacc-wrapper.xml
+ ${project.build.directory}/generated-sources/javacc
+ ${project.basedir}/../javacc-wrapper.xml