private void describeMojoGuts()

in src/main/java/org/apache/maven/plugins/help/DescribeMojo.java [487:547]


    private void describeMojoGuts(MojoDescriptor md, StringBuilder buffer, boolean fullDescription)
            throws MojoFailureException, MojoExecutionException {
        append(buffer, MessageUtils.buffer().strong(md.getFullGoalName()).build(), 0);

        // indent 1
        appendAsParagraph(buffer, "Description", toDescription(md.getDescription()), 1);

        String deprecation = md.getDeprecated();
        if (deprecation != null && deprecation.length() <= 0) {
            deprecation = NO_REASON;
        }

        if (deprecation != null && !deprecation.isEmpty()) {
            append(
                    buffer,
                    MessageUtils.buffer().warning("Deprecated. " + deprecation).build(),
                    1);
        }

        if (isReportGoal(md)) {
            append(buffer, "Note", "This goal should be used as a Maven report.", 1);
        }

        if (!fullDescription) {
            return;
        }

        append(buffer, "Implementation", md.getImplementation(), 1);
        append(buffer, "Language", md.getLanguage(), 1);

        String phase = md.getPhase();
        if (phase != null && !phase.isEmpty()) {
            append(buffer, "Bound to phase", phase, 1);
        }

        String eGoal = md.getExecuteGoal();
        String eLife = md.getExecuteLifecycle();
        String ePhase = md.getExecutePhase();

        if ((eGoal != null && !eGoal.isEmpty()) || (ePhase != null && !ePhase.isEmpty())) {
            append(buffer, "Before this goal executes, it will call:", 1);

            if (eGoal != null && !eGoal.isEmpty()) {
                append(buffer, "Single goal", "'" + eGoal + "'", 2);
            }

            if (ePhase != null && !ePhase.isEmpty()) {
                String s = "Phase: '" + ePhase + "'";

                if (eLife != null && !eLife.isEmpty()) {
                    s += " in Lifecycle Overlay: '" + eLife + "'";
                }

                append(buffer, s, 2);
            }
        }

        buffer.append(LS);

        describeMojoParameters(md, buffer);
    }