Open gerdhub opened 5 years ago
Hi! Sorry to hear that, I'll try to look into it as soon as I have some time in hand. The official PlugFace Demo, although a bit outdated, covers Spring Boot but not in web mode. You may start looking at it, but if the problem is related to Spring Boot Web it may not be of help.
@MatteoJoliveau the problem is not related with Spring Web. I have same issue without web dependency.
When I'v added maven-shade-plugin to my plugin the problem was partly resolved. Now I have problem with lombok and org/elasticsearch/monitor/jvm/JvmPid and the jar has 50mb(!)
I'm trying to test plugface with a modular spring boot project, having the following structure:
Both server and plugins have a dependency on api:
and the plugins are packaged as jars like
Everything works fine in eclipse IDE.
However, when I call
pluginManager.loadPlugins(PluginSources.jarSource(new File(pluginPath).toURI()));
from a compiled fat jar via a rest call on the server, I get the following exception:
If I call the function during @PostConstruct, I get
Fist I thought of any problems with different loading contexts and changed the scope of the api dependency to "provided" for the plugins. However, I still get the same errors at runtime.
Is there any test for a packaged plugin I can have a look into?