Skip to content

Maven 4 warning on iterator.remove() usage #341

@hazendaz

Description

@hazendaz

Maven 3.9.11 started showing up with this warning.

[INFO] --- gplus:4.2.1:removeTestStubs (compileGroovy) @ spotbugs-maven-plugin ---
[WARNING] Direct modification of testCompileSourceRoots through iterator.remove() is deprecated and will not work in Maven 4.0.0. Please use the add/remove methods instead. If you're using a plugin that causes this warning, please upgrade to the latest version and report an issue if the warning persists. To disable these warnings, set -Dmaven.project.sourceRoots.warningsDisabled=true on the command line, in the .mvn/maven.config file, or in project POM properties.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions