Questions tagged [webjars]

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
  • Know which client-side dependencies you are using
  • Transitive dependencies magically appear

Check out the full list of WebJars at webjars.org

187 questions
74
votes
1 answer

Optimizing JS from WebJars using sbt-rjs in a Play 2.3.x app

Is it possible to have a Play 2.3 app concat/optimize JS (using sbt-rjs) that's included in my app via WebJars? To give a concrete example: I'm trying to create a core.js module which contains all my 3rd party libraries concatenated and minified in…
Dylan Hughes
  • 741
  • 4
  • 3
27
votes
4 answers

JQuery Availability on Maven Repositories

I noticed that there are a few Maven plugins for Eclipse that support JavaScript development. The problem with using these is that I cannot find any JavaScript artifacts in Maven Central Repository. Specifically, I was looking for JQuery. Is there…
Joe Wood
  • 1,135
  • 1
  • 12
  • 24
19
votes
5 answers

How to use Font Awesome from webjars.org with JSF

I am trying to use Font Awesome icons with my JSF application. I have had some success by following the getting started instructions and adding the following to my view's section:
Ryan Bennetts
  • 1,064
  • 1
  • 13
  • 27
11
votes
7 answers

Spring boot webjars: unable to load javascript library through webjar

I have a spring boot (I use Thymeleaf for templating) project where I want to use some jQuery libraries. Unfortunately, the webjars aren't loading at all. I have tried many configuration but all of them failed. Here is the code snippet of my HTML…
Master Mind
  • 2,746
  • 3
  • 26
  • 56
10
votes
2 answers

WebJars - Difference between the flavors?

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…
Adnan Z
  • 374
  • 2
  • 9
9
votes
1 answer

Step by step guide on how to create a webjar for Front-End Application?

Hello I've been looking for a step by step guide on how to create a webjar of an existing project. My Front-End project is currently using Angular 2 + webpack, I understand the files need to go in a specific directory META-INF/resources/webjars and…
Tuco
  • 712
  • 1
  • 14
  • 31
7
votes
1 answer

How to add WebJars to my Play app?

In order to use WebJars in my Play app I've added the following route GET /webjars/*file controllers.WebJarAssets.at(file) In my scala template I've added the following lines:
d135-1r43
  • 2,461
  • 1
  • 22
  • 33
5
votes
5 answers

Using Vue.js in a Play Framework Application

If anyone has experience using Vue.js as a frontend for a Play Framework application, I'd like to know the recommended approach. My current setup is a Play application (in Java) with Models, Controllers, and DAOs for handling REST requests - this is…
eyeezzi
  • 585
  • 5
  • 18
5
votes
1 answer

Spring Boot web app deployed to JBoss - webjars-locator does not appear to work

I have a small web app using Spring Boot 1.40 and I am having some issues with webjars-locator. When run on my machine using the embedded Tomcat, the webjars-locator works as expected, and I can access eg. jQuery with the following HTML:
5
votes
1 answer

How to activate circular dependencies in Play 2.5?

This question originates from a question that I asked two days ago. I implemented my own error handler which extends DefaultHttpErrorHandler. DefaultHttpErrorHandler extends HttpErrorHandler which is also used as a parameter errorHandler:…
John Doe
  • 275
  • 2
  • 12
5
votes
3 answers

Automatically inject WebJarAssets in Play 2.5 HTML template?

In my Play HTML template inside my custom module, I have the following line of code: This references a WebJarAssets class…
John Doe
  • 275
  • 2
  • 12
5
votes
1 answer

Remove webjars version from url

We are using webjars with maven in our project. So we have hundreds of JSPs with code like this: <%--JSP CODE--%>