Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I install JQuery into my web app using Maven?

I am looking at using Maven 3 for some web development. I know how to use maven to resolve java based jar files. How do I use maven to resolve JavaScript dependencies for example I want to have maven automatically put jquery in my webapp/js folder?

Is it possible to do transative JavaScript dependencies with Maven 3?

like image 1000
ams Avatar asked Nov 22 '11 21:11

ams


People also ask

Does Maven support Javascript?

Be it software, web, or mobile- Maven does it all. We skillfully leverage the React JS JavaScript framework to deliver the most complex and challenging React JS development service seamlessly.

Can Maven be used for Javascript projects?

It's used to automate various Javascript tasks including minification, obfuscation, and testing. It's also used to help with other types of static content such as Sass, CSS and even HTML. In this article, you'll learn how to use Grunt in a Maven project to minify your Javascript files.

How to add jQuery to NetBeans?

To add the jQuery library to your NetBeans project, simply copy the library folder from its location on your computer, and paste it directly into your project in the IDE's Projects window.


1 Answers

You could create your own "war" that has jquery in it on the path you specified.

Afterwards add that war to your real web application. Maven should merge it. I think it was called somehting like "processing overlay".

I'm using the same for some GWT application where the javascript is generated by a maven plugin and it works well.

like image 133
Udo Held Avatar answered Sep 24 '22 22:09

Udo Held