Skip to content
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

banDuplicateClasses can not be appended in pom.xml #305

Open
reitzmichnicht opened this issue Jul 23, 2024 · 1 comment
Open

banDuplicateClasses can not be appended in pom.xml #305

reitzmichnicht opened this issue Jul 23, 2024 · 1 comment

Comments

@reitzmichnicht
Copy link

We want to append the banDuplicateClasses definition in our child pom.xml.

If you already have a definition of ignoredClasses in the parent pom it is not possible to add more ignoredClasses in any child pom.xml like this

            <configuration>
              <rules>
                <banDuplicateClasses>
                  <ignoreClasses combine.children="append">
                    <ignoreClass>jakarta.jws.*</ignoreClass>
                  </ignoreClasses>
                </banDuplicateClasses>
              </rules>
            </configuration>

I tried every combination of appending or overwriting, I can only overwrite the whole rules definition loosing all other rules configuration or I end with two banDuplicateClasses nodes where the first one seems to be used.

Kind regards,
Michael

@slawekjaranowski
Copy link
Member

Should works like you wrote.

Please provide a test project if problem still exist.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants