On 07/01/2012, at 6:28 AM, Farrukh Najmi wrote: > > I am trying to use javascript-maven-plugin. It seems cool though the > documentation seems to be fairly minimal. Really? Are you looking at http://mojo.codehaus.org/javascript-maven-tools/ ?
Also, the project produced by the JS RIA archetype should help in terms of documentation (1). > > Can someone please tell me: > How do I consume a module of <type>js</type> produced by > javascript-maven-plugin in a module of <type>war</type> The trick here is to use the assembly plugin. You need to have a <type>js</type> module and then have an assembly.xml that produces a war artifact. > Which modules need the javascript-maven-plugin build extension. Is it just > the js module or also the war module? You can have a separate war module if you want. However using an assembly requires just the one module to produce the js. > Is there any other resource on using the javascript-maven-plugin in a large > multi-module project The javascript-maven-tools project has a number of js modules itself (2) and is a reasonable example. I've personally used javascript-maven-plugin in a multi module js/war/ear project. It should look and behave no differently to any other Maven module. > Any ETA for when javascript-maven-plugin 2.0.0 will be released I've pushed for the two remaining snapshot project dependencies it has (js import and web minifier) to go 1.0. Looks as though the voting is going well and I should be able to release them next week. The only thing then is what to do about m2e integration. We've been working on a high degree of compatibility with m2e but, quite honestly, we're finding this a challenge. We might abandon the m2e integration for the release of 2.0.0 as it is becoming a stopper for us. > Thanks for your help. Thanks for your interest! Please let me know if there is anything else we can do for you. Kind regards, Christopher (1) http://mojo.codehaus.org/javascript-maven-tools/javascript-ria-archetype/index.html (2) http://mojo.codehaus.org/javascript-maven-tools/javascript-libraries/index.html