Skip to content

Published POMs missing url, scm, developers (and javadoc jars) required by Maven Central #1173

Closed

Description

@pjfanning

While reviewing the staged Maven artefacts for 2.1.0-incubating RC7 (orgapachefesod-1058), I noticed that the published POMs (fesod-parent, fesod-bom, fesod-common, fesod-shaded, fesod-sheet) are missing some metadata that Maven Central's publishing requirements ask for. 2.0.2-incubating on Central has the same gaps, so this isn't a regression and doesn't block RC7.

The good parts: <name>, <description> (with the incubator disclaimer), <licenses>, <organization>, <mailingLists> and <issueManagement> are all present and correct.

Missing

  1. <url>: the root pom.xml sets <url>https://github.com/apache/fesod</url>, but the flatten-maven-plugin config removes it:
    <pomElements>
        <url>remove</url>
        <scm>remove</scm>
        ...
    </pomElements>
  2. <scm>: removed by the same config. The root <scm> also has a wrong <url>: it is scm:git:[email protected]:apache/fesod.git, but scm/url should be a browsable web URL such as https://github.com/apache/fesod.
  3. <developers>: not defined anywhere. For ASF projects this is usually a single entry pointing at the dev list, for example:
    <developers>
        <developer>
            <id>fesod</id>
            <name>The Apache Fesod (Incubating) Team</name>
            <email>[email protected]</email>
            <url>https://fesod.apache.org</url>
            <organization>The Apache Software Foundation</organization>
            <organizationUrl>https://www.apache.org</organizationUrl>
        </developer>
    </developers>
  4. -javadoc.jar: none are staged, because the root POM sets <maven.javadoc.skip>true</maven.javadoc.skip>. Central requires a javadoc jar for every published jar artefact. A minimal or empty javadoc jar is accepted if full javadoc is not wanted.

Suggested fix

  • Stop removing url and scm in the flatten config (drop the two remove entries, or set them to keep/interpolate). If they were removed to stop Maven appending the child artifactId to inherited URLs, add these to the root POM instead:
    • child.project.url.inherit.append.path="false" on <project>
    • child.scm.connection.inherit.append.path="false", child.scm.developerConnection.inherit.append.path="false" and child.scm.url.inherit.append.path="false" on <scm>
  • Fix <scm><url> to https://github.com/apache/fesod, and consider using https://github.com/apache/fesod.git for <connection>. GitHub no longer serves the git:// protocol.
  • Add a <developers> block as above.
  • Produce javadoc jars in the release profile.

Minor

  • fesod-parent has <name>fesod-parent</name>, while the other modules use names like "Fesod Common". Something like "Fesod Parent" would be more consistent.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions