private String getConfigGenVersion() throws MojoExecutionException {
        if (configGenVersion != null && !configGenVersion.isEmpty()) {
            return configGenVersion;
        }

        Dependency container = getVespaDependency("container");
        if (container != null)
            return container.getVersion();

        Dependency containerDev = getVespaDependency("container-dev");
        if (containerDev != null)
            return containerDev.getVersion();

        Dependency docproc = getVespaDependency("docproc");
        if (docproc != null)
            return docproc.getVersion();

        MavenProject parent = getVespaParent();
        if (parent != null)
            return parent.getVersion();

        String defaultConfigGenVersion = loadDefaultConfigGenVersion();
        getLog().warn(String.format(
                "Did not find either container or container-dev artifact in project dependencies, "
                + "using default version '%s' of the config class plugin.",
                defaultConfigGenVersion));

        return defaultConfigGenVersion;
    }
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