Sonar-maven-plugin: Validation Warning

The latest version of sonar-maven-plugin is 3.9.1.2184. When using Maven 3.9.2, maven.plugin.validation is automatically performed and generates a warning. In verbose mode, the following details are provided:

[WARNING] * org.sonarsource.scanner.maven:sonar-maven-plugin:3.9.1.2184
[WARNING] Plugin issue(s):
[WARNING] * Plugin depends on the deprecated Maven 2.x compatibility layer, which may not be supported in Maven 4.x

Feedback from maven-users mailing list is…

Do not rely on maven-compat, as if you do, it means your plugin is Maven2 plugin
technically (you depend on Maven3’s Maven2 compatibility layer)

I cannot see an issue for this logged in Sonarsource JIRA.

2 Likes

Hello @msymons,

Thanks for noticing this. Yes we indeed should get rid of this dependency to be compatible with Maven 4.

Here is the ticket: [MSONAR-195] - Jira

Regards,
Margarita

1 Like