Skip to end of metadata
Go to start of metadata

Supported plugin

This is a connector for JavaCC maven plugin, org.codehaus.mojo:javacc-maven-plugin. Right now the version range is specified as 2.6 and above but there's a good chance it could be relaxed to earlier versions too.javacc and jjtree-javacc goals are supported, jtb-javacc goal will be supported in a future release.

Lifecycle mapping

Project configuration contribution

The configurator adds Java sources generated by JavaCC compiler to project build classpath. In case of javacc goal, outputDirectory plugin parameter is evaluated (default value is target/generated-sources/javacc) and in case of jjtree-javacc goal both outputDirectory and interimDirectory are evaluated add added to the classpath. Default value of the latter parameter is target/generated-sources/jjtree

Project build contribution

The configurator checks the contents of the source directory, determined by evaluation of sourceDirectory plugin parameter, and if none of the files inside this directory (including subdirectories) has changed since last build, plugin execution is skipped.

After the build the contents of plugin outputDirectory are refreshed.

Known caveats

  • jtb-javacc goal is not supported
  • As of version 1.0.0 interimDirectory contents are not refreshed after plugin execution, see TOOLS-39.

Source code

https://github.com/objectledge/maven-extensions/tree/master/connectors/modules/javacc

Labels: