Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

WebJars - Difference between the flavors?

Tags:

webjars

I'm planning to use WebJars (through Maven) instead of Bower for my projects.

What's the difference between the NPM, Bower and Classic flavors of WebJars?

My understanding is that since I used Bower, I should probably just use Bower WebJars since I can be sure that those artifacts will be available. Is that the right way to think about this?

Thanks, in advance, for the help.

like image 531
Adnan Z Avatar asked Jul 09 '15 19:07

Adnan Z


People also ask

How does WebJars work?

WebJars is simply taking the concept of a JAR and applying it to client-side libraries or resources. For example, the jQuery library may be packaged as a JAR and made available to your Spring MVC application. There are several benefits to using WebJars, including support for Java build tools such as Gradle and Maven.

What is WebJars bootstrap?

WebJars are client-side web libraries (e.g. jQuery & Bootstrap) packaged into JAR (Java Archive) files. Explicitly and easily manage the client-side dependencies in JVM-based web applications. Use JVM-based build tools (e.g. Maven, Gradle, sbt, ...) to download your client-side dependencies.


1 Answers

It depends on where you want the source artifacts to come from. Classic WebJars usually come from a binary distribution of a library. Bower and NPM WebJars come from their respective sources.

The Classic WebJars are manually created and published by WebJar contributors. Bower and NPM WebJars can be published by anyone.

like image 154
James Ward Avatar answered Oct 09 '22 18:10

James Ward