-
Notifications
You must be signed in to change notification settings - Fork 2.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Specifying ignoredEntries for quarkus-maven-plugin has no effect #10406
Comments
/cc @quarkusio/devtools |
Here is a consequence of adding a feature w/o any test. bf26eb8#diff-fc5bfcac2e033b00de4f2bfe6b02a1ac |
This looks like the commit that broke the feature: 0d3335d#diff-fc5bfcac2e033b00de4f2bfe6b02a1ac |
Apparently they are no longer specified in the plugin, but in the application.properties: quarkus/core/deployment/src/main/java/io/quarkus/deployment/pkg/PackageConfig.java Lines 58 to 62 in 41b3c45
I tried adding these to the quarkus.package.user-configured-ignored-entries=META-INF/swagger-ui-files/swagger-ui-bundle.js.map,META-INF/swagger-ui-files/swagger-ui-standalone-preset.js.map I'm investigating it |
Probably |
@gastaldi I just tried it. It seems to work now. Thanks for the quick fix! Unfortunately it does not work with wildcards, e.g. |
Describe the bug
Specifying
<ignoredEntries><ignoredEntry>
settings in quarkus-maven-plugin maven configuration has no effect.The resulting uberJar still contains all files that are marked for exclusion.
Expected behavior
Specified exclusions are processed and the listed files are excluded from the uberJar.
Actual behavior
Files matching specified exclusions are excluded from resulting jar.
To Reproduce
Steps to reproduce the behavior:
Configuration
Plugin configuration in the pom.xml:
Environment (please complete the following information):
uname -a
orver
: Windows 10x64java -version
:mvnw --version
orgradlew --version
): Apache Maven 3.6.3Additional information:
Looking at the source code of the Quarkus Maven Build Goal, it seems like someone forgot to actually implement processing of
ignoredEntries
: https://github.com/quarkusio/quarkus/blob/1.6.0.CR1/devtools/maven/src/main/java/io/quarkus/maven/BuildMojo.java#L126A private field
ignoredEntries
is defined but it is not used in the code.The text was updated successfully, but these errors were encountered: