private MavenProject getVespaParent() {
        MavenProject parent = project.getParent();
        if (parent != null &&
                "com.yahoo.vespa".equals(parent.getGroupId()) &&
                "parent".equals(parent.getArtifactId())) {

            return parent;
        }

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