in src/main/java/org/apache/maven/plugins/site/deploy/SiteStageDeployMojo.java [90:106]
protected String determineTopDistributionManagementSiteUrl() throws MojoExecutionException {
if (topSiteURL != null && !topSiteURL.isEmpty()) {
getLog().debug("stage-deploy top distributionManagement.site.url configured with topSiteURL parameter: "
+ topSiteURL);
return topSiteURL;
}
if (stagingSiteURL != null && !stagingSiteURL.isEmpty()) {
// We need to calculate the first project that supplied same stagingSiteURL
MavenProject topProject = getTopMostParentWithSameStagingSiteURL();
String url = getSite(topProject).getUrl();
getLog().debug("stage-deploy top stagingSiteURL found in " + topProject.getId() + " with value: " + url);
return url;
}
return super.determineTopDistributionManagementSiteUrl();
}