Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [m2e-dev] Direct modification of compileSourceRoots/testCompileSourceRoots through add()/clear() is deprecated...

m2e now uses github for issues and discussions:

https://github.com/eclipse-m2e/m2e-core

Beside that please see:

https://github.com/apache/maven/issues/11089

Am 21.09.25 um 16:06 schrieb michael.moser--- via m2e-dev:
Since the last eclipse update (which – if I am correct - also updated m2e) I keep getting such messages in the eclipse Error Log during maven builds:

Plugin: org.eclipe.m2e.logback.appender

Severity: Warning

Message:

-------------

Directmodification of (compileSourceRoots/testCompileSourceRoots) through (add()/clear()) 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.

-------------

I found no use of add(…) or clear(…) in my pom file, so that plus the plugin name mentioned in the error makes me believe that this something that runs as part of m2e which is causing this.


Any idea or suggestion anyone? Is this known or to be expected? Right now it seems to be a warning only.

Regards,

Michael



_______________________________________________
m2e-dev mailing list
m2e-dev@xxxxxxxxxxx
To unsubscribe from this list, visit https://www.eclipse.org/mailman/listinfo/m2e-dev



Back to the top