Skip to content

Ensure the classloader used for exec:java is a child first impl and that classpath used by it is controlled #160

@rmannibucau

Description

@rmannibucau

Currently we can gather dependencies from the project and plugin def (+ additional elements) but it is impossible to solve conflicts with exclusions properly (in particular if you have multiple executions).
To add to that issue, the classloader used to do the exec is not a child first but a parent first so we inherit from the mojo classloader tree which is highly unlikely.

This issue is about ensuring classpath is more controlled but is not about fully isolating the exec from the parent classloader (would break too much projects I think and would need more thoughts about the design of the config (list of classes? packages? jars?...).

Example: it is insanely common with slf4j to have N > 1 bindings due to that.

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