Skip to content

JLink leads to failure depending subprojects #187

@FlorianKirmaier

Description

@FlorianKirmaier

When JLink is enabled in the plugin,
other projects that depend on the project using JLink fail to build.

It seems that the jar/class files are not provided to the subproject, but instead only a zip file is generated, for example:
/Users/floriankirmaier/projects/playground/javafx-jlink-subproject-bug/app/target/app.zip

I have created an example project that demonstrates this problem:
https://github.com/FlorianKirmaier/javafx-plugin-maven-bug-subprojects-jlink

In the example, using the plugin without JLink works fine. But enabling JLink causes the build to fail.
This is reflected in the profiles -Pworks and -Pfails.

Example run:
https://github.com/FlorianKirmaier/javafx-plugin-maven-bug-subprojects-jlink/actions/runs/18041859390/job/51342659443

Normally, enabling JLink should not break the ability for other projects to depend on the project using JLink.

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