Skip to content

Duplicate GeneratedStaticResourceBuildItem throws IllegalStateException: Duplicate key #45378

Open
@ia3andy

Description

Describe the bug

In case of duplicate GeneratedStaticResourceBuildItem, GeneratedStaticResourcesProcessor#process throws an exception "IllegalStateException: Duplicate key".

Expected behavior

I think it should print a warning and keep one of the items instead. Or at least throw a proper exception explaining that there are multiple generated static resources on the same path.

Quarkus version or git rev

3.17

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions