jcgay / maven-distinct-local-repository

Separate SNAPSHOTs and RELEASEs in local Maven repository
MIT License
9 stars 2 forks source link

fails if the flatten maven plugin is used #66

Open dimovelev opened 2 years ago

dimovelev commented 2 years ago

we use the flatten maven plugin to achieve ci friendly versions - https://maven.apache.org/maven-ci-friendly.html the build fails with such an exception:

[ERROR] Failed to execute goal org.codehaus.mojo:flatten-maven-plugin:1.2.5:flatten (flatten) on project kafka-bridge: 1 problem was encountered while building the effective model for net.payback.core.microservices.kafka-bridge:kafka-bridge:1.0-SNAPSHOT
[ERROR] [FATAL] Non-readable POM C:\Users\dvelev_ext\.m2\repository\org\springframework\boot\spring-boot-dependencies\2.5.5\spring-boot-dependencies-2.5.5.pom: C:\Users\dvelev_ext\.m2\repository\org\springframework\boot\spring-boot-dependencies\2.5.5\spring-boot-dependencies-2.5.5.pom (The system cannot find the path specified) @ C:\Users\dvelev_ext\.m2\repository\org\springframework\boot\spring-boot-dependencies\2.5.5\spring-boot-dependencies-2.5.5.pom
[ERROR]

It looks like the flatten plugin searches for the artefacts without the releases/snapshots prefix. I am not sure whether this is a bug of this extension or the flatten plugin though

dimovelev commented 2 years ago

i assume that the problem is in the flatten plugin and opened an issue there - https://github.com/mojohaus/flatten-maven-plugin/issues/232