Here is what I have found on my own so far....

On 01/06/2012 02:28 PM, Farrukh Najmi wrote:

I am trying to use javascript-maven-plugin. It seems cool though the documentation seems to be fairly minimal.

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>


It does not seem to be enough to simply declare the js module as dependency. I had to use the maven-dependency-plugin like this:

<plugin>
<artifactId>maven-dependency-plugin</artifactId>
<executions>
<execution>
<id>copy-js-deps</id>
<phase>generate-sources</phase>
<goals>
<goal>copy-dependencies</goal>
</goals>
<configuration>
<includeTypes>js</includeTypes>
<outputDirectory>${basedir}/target/classes/js</outputDirectory>
</configuration>
</execution>

</executions>
</plugin>


    * Which modules need the javascript-maven-plugin build extension.
      Is it just the js module or also the war module?


It appears that I only need to specify the javascript-maven-plugin build extension in modules with js packaging.

    * Is there any other resource on using the javascript-maven-plugin
      in a large multi-module project


Have not found anything else yet :-(

    * Any ETA for when javascript-maven-plugin 2.0.0 will be released


Still hoping that dev team can answer this and comment on previous questions. Thanks again for a great project.

--
Regards,
Farrukh Najmi

Web: http://www.wellfleetsoftware.com


Reply via email to