From c2d88fb5ac309bfaa4165dc4f05ff652d3f29dec Mon Sep 17 00:00:00 2001 From: suchwerk Date: Thu, 10 Aug 2023 07:47:30 +0000 Subject: [PATCH 1/2] Added info about wildcard support --- docs/src/main/asciidoc/resteasy-reactive.adoc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/src/main/asciidoc/resteasy-reactive.adoc b/docs/src/main/asciidoc/resteasy-reactive.adoc index 0603af9ef0855..97a9979db0a56 100644 --- a/docs/src/main/asciidoc/resteasy-reactive.adoc +++ b/docs/src/main/asciidoc/resteasy-reactive.adoc @@ -1508,7 +1508,7 @@ However, in some situations, these classes cause the `JAXBContext` to fail: for [NOTE] ==== -The property `quarkus.jaxb.exclude-classes` accepts a comma separated list of fully qualified class names, for example: `quarkus.jaxb.exclude-classes=org.acme.one.Model,org.acme.two.Model`. +The property `quarkus.jaxb.exclude-classes` accepts a comma separated list of fully qualified class names or a package name ending with `.*` as wildcard which will respect all classes in that package and subpackages, for example: `quarkus.jaxb.exclude-classes=org.acme.one.Model,org.acme.two.Model,org.acme.somemodel.*`. ==== ==== Advanced JAXB-specific features From 9a5f675f97c91948e50b4dd00b7441da9fabe00b Mon Sep 17 00:00:00 2001 From: Guillaume Smet Date: Thu, 10 Aug 2023 12:09:30 +0200 Subject: [PATCH 2/2] Let's be a bit more detailed as the package wildcard thing is not exactly obvious --- docs/src/main/asciidoc/resteasy-reactive.adoc | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/docs/src/main/asciidoc/resteasy-reactive.adoc b/docs/src/main/asciidoc/resteasy-reactive.adoc index 97a9979db0a56..988cba175a3a3 100644 --- a/docs/src/main/asciidoc/resteasy-reactive.adoc +++ b/docs/src/main/asciidoc/resteasy-reactive.adoc @@ -1508,7 +1508,14 @@ However, in some situations, these classes cause the `JAXBContext` to fail: for [NOTE] ==== -The property `quarkus.jaxb.exclude-classes` accepts a comma separated list of fully qualified class names or a package name ending with `.*` as wildcard which will respect all classes in that package and subpackages, for example: `quarkus.jaxb.exclude-classes=org.acme.one.Model,org.acme.two.Model,org.acme.somemodel.*`. +The property `quarkus.jaxb.exclude-classes` accepts a comma separated list of either fully qualified class names +or package names. Package names must be suffixed by `.*` and all classes in the specified package and its subpackages will be excluded. + +For instance, when setting `quarkus.jaxb.exclude-classes=org.acme.one.Model,org.acme.two.Model,org.acme.somemodel.*`, the following elements are excluded: + +- The class `org.acme.one.Model` +- The class `org.acme.two.Model` +- All the classes in the `org.acme.somemodel` package and its subpackages ==== ==== Advanced JAXB-specific features