gluonhq / scenebuilder

Scene Builder is a visual, drag 'n' drop, layout tool for designing JavaFX application user interfaces.
https://gluonhq.com/products/scene-builder/
Other
748 stars 220 forks source link

Maven Resolver can't be excluded when importing Scene Builder Kit #777

Closed jperedadnr closed 1 month ago

jperedadnr commented 1 month ago

Currently, Maven Resolver (and related modules) are required in the module descriptor of Scene Builder Kit.

If a third party that embeds SB Kit doesn't need this feature, it shouldn't need to add all the related dependencies.

This is typically done with:

<dependency>
            <groupId>com.gluonhq.scenebuilder</groupId>
            <artifactId>kit</artifactId>
            <version>24.0.0-SNAPSHOT</version>
            <exclusions>
                <exclusion>
                    <groupId>org.apache.maven.resolver</groupId>
                    <artifactId>*</artifactId>
                </exclusion>
            </exclusions>
        </dependency>

however, since the module-info requires Maven Resolver, there is an error:

Error occurred during initialization of boot layer
java.lang.module.FindException: Module org.apache.maven.resolver.supplier not found, required by com.gluonhq.scenebuilder.kit

This can be fixed

Expected Behavior

Maven Resolver modules are optional, and Maven Resolver dependencies can be excluded

Current Behavior

Maven Resolver modules are mandatory, and Maven Resolver dependencies can't be excluded

Steps to Reproduce

Your Environment

Screenshots