You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
does not work. Furthermore, if we exclude all files from a directory by listing them one-by-one, the directory will still be present in the fast jar.
Story
AS a developer WHEN I need to exclude resources from the fast-jar THEN I want a way to exclude resources through glob-patterns. Furhtermore, if the exclusions lead to an empty directory, that directory should be removed from the fast jar.
MRE Repository
A repository for testing around can be found here (github.com). The goal is to exclude src/main/resources/some/file.txt. We can verify that the file is excluded by running ./mvnw clean package and then opening target/quarkus-app/app/quarkus-exclude-resource-999-SNAPSHOT.jar. The archive should not contain some/text.txt and - ideally - not even the directory some.
Implementation ideas
No response
The text was updated successfully, but these errors were encountered:
Description
Currently, there is no possibility to exclude resources from the fast-jar with a glob pattern.
According to this
stackoverflow.com
answer by @geoand, settingquarkus.class-loading.removed-resources."de.turing85\:quarkus-exclude-resource" = \ some/file.txt
should work, but it does not.
We can use
quarkus.package.jar.user-configured-ignored-entries = \ some/file.txt
instead, but this does not support glob patterns, i.e.:
quarkus.package.jar.user-configured-ignored-entries = \ some/**/*
does not work. Furthermore, if we exclude all files from a directory by listing them one-by-one, the directory will still be present in the fast jar.
Story
AS a developer
WHEN I need to exclude resources from the fast-jar
THEN I want a way to exclude resources through glob-patterns. Furhtermore, if the exclusions lead to an empty directory, that directory should be removed from the fast jar.
MRE Repository
A repository for testing around can be found here (
github.com
). The goal is to excludesrc/main/resources/some/file.txt
. We can verify that the file is excluded by running./mvnw clean package
and then openingtarget/quarkus-app/app/quarkus-exclude-resource-999-SNAPSHOT.jar
. The archive should not containsome/text.txt
and - ideally - not even the directorysome
.Implementation ideas
No response
The text was updated successfully, but these errors were encountered: