Skip to content

DistributionMgmt->Site->URL incorrectly set for site:stage #333

Description

@kwin

The distributionMgmt site URL in

<url>${project.scm.developerConnection}</url>
is pointing to a Git URL, e.g. scm:git:git@github.com:codehaus-plexus/plexus-sec-dispatcher.git (from https://github.com/codehaus-plexus/plexus-sec-dispatcher/blob/35804938db2feec87fabe24d75509cd0d8dc3c47/pom.xml#L20). However this value is evaluated for site:stage (https://maven.apache.org/plugins/maven-site-plugin/stage-mojo.html) to calculate the folder structure being created below target/staging (for multimodule sites).

By default the same value is also used by maven-scm-publish-plugin in https://maven.apache.org/plugins/maven-scm-publish-plugin/publish-scm-mojo.html#pubScmUrl. However this is already overwritten in

<pubScmUrl>${project.scm.developerConnection}</pubScmUrl>
. Therefore the distributionManagement.site.url should rather point to the HTTP URL of where the site is hosted!

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions