I really tried hard but I cannot figure out how to let Maven handle WebJars so that I can:
Adding the dependencies to the pom.xml lets Maven download the files - so far so good. But Maven does not copy the content to the build directory so that the resulting path and file structure contains the dependencies.
My project can be found here: https://github.com/anthraxn8b/m3
I am new to nearly everything I use.
The JARs are copied to the WEB-INF/lib folder, when you package the WAR file. That's sufficient, you then can just access the resources (for example AngularJS with the path /webjars/angularjs/2.0.0-alpha.22/angular2.js).
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