@Override
    public void execute() throws MojoExecutionException, MojoFailureException {
        String configGenVersion = getConfigGenVersion();
        getLog().debug("configGenVersion = " + configGenVersion);

        executeMojo(
                plugin(
                        groupId("com.yahoo.vespa"),
                        artifactId("config-class-plugin"),
                        version(releaseVersion(configGenVersion))),
                goal("config-gen"),
                configuration(
                        element(name("defFilesDirectories"), "src/main/resources/configdefinitions")),
                createExecutionEnvironment());
        //Compile source roots added in container-lifecycle is not currently
        //propagated automatically to this project.
        project.addCompileSourceRoot(project.getBuild().getDirectory() + "/generated-sources/vespa-configgen-plugin");
    }
Calls the generate-sources phase in the container lifecycle defined in lifecycle.xml.

@author Tony Vaagenes
bundle-plugin/src/main/java/com/yahoo/container/plugin/mojo/GenerateSourcesMojo.java