Running jsdoctk plugin without changing your project pom. Sometimes I want to run jsdoc for a project just so that I can get some quick information on the used javascripts, but I don't want to stick another dependency in the pom of the project. Because I kept running into this when working only for a single short task on big projects I went and figured out how to configure maven to include jsdoctk-plugin in its' list of 'known plugins'.
When you know what to do, it turns out to be really simple. All you have to do is add a few lines of xml to your 'settings.xml' which can be found in your 'user-directory'. On unix-like machines this would be at '~/.m2/settings.xml'.
Add the following xml:
{{{
<pluginGroups>
<pluginGroup>nl.windgazer</plugingroup>
</plugingroups>
}}}
And make sure you have at least version 2.0.1-RC1 of jsdoctk-plugin installed in maven2. Now all you have to do is go to your project-base and run ' *mvn jsdoctk:jsdoc* ' and presto! Because I introduced commandline configuration in 2.0.1-RC1 you can modify the defaults of the plugin without configuring your pom too. Just use the following set of parameters:
{{{
jsdoc.tempdir
jsdoc.directory
jsdoc.srcdir
jsdoc.template
jsdoc.extension
jsdoc.recurse
jsdoc.allfunctions
jsdoc.privateoption
}}}
With a default web-project structure you would get a good result using 'mvn jsdoctk:jsdoc -Djsdoc.recurse=5'.