Goals available for this plugin:
| Goal | Report? | Description |
|---|---|---|
| javacc:help | No | Display help information on javacc-maven-plugin. Call
mvn javacc:help -Ddetail=true -Dgoal=<goal-name>to display parameter details. |
| javacc:javacc | No | Parses a JavaCC grammar file (*.jj) and transforms it
to Java source files. Detailed information about the JavaCC options
can be found on the JavaCC
website. |
| javacc:jjdoc | Yes | JJDoc
takes a JavaCC parser specification and produces documentation for
the BNF grammar. This mojo will search the source directory for all
*.jj files and run JJDoc once for each file it finds.
Each of these output files, along with an index.html
file will be placed in the site directory
(target/site/jjdoc), and a link will be created in the
"Project Reports" menu of the generated site. |
| javacc:jjtree | No | Deprecated. As of version 2.4, use the jjtree-javacc goal instead. |
| javacc:jjtree-javacc | No | Preprocesses decorated grammar files (*.jjt) with
JJTree and passes the output to JavaCC in order to finally generate
a parser with parse tree actions. |
| javacc:jtb | No | Deprecated. As of version 2.4, use the jtb-javacc goal instead. |
| javacc:jtb-javacc | No | Preprocesses ordinary grammar files (*.jtb) with JTB
and passes the output to JavaCC in order to finally generate a
parser with parse tree actions.Note: JTB requires Java 1.5 or higher. This goal will not work with earlier versions of the JRE. |
The following specifies the minimum requirements to run this Maven plugin:
| Maven | 2.0 |
| JDK | 1.4 |
| Memory | No minimum requirement. |
| Disk Space | No minimum requirement. |
You could run 'mvn -up' to get the latest version of this plugin, or specify the version in your project's plugin configuration:
<project>
...
<build>
<!-- To define the plugin version in your parent POM -->
<pluginManagement>
<plugins>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>javacc-maven-plugin</artifactId>
<version>2.5</version>
</plugin>
...
</plugins>
</pluginManagement>
<!-- To use the plugin goals in your POM or parent POM -->
<plugins>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>javacc-maven-plugin</artifactId>
<version>2.5</version>
</plugin>
...
</plugins>
</build>
...
<!-- To use the report goals in your POM or parent POM -->
<reporting>
<plugins>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>javacc-maven-plugin</artifactId>
<version>2.5</version>
</plugin>
...
</plugins>
</reporting>
...
</project>