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.
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.
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.
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With