quarkusio / quarkus

Quarkus: Supersonic Subatomic Java.
https://quarkus.io
Apache License 2.0
13.54k stars 2.61k forks source link

Support wildcards in quarkus.package.user-configured-ignored-entries #10441

Open gastaldi opened 4 years ago

gastaldi commented 4 years ago

@gastaldi I just tried it. It seems to work now. Thanks for the quick fix! Unfortunately it does not work with wildcards, e.g. META-INF/swagger-ui-files/*.js.map or even better META-INF/**/*.js.map, but I guess that is a different story.

Originally posted by @sebthom in https://github.com/quarkusio/quarkus/issues/10406#issuecomment-653250959

Paul-IBM commented 10 months ago

Me too on supporting wildcards for quarkus.package.user-configured-ignored-entries. I am using uber-jar packaging type and need to exclude a complete jar file.

marcelstoer commented 7 months ago

It never occurred to me that wildcards might not work. I can't even seem to rely on the Unix mantra that "everything is a file" to exclude entire directories.

Example:

<configuration>
    <ignoredEntries>
        <ignoredEntry>META-INF/native-image</ignoredEntry>
    </ignoredEntries>
</configuration>

This to me means: ignore the META-INF/native-image "file" (a directory). The ignoredEntries documentation doesn't discourage me from expecting to be able to ignore directories:

...this array specifies entries that should be excluded from the final jar. The entries are relative to the root of the file.

Without wildcard- and folder support this to me is only a mildly useful feature. We use it to get rid off the "[WARNING] [io.quarkus.deployment.pkg.steps.JarResultBuildStep] Dependencies with duplicate files detected." build warnings.