The MobilVox Maven JavaScript Plugin Project (maven-js-plugin) is used for manipulating JavaScript in web applications that are built using Maven. The plugin and its source are released under the BSD license.
The currently implemented goals are compression based. The compress goal compresses JavaScript within a Maven Java web application, the compress-site goal compresses JavaScript within a Maven site, and the compress-custom goal compresses JavaScript in user defined input and output directories in the build output directory. The main idea driving the development of the plugin is to provide JavaScript compression in a Maven application while leaving the code in the development directories untouched.
The implemented compression algorithm for the maven-js-plugin removes the following from JavaScript:
During testing the compression algorithm shows a compression ratio ranging from 55% - 60%.
The maven-js-plugin POM configuration has been updated for version 1.3.1. If you are using versions 1.2 or 1.3 and plan on updating to version 1.3.1, the configuration for the plugin in the POM may also need to be updated. Please see the configuration and usage pages for full details regarding upgrades as well as the release notes for a full list of changes.
The current stable version is 1.3.1, released January 29, 2008.
The current development version is 1.4-SNAPSHOT. The source can be obtained via Subversion at the following URL:
https://maven-js-plugin.svn.sourceforge.net/svnroot/maven-js-plugin/trunk/maven-js-plugin/