Skip to content

Loading plugin as spring boot executable jar  #48

Open
@fabioformosa

Description

@fabioformosa

I've tested loading a plugin developed with spring boot.

Normally, a spring boot project (it could be the plugin) is built with spring-boot-maven-plugin that create a spring boot executable jar, that is a fat jar that contains classes + libs.

The structure of a spring boot executable jar is different than a standard jar, look at this doc page: https://docs.spring.io/spring-boot/docs/current/reference/html/appendix-executable-jar-format.html#executable-jar-jar-file-structure

So plugin classes (and extension.idx) are placed, into the jar, at this folder: BOOT-INF/classes.
Is there a way for pf4j to search classes not in the root of jar but in a subfolder of it?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions