I'm trying to figure out a good enough way to package javascript
libraries with Maven, for use with projects producing WAR artifacts. The
closest related resource i have found is "Using Maven to modularize
JavaScript" but it is rather outdated (M1).
Perhaps it could be a good idea to introduce a new packaging type that
follows the JSAN package structure [2] (using an appropriate plugin to
assemble the artifact) and make the maven-war-plugin aware of the
packaging type.
Still, how would one use the JS from (e.g.) JSP files? Some ideas:
a) Make maven-war-plugin aware of the package type by introducing a
property to point where JS code (extracted from the JSANish artifacts)
should be placed in the WAR. The responsibility of accessing those are
with the developer in this case
b) introduce a JSP tag library that fetches (and maybe caches) JS code
from the JSANish artifacts.
To summarize, here are my questions:
* Is anyone working in something similar or otherwise have any ideas?
* Does it make sense to introduce a new packaging type (err, how do i do
that)? Do you think JSAN is appropriate?
[1]
http://ajaxian.com/archives/using-maven-to-modularize-javascript-development
[2] http://www.openjsan.org/documentation/dists.html
thanks,
Manos
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]