Resources Provided by the Extension
Using the javascript-maven-plugin extension in a project provides a number of changes to your project's lifecycle mappings, dependencies, plugins and plugin configurations in order to provide a suitable environment for JavaScript development.
These changes are listed in detail below:
| Phase | Plugin | Goal |
|---|
| process-sources | js-import-maven-plugin | import-js |
| generate-resources | js-import-maven-plugin | generate-html |
| process-resources | maven-resources-plugin | resources |
| process-resources | jslint-maven-plugin | jslint |
| process-test-sources | js-import-maven-plugin | test-import-js |
| generate-test-resources | js-import-maven-plugin | test-generate-html |
| process-test-resources | maven-resources-plugin | testResources |
| process-test-resources | jslint-maven-plugin | test-jslint |
| test-compile | maven-compiler-plugin | testCompile |
| test | maven-surefire-plugin | test |
| prepare-package | webminifier-maven-plugin | minify-js |
| package | TODO | TODO |
| install | maven-install-plugin | install |
| deploy | maven-deploy-plugin | deploy |
| Plugin | Configuration Notes |
|---|
| Jetty | Context path set to / |
| | Resource bases includes target/classes |
| | Resource bases includes target/test-classes |
| Compiler | |
| Surefire | |
| Site | maven-jstools-plugin reporting plugin added |
| | maven-jstools-plugin jsdoc report type added |
| | Exclude apt module |
| JS Import | |
| JS Lint | |
| Webminifier | |