Spring boot 3.2.0(m2) / and snapshot declare a dependency that doesn't exist, namely micrometer-tracing-bom-1.2.0. After doing some digging, it seems this version existed but no longer does.
To reproduce: Go to start.spring.io and download the zip while selecting MAVEN / JAVA / 3.2.0(M2) / JAR / 20. When trying to compile with Maven:
The build could not read 1 project -> [Help 1]
[ERROR]
[ERROR] The project pt.goncalo.spring:boot-3-2-0-native-image:0.0.1-SNAPSHOT has 2 errors
[ERROR] Non-readable POM XXXX/.m2/repository/io/micrometer/micrometer-bom/1.12.0-M2/micrometer-bom-1.12.0-M2.pom: input contained no data @ XXX/.m2/repository/io/micrometer/micrometer-bom/1.12.0-M2/micrometer-bom-1.12.0-M2.pom
[ERROR] Non-readable POM XXXX/.m2/repository/io/micrometer/micrometer-tracing-bom/1.2.0-M2/micrometer-tracing-bom-1.2.0-M2.pom: input contained no data @ XXX/.m2/repository/io/micrometer/micrometer-tracing-bom/1.2.0-M2/micrometer-tracing-bom-1.2.0-M2.pom
If one tries to find the specific version on Maven Central ( https://mvnrepository.com/artifact/io.micrometer/micrometer-tracing-bom ) one cannot find that specific version.
Comment From: bclozel
Milestone versions are not released on Maven Central, but rather on repo.spring.io. See https://repo.spring.io/ui/native/milestone/io/micrometer/micrometer-tracing-bom/1.2.0-M2/
You can create a new project on https://start.spring.io and select a Spring Boot milestone version to get the correct repositories declarations in your build.
Comment From: GoncaloPT
Hi @bclozel; Thanks for the answer, but perhaps i'm missing something cause what you describe is exacly what i've done. I went to start.spring.io, selected 3.2.0 (M2) ( 2nd option from the left ) with all the options stated in the issue. Downloaded the zip, extracted and ran mvn compile.. which fails.
So, shouldn't the downloaded pom use that repository ( of milestones ) by default? Cause I haven't changed anything.
Comment From: bclozel
Sorry I've just noticed this part in your logs input contained no data @ XXX/.m2/repository/io/micrometer/micrometer-bom/1.12.0-M2/micrometer-bom-1.12.0-M2.pom. This means the dependency is corrupted in your local cache.
Try running ./mvnw dependency:purge-local-repository or manually remove this folder XXX/.m2/repository/io/micrometer/micrometer-bom/1.12.0-M2/.