You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Manos Batsis <ma...@geekologue.com> on 2007/02/19 16:02:41 UTC

Artifact for Javascript libraries?

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: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org