Skip to content

wrong artifactId in generated pom.xml #29

@domdorn

Description

@domdorn

Hi!
In my project, we're migrating from using maven-central directly to proxy it through artifactory. When artifactory is fetching the pom.xml of sbt-spotless, it fails as the artifact-name apparently is wrong..

the request is as follows:
https://artifactory.acme.com/artifactory/maven-viopt/net/moznion/sbt/sbt-spotless_2.12_1.0/0.1.3/sbt-spotless-0.1.3.pom
which proxies through to
https://repo1.maven.org/maven2/net/moznion/sbt/sbt-spotless_2.12_1.0/0.1.3/sbt-spotless-0.1.3.pom

it gives this message:

{
  "errors" : [ {
    "status" : 404,
    "message" : "Failed to transform pom file: The target deployment path 'net/moznion/sbt/sbt-spotless_2.12_1.0/0.1.3/sbt-spotless-0.1.3.pom' does not match the POM's expected path prefix 'net/moznion/sbt/sbt-spotless/0.1.3'. Please verify your POM content for correctness and make sure the source path is a valid Maven repository root path."
  } ]
}

from looking at the sbt-spotless-0.1.3.pom file, the current artifactId

<artifactId>sbt-spotless</artifactId>

would need to be changed to

<artifactId>sbt-spotless_2.12_1.0</artifactId>

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions