Written by
  • email
  • twitter
  • linkedin
  • linkedin

Every JEE developer will eventually need some Javascript & CSS spice in his applications: jQuery, jQuery UI, Bootstrap, AngularJS, highlight.js, YUI ... What's the usual solution? Grab files from somewhere and statically include them in your source tree.

Every JEE developer will eventually need some Javascript & CSS spice in his applications: jQuery, jQuery UI, Bootstrap, AngularJS, highlight.js, YUI ...

What's the usual solution? Grab files from somewhere and statically include them in your source tree.

Result: trouble upgrades and license headhaches, especially if you took the good decision to release your code as Open Source.

We used to fall exactly in this uncomfortable trap at Apache Syncope, especially for the shining, eye-candy, AJAX-powered, web admin console, when I found WebJars, a great Open Source project with purpose of packaging client-side web libraries 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

Now that SYNCOPE-443 has been fixed, Apache Syncope 1.2.0 will benefit from WebJars: nice work, guys!

1 VOTIYes, Excellent!Yes, Excellent!
Ti è stato utile questo articolo?
From Tirasa's Blog
The place where we share what we do, learn and discover day by day.
Go to blog >