I am getting the following error when I tried to mvn clean install on this spring project:
[ERROR] Non-resolvable import POM: Could not find artifact io.micrometer:micrometer-bom:pom:2.0.0-M3 in spring-snapshots () @ org.springframework.boot:spring-boot-dependencies:3.0.0-M2, C:\Users\abc
\.m2\repository\org\springframework\boot\spring-boot-dependencies\3.0.0-M2\spring-boot-dependencies-3.0.0-M2.pom, line 2273, column 19I am using this basic settings file in my .m2 folder:
<?xml version="1.0" encoding="UTF-8"?>
<settings xmlns="" xmlns:xsi="" xsi:schemaLocation=" "> <pluginGroups> </pluginGroups> <proxies> </proxies> <servers> </servers> <mirrors> </mirrors> <profiles> </profiles>
</settings>Some of the dependencies are downloading fine (see below), but seems that micrometer is causing an issue.
Downloading from spring-snapshots:
Downloading from spring-milestones:
Downloaded from spring-milestones: (2.8 kB at 5.2 kB/s)How can I resolve this issue?
11 Answer
Since Spring Boot 3.0.0-M2 was released, the Micrometer 2.0 release upon which it depends was abandoned and replaced with a backwards-compatible 1.10 release instead. As part of this, to avoid confusion about the latest version, the Micrometer team took the decision to delete the 2.0 artifacts from . An unfortunate consequence of this is that Spring Boot 3.0.0-M2 is no longer usable.
At the time of writing, the latest milestone of Spring Boot 3.0 is 3.0.0-M4. Upgrading to it will resolve your problem. It depends on a Micrometer 1.10 milestone.