in src/main/java/org/apache/maven/plugins/site/deploy/AbstractDeployMojo.java [469:489]
protected static Site getSite(final MavenProject project) throws MojoExecutionException {
final DistributionManagement distributionManagement = project.getDistributionManagement();
if (distributionManagement == null) {
throw new MojoExecutionException("Missing distribution management in project " + getFullName(project));
}
final Site site = distributionManagement.getSite();
if (site == null) {
throw new MojoExecutionException(
"Missing site information in the distribution management of the project " + getFullName(project));
}
if (site.getUrl() == null || site.getId() == null) {
throw new MojoExecutionException(
"Missing site data: specify url and id for project " + getFullName(project));
}
return site;
}