Skip to end of metadata
Go to start of metadata

Supported plugin

This is a connector for jsc-maven-plugin, org.objectledge.maven.plugins:jsc-maven-plugin version 1.0.0 and above.

Lifecycle mapping

Project configuration contribution

The connector adds the output directory of the plugin to project build classpath as a library item. There's a catch however - if the output folder is target/classes, which is target directory of Java compiler, it cannot be used as a library item. For this reason, the name of the target directory is overridden by inserting prefix js- at the beginning of the last path segment. Thus instead of target/classes, target/js-classes will be added to the classpath as a library.

Project build contribution

Before executing the plugin the connector checks all files under the directory referenced in sourceDirectory parameter of the plugin for modifications. If the parameter is not defined, src/main/js directory is checked. If none of the files were modified since last build, plugin execution is skipped.

During execution of the plugin under the control of the connector the output directory of the plugin is overridden in the manner described in the previous section.

After execution of the plugin, all files in the modified output directory are refreshed.

Known caveats

Sometimes 'project is missing required source folder target/js-classes' error is reported. Cleaning the project is a manual workaround. This needs to be investigated. See TOOLS-41

Source code

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

Labels: