webjars / webjars-locator

MIT License
2 stars 7 forks source link

support running on the module path #4

Open guyv opened 4 years ago

guyv commented 4 years ago

When using webjars-locator in an application that runs on the module path (java 9 jpms modules), then following exception occurs at startup:

java.lang.module.ResolutionException: Modules webjars.locator and webjars.locator.core export package org.webjars

This can be fixed by using another package for the RequireJS class, eg org.webjars.requirejs

This is of course a breaking change for the consumers of this library. Changing the package in webjars-locator-core is also an option. But Spring Boot is depending on org.webjars.WebJarAssetLocator

Another option would be the use the maven-shade-plugin to include the classes of webjars-locator-core in this jar.

jamesward commented 4 years ago

I haven't done any research into supporting modules yet. But I suppose it's time. :)

guyv commented 4 years ago

any progress on this issue?