Skip to end of metadata
Go to start of metadata

Supported plugin

This is a connector for maven-jflex-plugin, a plugin for JFlex lexical analyzer generator. Maven coordinates of the plugin are de.jflex:maven-jflex-plugin version 1.4.2 and above.

Lifecycle mapping

Project configuration contribution

The configurator adds plugins output directory to project build classpath. Location of the output directory is determined by evaluation of ouputDirectory plugin parameter. Default value is target/generated-sources/jflex.

Project build contribution

Before executing the plugin, the connector checks source files for modification. lexDefinitions plugin parameter is evaluated, which is expected to provide a list of paths. For each path, the following check is made: If the path denotes a file, the file is checked for modification. If the path denotes a directory, the directory is scanned recursively for changes in any files. If lexDefinitions parameter is not defined, src/main/jflex directory is checked. If none of the checked files have been modified since last build, plugin execution is skipped.

After plugin execution contents of plugin output directory (determined by evaluating outputDirectory plugin parameter) are refreshed.

Known caveats

Right now all files in source directories are checked for modifications, although according to plugin documentation only files matching *.lex, *.flex, *.jlex, *.jflex patterns are processed. See TOOLS-40

Source code

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

Labels
  • None