-
I'm experimenting with the plugin together with I don't understand the concept, it seems. The documentation states that this is a regex. So I want to ignore the package <scanExcludePackages>foo.bar.baz</scanExcludePackages> This works, but it's not really a regex :-) The correct way, which also works, is <scanExcludePackages>foo\.bar\.baz</scanExcludePackages> This also seems to work: <scanExcludePackages>^foo\.bar\.baz$</scanExcludePackages> However, this doesn't work: <scanExcludePackages>foo.bar.baz.*</scanExcludePackages> And neither this: <scanExcludePackages>foo.*.baz</scanExcludePackages> IMHO these are all regexes which should work. Next I tried several packages. Since it's a regex, this should work, but it doesn't: <scanExcludePackages>(foo.bar.baz|my.nice.package)</scanExcludePackages> No, I have to use a comma-separated list: <scanExcludePackages>foo.bar.baz,my.nice.package</scanExcludePackages> Clearly, this is not a regex. I think the documentation is not clear enough what is meant by "regex". |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 5 replies
-
@cristalp , regex mode is only enabled when the properties start with
Can you point to the documentation you mentioned about using regular expressions? |
Beta Was this translation helpful? Give feedback.
-
Pull request: #1958 |
Beta Was this translation helpful? Give feedback.
@cristalp , regex mode is only enabled when the properties start with
^
and end with$
. Otherwise, this is from the MP OpenAPI specification [1]: