add javascript dependencies like java dependencies in maven 2? -


i'm using apache maven build project, want add dependency javascript frameworks automatically based version , organizing javascript frameworks , , download modifiying label version . exist plugin similar java dependencies or alternative maven ?

there standard way of doing using feature of servlet api version 3. jar can expose web resources (javascripts, css, images, etc.) located under meta-inf/resources.

to solve problem create maven project of type "jar" every javascript framework want re-use in webapp projects.

the caveat servlet-api v3 requires tomcat 7, in turn requires java 6, not problem.

see blog: http://alexismp.wordpress.com/2010/04/28/web-inflib-jarmeta-infresources/

servlet api 3 reference: http://download.oracle.com/otndocs/jcp/servlet-3.0-fr-eval-oth-jspec/


Comments

Popular posts from this blog

python - How to create a legend for 3D bar in matplotlib? -

java - Multi-Label Document Classification -

php - Dynamic url re-writing using htaccess -