WebJars are client-side web libraries (e.g. jQuery & Bootstrap) packaged into JAR (Java Archive) files.

WebJars come in four flavors:

NPM WebJars

  • Contents mirror NPM package
  • GroupId: org.webjars.npm
  • ArtifactId: NPM Package or URL-based Name

Bower GitHub WebJars

  • Contents mirror Bower package
  • GroupId: org.webjars.bowergithub.[GITHUB_ORG]
  • ArtifactId: GitHub Repo Name

Classic WebJars

  • Custom Built and Manually Deployed
  • GroupId: org.webjars
  • ArtifactId: Varies

Bower Original WebJars

  • Deprecated Use Bower GitHub WebJars instead
  • GroupId: org.webjars.bower
  • ArtifactId: Bower Package or URL-based Name

Popular WebJars

Name Versions Build Tool:
Files
Swagger UI
"org.webjars" % "swagger-ui" % "3.48.0"
jquery
"org.webjars" % "jquery" % "3.6.0"
npm
"org.webjars" % "npm" % "5.0.0-2"
Bootstrap
"org.webjars" % "bootstrap" % "5.0.0"
@angular/http
"org.webjars.npm" % "angular__http" % "8.0.0-beta.10"
Popper.js
"org.webjars" % "popper.js" % "2.9.2"
Font Awesome
"org.webjars" % "font-awesome" % "5.15.2"
Envjs
"org.webjars" % "envjs" % "1.2"
jQuery UI
"org.webjars" % "jquery-ui" % "1.12.1"
D3.js
"org.webjars" % "d3js" % "6.6.0"
DataTables
"org.webjars" % "datatables" % "1.10.24"
mobile-drag-drop
"org.webjars.npm" % "mobile-drag-drop" % "2.3.0-rc.2"
@vaadin/vaadin-mobile-drag-drop
"org.webjars.npm" % "vaadin__vaadin-mobile-drag-drop" % "1.0.0"
whatwg-fetch
"org.webjars.npm" % "whatwg-fetch" % "3.6.2"
@mdi/font
"org.webjars.npm" % "mdi__font" % "5.8.55"
jquery
"org.webjars.bower" % "jquery" % "3.6.0"
Handlebars
"org.webjars" % "handlebars" % "4.7.6"
stomp-websocket
"org.webjars" % "stomp-websocket" % "2.3.4"
SockJS-client
"org.webjars" % "sockjs-client" % "1.5.1"
LESS
"org.webjars" % "less" % "3.8.1"
All WebJars