-
-
Notifications
You must be signed in to change notification settings - Fork 545
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Plugin Extensions are not detected with ClassLoadingStrategy.APD #449
Comments
…ClassLoadingStrategy.APD)
I can confirm that is a bug but it's somehow expected. |
Any progress on this? I seem to have hit the same issue. I am seeing a META-INF/extensions.idx that appears to be coming from the pf4j-spring-0.7.0.jar file which is getting used when I use the APD loading strategy. I am not clear on why that jar file has its own extensions.idx file. I posted a question on google groups just now:
|
@alegacy I didn't find a good solution yet. |
@decebals Thanks for confirming. I have manually removed the While we wait for an updated pf4j-spring jar to appear on maven central is there a gradle workaround that could be used to exclude that file automatically either when importing the dependency or when building the bootJar? |
@alegacy Released pf4j 3.8.0 and pf4j-spring 0.8.0 are now available on Maven Central repository. |
Thank you @decebals ! |
Hi,
I am trying to use pf4j/pf4j: Plugin Framework for Java (PF4J) (github.com) with spring and wanted to use Application first strategy for class loader.
Issue I am observing is whenever I use ClassLoadingStrategy.APD then extensions are not identified ( I mean not able to read extensions.idx file from plugin jar). Hence pluginmanager.getExtensions(pluginid) will always return empty.
I am setting ClassLoadingStrategy.APD for PluginClassLoader.
My Obervsation:
When extensionfinder trying to read extensions.idx it will always find one which is in my application.jar and that will not have any extensions. (getResource() method in the PluginClassloader will follow APD while loading the resource as it finds one in parent it will not attempt to load extensions from extensions.idx present in plugin jar)
Thank you
BhanuKiran
The text was updated successfully, but these errors were encountered: