Goals available for this plugin:
Goal | Description |
---|---|
javascript:attach-compressed | Goal used to package compressed JavaScript files and package them as a javascript archive attaching this new artifact to the project for beeing installed / deployed with the regular uncompressed js-archive. |
javascript:attach-stripped | Goal used to package stripped JavaScript files and package them as a javascript archive attaching this new artifact to the project for beeing installed / deployed with the regular uncompressed js-archive. |
javascript:compile | Goal which assemble javascript sources into the packaging directory. An optional assembler descriptor can be set to configure scripts to be merged. Other scripts are simply copied to the output directory. |
javascript:compress | Goal used to strip and compress the JavaScript files from the target script directory |
javascript:generateManualRunner | No description. |
javascript:help | Display help information on javascript-maven-plugin. Call mvn javascript:help -Ddetail=true -Dgoal=<goal-name>to display parameter details. |
javascript:inplace | Goal that copies javascript dependencies to the web application script folder, inside the webapp source directory. This allows to prepare the webapp for running on a lightweight servlet container that does not requires packaging (when using the jetty:run goal). |
javascript:jasmine | No description. |
javascript:jsunit | Goal which runs javascript tests using jsunit framework. Tests can be writter either inside an html page, as documented by jsunit, or simply as javascript. |
javascript:package | Goal which packages scripts and resources as a javascript archive to be installed / deployed in maven repositories. |
javascript:prepare-jasmine-tests | Goal which copies scripts to the jasmine target directory. |
javascript:prepare-jsunit-tests | Goal which copies scripts to the test-script directory. |
javascript:prepare-titanium-jasmine-tests | This Mojo create the titanium project structure required to execute the jasmine tests. |
javascript:titanium-compile | Goal that will place in a titanium build directory the file needed to create a titanium package. |
javascript:titanium-jasmine | No description. |
javascript:titanium-package | Compile the titanium application based on the selected platform. |
javascript:titanium-prepare-package | This goal strips and compress the source scripts in order to create the distribution package. |
javascript:war-compress | Goal to be used from a war project, to compress the scripts present in the webapp packaging folder. Configured to run in the test phase as there is no way (in maven 2.0) to run between exploded webapp assembly and .war packaging. |
javascript:war-package | Goal that prepares scripts for packaging as a web application. |
The following specifies the minimum requirements to run this Maven plugin:
Maven | 2.0 |
JDK | 1.5 |
Memory | No minimum requirement. |
Disk Space | No minimum requirement. |
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.javascript</groupId> <artifactId>javascript-maven-plugin</artifactId> <version>1.1-softec</version> </plugin> ... </plugins> </pluginManagement> <!-- To use the plugin goals in your POM or parent POM --> <plugins> <plugin> <groupId>org.codehaus.mojo.javascript</groupId> <artifactId>javascript-maven-plugin</artifactId> <version>1.1-softec</version> </plugin> ... </plugins> </build> ... </project>
For more information, see "Guide to Configuring Plug-ins"