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.
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.