protected void renderBody()

in src/main/java/org/apache/maven/report/projectinfo/DistributionManagementReport.java [92:165]


        protected void renderBody() {
            DistributionManagement distributionManagement = project.getDistributionManagement();
            if (distributionManagement == null) {
                startSection(getI18nString("overview.title"));

                paragraph(getI18nString("nodistributionmanagement"));

                endSection();

                return;
            }

            startSection(getI18nString("overview.title"));
            paragraph(getI18nString("overview.intro"));

            if (StringUtils.isNotEmpty(distributionManagement.getDownloadUrl())) {
                startSection(getI18nString("downloadURL"));
                internalLink(distributionManagement.getDownloadUrl());
                endSection();
            }

            if (distributionManagement.getRelocation() != null) {
                startSection(getI18nString("relocation"));
                startTable();
                tableHeader(new String[] {getI18nString("field"), getI18nString("value")});
                tableRow(new String[] {
                    getI18nString("relocation.groupid"),
                    distributionManagement.getRelocation().getGroupId()
                });
                tableRow(new String[] {
                    getI18nString("relocation.artifactid"),
                    distributionManagement.getRelocation().getArtifactId()
                });
                tableRow(new String[] {
                    getI18nString("relocation.version"),
                    distributionManagement.getRelocation().getVersion()
                });
                tableRow(new String[] {
                    getI18nString("relocation.message"),
                    distributionManagement.getRelocation().getMessage()
                });
                endTable();
                endSection();
            }

            if (distributionManagement.getRepository() != null
                    && StringUtils.isNotEmpty(
                            distributionManagement.getRepository().getUrl())) {
                startSection(getI18nString("repository")
                        + getRepoName(distributionManagement.getRepository().getId()));
                internalLink(distributionManagement.getRepository().getUrl());
                endSection();
            }

            if (distributionManagement.getSnapshotRepository() != null
                    && StringUtils.isNotEmpty(
                            distributionManagement.getSnapshotRepository().getUrl())) {
                startSection(getI18nString("snapshotRepository")
                        + getRepoName(
                                distributionManagement.getSnapshotRepository().getId()));
                internalLink(distributionManagement.getSnapshotRepository().getUrl());
                endSection();
            }

            if (distributionManagement.getSite() != null
                    && StringUtils.isNotEmpty(distributionManagement.getSite().getUrl())) {
                startSection(getI18nString("site")
                        + getRepoName(distributionManagement.getSite().getId()));
                internalLink(distributionManagement.getSite().getUrl());
                endSection();
            }

            endSection();
        }