You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The management of maven-plugin-annotations, when inherited by the boms of other Apache projects, is causing a warning with Maven 4.0.0-beta-3. The warning can be reproduced with the following pom.xml:
[WARNING] Some problems were encountered while building the effective model for 'com.example:example:jar:0.0.1-SNAPSHOT'
[WARNING] Ignored POM import for: org.apache.maven.plugin-tools:maven-plugin-annotations:jar:3.13.1@compile as already imported org.apache.maven.plugin-tools:maven-plugin-annotations:jar:3.7.0@compile. Add a the conflicting managed dependency directly to the dependencyManagement section of the POM.
The text was updated successfully, but these errors were encountered:
Just some context: BOM use in Maven wildly differs from "ordinary" dependencies and many times cause (unwanted) surprise to end users. Hence, Maven 4 is getting more strict about them, and warns in any "unexpected" situation happens while flattening them (as part of Project building). Problems usually occur when "uber BOMs" are used, with many hundreds or thousands of import, and even worse, with recursive "BOM imports BOM..." chains.
Hence, I'd argue, that given BOM sole purpose is to provide dependency management entries downstream, hence all it should contain is dependency management entries, that BOMs should not have even parents. As we can see from this issue, when BOM has parent, it effectively loses control over its main purpose of existence.
The management of
maven-plugin-annotations
, when inherited by the boms of other Apache projects, is causing a warning with Maven 4.0.0-beta-3. The warning can be reproduced with the following pom.xml:The warning is as follows:
The text was updated successfully, but these errors were encountered: