private Dependency getVespaDependency(String artifactId) {
        for (Object element : project.getDependencies()) {
            Dependency dependency = (Dependency) element;

            if ("com.yahoo.vespa".equals(dependency.getGroupId()) &&
                    artifactId.equals(dependency.getArtifactId())) {
                return dependency;
            }
        }

        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