'What is the maven matcher for all packages?

I would like to exclude the necessity of having package-info files in every of our packages. My defined path is ignored, so probably it is wrong. Please what is the correct expression for matching all packages under com.* ?

<sonar.issue.ignore.multicriteria.e11.ruleKey>squid:S1228</sonar.issue.ignore.multicriteria.e11.ruleKey>
<sonar.issue.ignore.multicriteria.e11.resourceKey>com/**</sonar.issue.ignore.multicriteria.e11.resourceKey>


Solution 1:[1]

The expression should be com/**/*.

Solution 2:[2]

Julien H.'s answer explains why it is impossible to use sonar.issue.ignore.multicriteria to ignore S2118.

However, another option is to use sonar.issue.enforce.multicriteria with a path pattern that will never match a path in your project, like SONARQUBE_RULE_DISABLED. sonar.issue.enforce.multicriteria configures the rule to run only on matching paths - and by using a path it can never match, the rule is effectively disabled. (Tested on SonarQube 8.9, YMMV)

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Fischermaen
Solution 2 Chris Bain