Open
Description
Using
> mvn --version
Apache Maven 4.0.0-rc-1 (d81b1b6a2870dc954d6d642500ad38e8e4cb3dde)
When creating a POM which imports our spring-boot-dependencies
through
<dependencyManagement>
<dependencies>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-dependencies</artifactId>
<version>${spring-boot.version}</version>
<type>pom</type>
<scope>import</scope>
</dependency>
</dependencies>
</dependencyManagement>
I'll get a lot of warnings about "Ignored POM import":
[WARNING]
[WARNING] Some problems were encountered while building the effective model for 'my.group:lib:jar:1.0.0-SNAPSHOT'
[WARNING] Ignored POM import for: io.micrometer:micrometer-commons:jar:1.14.0@compile as already imported io.micrometer:micrometer-commons:jar:1.14.1@compile. Add the conflicting managed dependency directly to the dependencyManagement section of the POM. @ org.springframework.boot:spring-boot-dependencies:3.4.0
[WARNING] Ignored POM import for: io.micrometer:micrometer-core:jar:1.14.0@compile as already imported io.micrometer:micrometer-core:jar:1.14.1@compile. Add the conflicting managed dependency directly to the dependencyManagement section of the POM. @ org.springframework.boot:spring-boot-dependencies:3.4.0
[WARNING] Ignored POM import for: io.micrometer:micrometer-jakarta9:jar:1.14.0@compile as already imported io.micrometer:micrometer-jakarta9:jar:1.14.1@compile. Add the conflicting managed dependency directly to the dependencyManagement section of the POM. @ org.springframework.boot:spring-boot-dependencies:3.4.0
[WARNING] Ignored POM import for: io.micrometer:micrometer-java11:jar:1.14.0@compile as already imported io.micrometer:micrometer-java11:jar:1.14.1@compile. Add the conflicting managed dependency directly to the dependencyManagement section of the POM. @ org.springframework.boot:spring-boot-dependencies:3.4.0
[WARNING] Ignored POM import for: io.micrometer:micrometer-java21:jar:1.14.0@compile as already imported io.micrometer:micrometer-java21:jar:1.14.1@compile. Add the conflicting managed dependency directly to the dependencyManagement section of the POM. @ org.springframework.boot:spring-boot-dependencies:3.4.0
[WARNING] Ignored POM import for: io.micrometer:micrometer-jetty11:jar:1.14.0@compile as already imported io.micrometer:micrometer-jetty11:jar:1.14.1@compile. Add the conflicting managed dependency directly to the dependencyManagement section of the POM. @ org.springframework.boot:spring-boot-dependencies:3.4.0
[WARNING] Ignored POM import for: io.micrometer:micrometer-jetty12:jar:1.14.0@compile as already imported io.micrometer:micrometer-jetty12:jar:1.14.1@compile. Add the conflicting managed dependency directly to the dependencyManagement section of the POM. @ org.springframework.boot:spring-boot-dependencies:3.4.0
[WARNING] Ignored POM import for: io.micrometer:micrometer-observation:jar:1.14.0@compile as already imported io.micrometer:micrometer-observation:jar:1.14.1@compile. Add the conflicting managed dependency directly to the dependencyManagement section of the POM. @ org.springframework.boot:spring-boot-dependencies:3.4.0
[WARNING] Ignored POM import for: io.micrometer:micrometer-observation-test:jar:1.14.0@compile as already imported io.micrometer:micrometer-observation-test:jar:1.14.1@compile. Add the conflicting managed dependency directly to the dependencyManagement section of the POM. @ org.springframework.boot:spring-boot-dependencies:3.4.0
[WARNING] Ignored POM import for: io.micrometer:micrometer-registry-appoptics:jar:1.14.0@compile as already imported io.micrometer:micrometer-registry-appoptics:jar:1.14.1@compile. Add the conflicting managed dependency directly to the dependencyManagement section of the POM. @ org.springframework.boot:spring-boot-dependencies:3.4.0
[WARNING] Ignored POM import for: io.micrometer:micrometer-registry-atlas:jar:1.14.0@compile as already imported io.micrometer:micrometer-registry-atlas:jar:1.14.1@compile. Add the conflicting managed dependency directly to the dependencyManagement section of the POM. @ org.springframework.boot:spring-boot-dependencies:3.4.0
[WARNING] Ignored POM import for: io.micrometer:micrometer-registry-azure-monitor:jar:1.14.0@compile as already imported io.micrometer:micrometer-registry-azure-monitor:jar:1.14.1@compile. Add the conflicting managed dependency directly to the dependencyManagement section of the POM. @ org.springframework.boot:spring-boot-dependencies:3.4.0
[WARNING] Ignored POM import for: io.micrometer:micrometer-registry-cloudwatch2:jar:1.14.0@compile as already imported io.micrometer:micrometer-registry-cloudwatch2:jar:1.14.1@compile. Add the conflicting managed dependency directly to the dependencyManagement section of the POM. @ org.springframework.boot:spring-boot-dependencies:3.4.0
[WARNING] Ignored POM import for: io.micrometer:micrometer-registry-datadog:jar:1.14.0@compile as already imported io.micrometer:micrometer-registry-datadog:jar:1.14.1@compile. Add the conflicting managed dependency directly to the dependencyManagement section of the POM. @ org.springframework.boot:spring-boot-dependencies:3.4.0
[WARNING] Ignored POM import for: io.micrometer:micrometer-registry-dynatrace:jar:1.14.0@compile as already imported io.micrometer:micrometer-registry-dynatrace:jar:1.14.1@compile. Add the conflicting managed dependency directly to the dependencyManagement section of the POM. @ org.springframework.boot:spring-boot-dependencies:3.4.0
[WARNING] Ignored POM import for: io.micrometer:micrometer-registry-elastic:jar:1.14.0@compile as already imported io.micrometer:micrometer-registry-elastic:jar:1.14.1@compile. Add the conflicting managed dependency directly to the dependencyManagement section of the POM. @ org.springframework.boot:spring-boot-dependencies:3.4.0
[WARNING] Ignored POM import for: io.micrometer:micrometer-registry-ganglia:jar:1.14.0@compile as already imported io.micrometer:micrometer-registry-ganglia:jar:1.14.1@compile. Add the conflicting managed dependency directly to the dependencyManagement section of the POM. @ org.springframework.boot:spring-boot-dependencies:3.4.0
[WARNING] Ignored POM import for: io.micrometer:micrometer-registry-graphite:jar:1.14.0@compile as already imported io.micrometer:micrometer-registry-graphite:jar:1.14.1@compile. Add the conflicting managed dependency directly to the dependencyManagement section of the POM. @ org.springframework.boot:spring-boot-dependencies:3.4.0
[WARNING] Ignored POM import for: io.micrometer:micrometer-registry-health:jar:1.14.0@compile as already imported io.micrometer:micrometer-registry-health:jar:1.14.1@compile. Add the conflicting managed dependency directly to the dependencyManagement section of the POM. @ org.springframework.boot:spring-boot-dependencies:3.4.0
[WARNING] Ignored POM import for: io.micrometer:micrometer-registry-humio:jar:1.14.0@compile as already imported io.micrometer:micrometer-registry-humio:jar:1.14.1@compile. Add the conflicting managed dependency directly to the dependencyManagement section of the POM. @ org.springframework.boot:spring-boot-dependencies:3.4.0
[WARNING] Ignored POM import for: io.micrometer:micrometer-registry-influx:jar:1.14.0@compile as already imported io.micrometer:micrometer-registry-influx:jar:1.14.1@compile. Add the conflicting managed dependency directly to the dependencyManagement section of the POM. @ org.springframework.boot:spring-boot-dependencies:3.4.0
[WARNING] Ignored POM import for: io.micrometer:micrometer-registry-jmx:jar:1.14.0@compile as already imported io.micrometer:micrometer-registry-jmx:jar:1.14.1@compile. Add the conflicting managed dependency directly to the dependencyManagement section of the POM. @ org.springframework.boot:spring-boot-dependencies:3.4.0
[WARNING] Ignored POM import for: io.micrometer:micrometer-registry-kairos:jar:1.14.0@compile as already imported io.micrometer:micrometer-registry-kairos:jar:1.14.1@compile. Add the conflicting managed dependency directly to the dependencyManagement section of the POM. @ org.springframework.boot:spring-boot-dependencies:3.4.0
[WARNING] Ignored POM import for: io.micrometer:micrometer-registry-new-relic:jar:1.14.0@compile as already imported io.micrometer:micrometer-registry-new-relic:jar:1.14.1@compile. Add the conflicting managed dependency directly to the dependencyManagement section of the POM. @ org.springframework.boot:spring-boot-dependencies:3.4.0
[WARNING] Ignored POM import for: io.micrometer:micrometer-registry-opentsdb:jar:1.14.0@compile as already imported io.micrometer:micrometer-registry-opentsdb:jar:1.14.1@compile. Add the conflicting managed dependency directly to the dependencyManagement section of the POM. @ org.springframework.boot:spring-boot-dependencies:3.4.0
[WARNING] Ignored POM import for: io.micrometer:micrometer-registry-otlp:jar:1.14.0@compile as already imported io.micrometer:micrometer-registry-otlp:jar:1.14.1@compile. Add the conflicting managed dependency directly to the dependencyManagement section of the POM. @ org.springframework.boot:spring-boot-dependencies:3.4.0
[WARNING] Ignored POM import for: io.micrometer:micrometer-registry-prometheus:jar:1.14.0@compile as already imported io.micrometer:micrometer-registry-prometheus:jar:1.14.1@compile. Add the conflicting managed dependency directly to the dependencyManagement section of the POM. @ org.springframework.boot:spring-boot-dependencies:3.4.0
[WARNING] Ignored POM import for: io.micrometer:micrometer-registry-prometheus-simpleclient:jar:1.14.0@compile as already imported io.micrometer:micrometer-registry-prometheus-simpleclient:jar:1.14.1@compile. Add the conflicting managed dependency directly to the dependencyManagement section of the POM. @ org.springframework.boot:spring-boot-dependencies:3.4.0
[WARNING] Ignored POM import for: io.micrometer:micrometer-registry-signalfx:jar:1.14.0@compile as already imported io.micrometer:micrometer-registry-signalfx:jar:1.14.1@compile. Add the conflicting managed dependency directly to the dependencyManagement section of the POM. @ org.springframework.boot:spring-boot-dependencies:3.4.0
[WARNING] Ignored POM import for: io.micrometer:micrometer-registry-statsd:jar:1.14.0@compile as already imported io.micrometer:micrometer-registry-statsd:jar:1.14.1@compile. Add the conflicting managed dependency directly to the dependencyManagement section of the POM. @ org.springframework.boot:spring-boot-dependencies:3.4.0
[WARNING] Ignored POM import for: io.micrometer:micrometer-registry-wavefront:jar:1.14.0@compile as already imported io.micrometer:micrometer-registry-wavefront:jar:1.14.1@compile. Add the conflicting managed dependency directly to the dependencyManagement section of the POM. @ org.springframework.boot:spring-boot-dependencies:3.4.0
[WARNING] Ignored POM import for: io.micrometer:micrometer-test:jar:1.14.0@compile as already imported io.micrometer:micrometer-test:jar:1.14.1@compile. Add the conflicting managed dependency directly to the dependencyManagement section of the POM. @ org.springframework.boot:spring-boot-dependencies:3.4.0
[WARNING] Ignored POM import for: org.apache.maven.plugin-tools:maven-plugin-annotations:jar:3.7.0@compile as already imported org.apache.maven.plugin-tools:maven-plugin-annotations:jar:3.13.1@compile. Add the conflicting managed dependency directly to the dependencyManagement section of the POM. @ org.springframework.boot:spring-boot-dependencies:3.4.0
[WARNING] Ignored POM import for: io.micrometer:micrometer-commons:jar:1.14.0@compile as already imported io.micrometer:micrometer-commons:jar:1.14.1@compile. Add the conflicting managed dependency directly to the dependencyManagement section of the POM. @ org.springframework.boot:spring-boot-dependencies:3.4.0
[WARNING] Ignored POM import for: io.micrometer:micrometer-core:jar:1.14.0@compile as already imported io.micrometer:micrometer-core:jar:1.14.1@compile. Add the conflicting managed dependency directly to the dependencyManagement section of the POM. @ org.springframework.boot:spring-boot-dependencies:3.4.0
[WARNING] Ignored POM import for: io.micrometer:micrometer-jakarta9:jar:1.14.0@compile as already imported io.micrometer:micrometer-jakarta9:jar:1.14.1@compile. Add the conflicting managed dependency directly to the dependencyManagement section of the POM. @ org.springframework.boot:spring-boot-dependencies:3.4.0
[WARNING] Ignored POM import for: io.micrometer:micrometer-java11:jar:1.14.0@compile as already imported io.micrometer:micrometer-java11:jar:1.14.1@compile. Add the conflicting managed dependency directly to the dependencyManagement section of the POM. @ org.springframework.boot:spring-boot-dependencies:3.4.0
[WARNING] Ignored POM import for: io.micrometer:micrometer-java21:jar:1.14.0@compile as already imported io.micrometer:micrometer-java21:jar:1.14.1@compile. Add the conflicting managed dependency directly to the dependencyManagement section of the POM. @ org.springframework.boot:spring-boot-dependencies:3.4.0
[WARNING] Ignored POM import for: io.micrometer:micrometer-jetty11:jar:1.14.0@compile as already imported io.micrometer:micrometer-jetty11:jar:1.14.1@compile. Add the conflicting managed dependency directly to the dependencyManagement section of the POM. @ org.springframework.boot:spring-boot-dependencies:3.4.0
[WARNING] Ignored POM import for: io.micrometer:micrometer-jetty12:jar:1.14.0@compile as already imported io.micrometer:micrometer-jetty12:jar:1.14.1@compile. Add the conflicting managed dependency directly to the dependencyManagement section of the POM. @ org.springframework.boot:spring-boot-dependencies:3.4.0
[WARNING] Ignored POM import for: io.micrometer:micrometer-observation:jar:1.14.0@compile as already imported io.micrometer:micrometer-observation:jar:1.14.1@compile. Add the conflicting managed dependency directly to the dependencyManagement section of the POM. @ org.springframework.boot:spring-boot-dependencies:3.4.0
[WARNING] Ignored POM import for: io.micrometer:micrometer-observation-test:jar:1.14.0@compile as already imported io.micrometer:micrometer-observation-test:jar:1.14.1@compile. Add the conflicting managed dependency directly to the dependencyManagement section of the POM. @ org.springframework.boot:spring-boot-dependencies:3.4.0
[WARNING] Ignored POM import for: io.micrometer:micrometer-registry-appoptics:jar:1.14.0@compile as already imported io.micrometer:micrometer-registry-appoptics:jar:1.14.1@compile. Add the conflicting managed dependency directly to the dependencyManagement section of the POM. @ org.springframework.boot:spring-boot-dependencies:3.4.0
[WARNING] Ignored POM import for: io.micrometer:micrometer-registry-atlas:jar:1.14.0@compile as already imported io.micrometer:micrometer-registry-atlas:jar:1.14.1@compile. Add the conflicting managed dependency directly to the dependencyManagement section of the POM. @ org.springframework.boot:spring-boot-dependencies:3.4.0
[WARNING] Ignored POM import for: io.micrometer:micrometer-registry-azure-monitor:jar:1.14.0@compile as already imported io.micrometer:micrometer-registry-azure-monitor:jar:1.14.1@compile. Add the conflicting managed dependency directly to the dependencyManagement section of the POM. @ org.springframework.boot:spring-boot-dependencies:3.4.0
[WARNING] Ignored POM import for: io.micrometer:micrometer-registry-cloudwatch2:jar:1.14.0@compile as already imported io.micrometer:micrometer-registry-cloudwatch2:jar:1.14.1@compile. Add the conflicting managed dependency directly to the dependencyManagement section of the POM. @ org.springframework.boot:spring-boot-dependencies:3.4.0
[WARNING] Ignored POM import for: io.micrometer:micrometer-registry-datadog:jar:1.14.0@compile as already imported io.micrometer:micrometer-registry-datadog:jar:1.14.1@compile. Add the conflicting managed dependency directly to the dependencyManagement section of the POM. @ org.springframework.boot:spring-boot-dependencies:3.4.0
[WARNING] Ignored POM import for: io.micrometer:micrometer-registry-dynatrace:jar:1.14.0@compile as already imported io.micrometer:micrometer-registry-dynatrace:jar:1.14.1@compile. Add the conflicting managed dependency directly to the dependencyManagement section of the POM. @ org.springframework.boot:spring-boot-dependencies:3.4.0
[WARNING] Ignored POM import for: io.micrometer:micrometer-registry-elastic:jar:1.14.0@compile as already imported io.micrometer:micrometer-registry-elastic:jar:1.14.1@compile. Add the conflicting managed dependency directly to the dependencyManagement section of the POM. @ org.springframework.boot:spring-boot-dependencies:3.4.0
[WARNING] Ignored POM import for: io.micrometer:micrometer-registry-ganglia:jar:1.14.0@compile as already imported io.micrometer:micrometer-registry-ganglia:jar:1.14.1@compile. Add the conflicting managed dependency directly to the dependencyManagement section of the POM. @ org.springframework.boot:spring-boot-dependencies:3.4.0
[WARNING] Ignored POM import for: io.micrometer:micrometer-registry-graphite:jar:1.14.0@compile as already imported io.micrometer:micrometer-registry-graphite:jar:1.14.1@compile. Add the conflicting managed dependency directly to the dependencyManagement section of the POM. @ org.springframework.boot:spring-boot-dependencies:3.4.0
[WARNING] Ignored POM import for: io.micrometer:micrometer-registry-health:jar:1.14.0@compile as already imported io.micrometer:micrometer-registry-health:jar:1.14.1@compile. Add the conflicting managed dependency directly to the dependencyManagement section of the POM. @ org.springframework.boot:spring-boot-dependencies:3.4.0
[WARNING] Ignored POM import for: io.micrometer:micrometer-registry-humio:jar:1.14.0@compile as already imported io.micrometer:micrometer-registry-humio:jar:1.14.1@compile. Add the conflicting managed dependency directly to the dependencyManagement section of the POM. @ org.springframework.boot:spring-boot-dependencies:3.4.0
[WARNING] Ignored POM import for: io.micrometer:micrometer-registry-influx:jar:1.14.0@compile as already imported io.micrometer:micrometer-registry-influx:jar:1.14.1@compile. Add the conflicting managed dependency directly to the dependencyManagement section of the POM. @ org.springframework.boot:spring-boot-dependencies:3.4.0
[WARNING] Ignored POM import for: io.micrometer:micrometer-registry-jmx:jar:1.14.0@compile as already imported io.micrometer:micrometer-registry-jmx:jar:1.14.1@compile. Add the conflicting managed dependency directly to the dependencyManagement section of the POM. @ org.springframework.boot:spring-boot-dependencies:3.4.0
[WARNING] Ignored POM import for: io.micrometer:micrometer-registry-kairos:jar:1.14.0@compile as already imported io.micrometer:micrometer-registry-kairos:jar:1.14.1@compile. Add the conflicting managed dependency directly to the dependencyManagement section of the POM. @ org.springframework.boot:spring-boot-dependencies:3.4.0
[WARNING] Ignored POM import for: io.micrometer:micrometer-registry-new-relic:jar:1.14.0@compile as already imported io.micrometer:micrometer-registry-new-relic:jar:1.14.1@compile. Add the conflicting managed dependency directly to the dependencyManagement section of the POM. @ org.springframework.boot:spring-boot-dependencies:3.4.0
[WARNING] Ignored POM import for: io.micrometer:micrometer-registry-opentsdb:jar:1.14.0@compile as already imported io.micrometer:micrometer-registry-opentsdb:jar:1.14.1@compile. Add the conflicting managed dependency directly to the dependencyManagement section of the POM. @ org.springframework.boot:spring-boot-dependencies:3.4.0
[WARNING] Ignored POM import for: io.micrometer:micrometer-registry-otlp:jar:1.14.0@compile as already imported io.micrometer:micrometer-registry-otlp:jar:1.14.1@compile. Add the conflicting managed dependency directly to the dependencyManagement section of the POM. @ org.springframework.boot:spring-boot-dependencies:3.4.0
[WARNING] Ignored POM import for: io.micrometer:micrometer-registry-prometheus:jar:1.14.0@compile as already imported io.micrometer:micrometer-registry-prometheus:jar:1.14.1@compile. Add the conflicting managed dependency directly to the dependencyManagement section of the POM. @ org.springframework.boot:spring-boot-dependencies:3.4.0
[WARNING] Ignored POM import for: io.micrometer:micrometer-registry-prometheus-simpleclient:jar:1.14.0@compile as already imported io.micrometer:micrometer-registry-prometheus-simpleclient:jar:1.14.1@compile. Add the conflicting managed dependency directly to the dependencyManagement section of the POM. @ org.springframework.boot:spring-boot-dependencies:3.4.0
[WARNING] Ignored POM import for: io.micrometer:micrometer-registry-signalfx:jar:1.14.0@compile as already imported io.micrometer:micrometer-registry-signalfx:jar:1.14.1@compile. Add the conflicting managed dependency directly to the dependencyManagement section of the POM. @ org.springframework.boot:spring-boot-dependencies:3.4.0
[WARNING] Ignored POM import for: io.micrometer:micrometer-registry-statsd:jar:1.14.0@compile as already imported io.micrometer:micrometer-registry-statsd:jar:1.14.1@compile. Add the conflicting managed dependency directly to the dependencyManagement section of the POM. @ org.springframework.boot:spring-boot-dependencies:3.4.0
[WARNING] Ignored POM import for: io.micrometer:micrometer-registry-wavefront:jar:1.14.0@compile as already imported io.micrometer:micrometer-registry-wavefront:jar:1.14.1@compile. Add the conflicting managed dependency directly to the dependencyManagement section of the POM. @ org.springframework.boot:spring-boot-dependencies:3.4.0
[WARNING] Ignored POM import for: io.micrometer:micrometer-test:jar:1.14.0@compile as already imported io.micrometer:micrometer-test:jar:1.14.1@compile. Add the conflicting managed dependency directly to the dependencyManagement section of the POM. @ org.springframework.boot:spring-boot-dependencies:3.4.0
[WARNING] Ignored POM import for: org.apache.maven.plugin-tools:maven-plugin-annotations:jar:3.7.0@compile as already imported org.apache.maven.plugin-tools:maven-plugin-annotations:jar:3.13.1@compile. Add the conflicting managed dependency directly to the dependencyManagement section of the POM. @ org.springframework.boot:spring-boot-dependencies:3.4.0
[WARNING]
[WARNING] It is highly recommended to fix these problems because they threaten the stability of your build.
[WARNING]
[WARNING] For this reason, future Maven versions might no longer support building such malformed projects.
[WARNING]
I think that's because we import the micrometer-bom
and the micrometer-tracing-bom
, which in turn imports the micrometer-bom
again.
Do we have to flatten (and deduplicate) the BOMs in our dependency management to get rid of the warnings?