I'm trying to retrieve the sbt-coursier artifact, through a company Artifactory, that proxies Maven Central.
Artifactory refuses to serve me the artifact, with the following error:
{
"errors" : [ {
"status" : 404,
"message" : "Failed to transform pom file: The target deployment path 'io/get-coursier/sbt-coursier_2.10_0.13/1.0.0-M12/sbt-coursier-1.0.0-M12.pom' does not match the POM's expected path prefix 'io/get-coursier/sbt-coursier/1.0.0-M12'. Please verify your POM content for correctness and make sure the source path is a valid Maven repository root path."
} ]
}
So it looks like Artifactory does more rigourous checking of the POM than what Maven Central does.
Is this a genuine problem with the published artifact, or is Artifactory wrong here?
You can disable the artifactory pom checking for that repo. It's under repository settings->advanced settings->suppress POM consistency checks
no comment on whether the issue is artifactory or the artifact.
The SBT plugins distributed via Maven repositories all seem to suffer this issue (sbt-ensime does too for example). I'd say it's more an SBT issue.
Closing this as this seems not specific to coursier.
Most helpful comment
You can disable the artifactory pom checking for that repo. It's under
repository settings->advanced settings->suppress POM consistency checksno comment on whether the issue is artifactory or the artifact.