Skip to content

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

@kwin

Description

@kwin

The distributionMgmt site URL in

<url>${project.scm.developerConnection}</url>
is pointing to a Git URL, e.g. scm:git:[email protected]: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!

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