tycho icon indicating copy to clipboard operation
tycho copied to clipboard

[WARNING] Direct modification of testCompileSourceRoots through iterator.remove() is deprecated and will not work in Maven 4.0.0

Open dhendriks opened this issue 3 months ago • 0 comments

I'm getting the following, using Tycho 5.0.0 and Maven 3.9.11, after upgrading from Eclipse 2024-09 to 2025-09, in the Eclipse ESCET project:

[INFO] --- tycho-compiler:5.0.0:validate-classpath (default-validate-classpath) @ org.eclipse.escet.chi.tests.integration ---
[INFO] Resolving class path of [bundle] ESCET Chi Integration Tests
[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.

It seems that tycho-compiler is not yet Maven 4 compatible, leading to these warnings.

dhendriks avatar Oct 11 '25 11:10 dhendriks