Skip to main content

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

Since the last eclipse update (whichif 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:

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

Direct modification 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



Back to the top