Plugin Documentation
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 ( |
System Requirements
The following specifies the minimum requirements to run this Maven plugin:
Maven | 2.0.6 |
JDK | 1.8 |
Memory | No minimum requirement. |
Disk Space | No minimum requirement. |
Usage
You should 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>3.0.1</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>3.0.1</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>3.0.1</version> </plugin> ... </plugins> </reporting> ... </project>
For more information, see "Guide to Configuring Plug-ins"