public void execute()

in maven-plugin-plugin/src/main/java/org/apache/maven/plugin/plugin/AbstractGeneratorMojo.java [76:95]


    public void execute() throws MojoExecutionException {
        if (!packagingTypes.contains(project.getPackaging())) {
            getLog().info("Unsupported packaging type " + project.getPackaging() + ", execution skipped");
            return;
        }

        if (skip) {
            getLog().warn("Execution skipped");
            return;
        }

        if (goalPrefix == null || goalPrefix.isEmpty()) {
            goalPrefix = getDefaultGoalPrefix(project);
        }
        if (goalPrefix == null || goalPrefix.isEmpty()) {
            throw new MojoExecutionException("You need to specify a goalPrefix as it can not be correctly computed");
        }

        generate();
    }